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

Opening parentheses causes juman++ v2 to return invalid output #97

Closed
olsgaard opened this issue Jul 16, 2018 · 3 comments
Closed

Opening parentheses causes juman++ v2 to return invalid output #97

olsgaard opened this issue Jul 16, 2018 · 3 comments

Comments

@olsgaard
Copy link

When tagging documents containing single-width opening parentheses, juman++ returns a tag, with no type or subtype defined. Single-width closing parentheses are correctly tagged as 未定義語 15 その他 1.

How to reproduce from commandline / bash

[usr@sys ~]$ echo "()("|jumanpp
( * * 0 0 0 0 記号 0 特殊 0 "代表表記:( _"
@ ( * * 0 0 0 0 記号 0 特殊 0 "代表表記:( _"
@ ( * * 0 0 0 0 記号 0 特殊 0 "代表表記:("
@ ( * * 0 0 0 0 記号 0 特殊 0 "代表表記:("
) ) ) 未定義語 15 その他 1 * 0 * 0 "未知語:未対応文字種 品詞推定:特殊"
( ( ( 特殊 1 括弧始 3 * 0 * 0 NIL
EOS
[usr@sys ~]$ jumanpp -v
Juman++ Version: 2.0.0-rc2 / Dictionary: 20180202-2cca748 / LM: K:20180217-6c28641 
L:20180221-fd8a4b63 F:20171214-9d125cb

The web demo (which uses version 1 at time of writing) outputs a correct tag.

@eiennohito
Copy link
Contributor

Yep, that's a known bug caused by incorrect import of a Unidic kaomoji dictionary.
I have fixed it in the internal builds.

@eiennohito
Copy link
Contributor

Anyway, thanks for the report

@eiennohito
Copy link
Contributor

Fixed in rc3

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

2 participants