You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The -N option doesn't work that way when initializing the tagger, you need to use an nbest related method in the API. Example:
tagger.parseNBest(2, 'こんにゃく粉')
# => 'こんにゃく 粉 \nこんにゃく 粉 \n'
# note: I get the same results for the top two, probably because I'm using Unidic.
In general, be careful because the command line works slightly differently from the C API in MeCab. Another example is that from the command line all newlines are treated as sentence boundaries, while from the API they're just whitespace.
Hi,
I am trying to parse some words with the
NBest
option, but it doesn't seem to work correctly.What mecab returns is
On the other hand, what mecab-python3 returns is
The text was updated successfully, but these errors were encountered: