-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Tagger args are silently ignored #53
Comments
Confused why this is the case, studying the codepath in mecab.
A param parse failure should go up the chain and cause |
For reference, while the code paths do look the same, this isn't the first inconsistency like this to come up - by default errors in the Tagger don't give output when called via the API because the error message is cleared somewhere, and there's a ridiculous workaround involving the Model class to make that work at the moment. Another note since several issues have come up: my good arm is in a cast right now, and while I have use of my fingers I have less bandwidth than usual. |
fyi also, if the path has whitespace in it, mecab will not accept it |
If you do something like
fugashi.Tagger("d /asdf")
(no hyphen), the invalid arguments will be ignored and you'll get a working tagger. That's weird and unhelpful. It seems to be the way the MeCab API works, but the actual MeCab command line behaves reasonably (gives an error), so there should be a way to modify the behavior.The text was updated successfully, but these errors were encountered: