Skip to content

Is it possible to unset output-format-type? #25

Description

@polm

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions