I would like to specify a custom format string even if the user has an output-format-type specified in their mecabrc. As described in taku910/mecab#41, the way to do this on the command line is to give an argument like -O "". So I tried this:
tagger = MeCab.Tagger('-O ""')
Unfortunately this results in a RuntimeError. I tried escaping the quotes without effect. I guess something about the way the argument string is passed to the Mecab library is different than its own internal argument handling?
For reference, the reason I want to specify a format string is explained in explosion/spaCy#3491.
I would like to specify a custom format string even if the user has an
output-format-typespecified in theirmecabrc. As described in taku910/mecab#41, the way to do this on the command line is to give an argument like-O "". So I tried this:Unfortunately this results in a
RuntimeError. I tried escaping the quotes without effect. I guess something about the way the argument string is passed to the Mecab library is different than its own internal argument handling?For reference, the reason I want to specify a format string is explained in explosion/spaCy#3491.