Skip to content
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

Segmentation wrong with token contains square brackets? #108

Open
reckart opened this issue Jul 31, 2016 · 3 comments
Open

Segmentation wrong with token contains square brackets? #108

reckart opened this issue Jul 31, 2016 · 3 comments

Comments

@reckart
Copy link

reckart commented Jul 31, 2016

Looks like the segmenter does not work properly if there are square brackets, e.g.:

[   名詞,サ変接続,*,*,*,*,*,*,*
滧 名詞,一般,*,*,*,*,*,*,*
の 助詞,連体化,*,*,*,*,の,ノ,ノ
]。    名詞,サ変接続,*,*,*,*,*,*,*

or

「 記号,括弧開,*,*,*,*,「,「,「
国宝  名詞,一般,*,*,*,*,国宝,コクホウ,コクホー
五 名詞,数,*,*,*,*,五,ゴ,ゴ
城 名詞,一般,*,*,*,*,城,シロ,シロ
」[    名詞,サ変接続,*,*,*,*,*,*,*
``
@cmoen
Copy link
Member

cmoen commented Aug 5, 2016

I agree that it might be more useful to split ]。 into ] and , but this is actually how the dictionary assets we are using have been designed, but perhaps it might make sense to change some of this. I have some ideas I'd like to try out...

@mharn
Copy link

mharn commented Mar 22, 2018

Just jumping in to say that this outputs highlights a problem with Mecab-ipadic - symbols such as the [] here are treated as 名詞・サ変接続.

see fix for problem here: taku910/mecab#37

@cmoen
Copy link
Member

cmoen commented Mar 22, 2018

Thanks. We could also do this using a user-defined unk definition...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants