MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / info

Function info

src/MeCab/cli.py:22–36  ·  view source on GitHub ↗

Print configuration info.

()

Source from the content-addressed store, hash-verified

20
21
22def info():
23 """Print configuration info."""
24 args = ' '.join(sys.argv[1:])
25 tagger = Tagger(args)
26 di = tagger.dictionary_info()
27 # TODO get the package version here too
28 print("mecab-py dictionary info:")
29 print("-----")
30 while di:
31 print('version:'.ljust(10), di.version)
32 print('size:'.ljust(10), di.size)
33 print('charset:'.ljust(10), di.charset)
34 print('filename:'.ljust(10), di.filename)
35 print("-----")
36 di = di.next

Callers

nothing calls this directly

Calls 1

TaggerClass · 0.90

Tested by

no test coverage detected