-
Notifications
You must be signed in to change notification settings - Fork 23
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
KNP seems to ignore the timeout
option
#47
Comments
Thanks! |
I appreciate your attendance! |
I don’t think that echo "このような句読点が少ない文章は文章の流れをつかみにくく読みづらいという欠点を持つが書く人はこの方が早く書けることもあるので「句読点が多い文章」よりは出現しやすくさらにパソコンやワープロなどで書き印刷する場合は紙のスペースの節約になり省資源にも多少は貢献すると思われるのみならず最近の女子高生が携帯電話からブログに書いた文章においては句読点がないのが普通だったりするんだけれども読みやすさ第一を心がける場合においては句読点をつけすぎなさすぎないことはやめましょう。" | jumanpp | knp -tab -anaphora -semantic-head -timeout 0 |
Could you make an issue on ku-nlp/knp? |
Done, I submitted the issue: ku-nlp/knp#7 |
Thank you for the bug fix. I want to reinstall pyknp via the following command, but this command does not work since the GitHub repo is missing
So currently, I got the latest stable release of pyknp (0.4.6) from here, copied |
I confirmed that the bug is fixed in my local environment too. I appreciate your help and maintenance! |
I could not reproduce your issue... Could you upgrade pip and try again? |
Sorry for my late reply. I successfully installed the latest pyknp via pip without any copy-and-paste procedure after upgrading pip. Thank you for your help! |
KNP module seems to ignore the
timeout
option. In the following example, I set the timeout period to 0 for a time-consuming process (option='-tab -anaphora -semantic-head'
) with a long sentence. Although I gave no time for the parser to process that sentence, the parse is done and it takes 2--3 seconds.The option appears to be merely initialised in the definition but no function seems to take
timeout
as its argument. Would you mind rechecking here?The text was updated successfully, but these errors were encountered: