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

Error with comma #4

Closed
agj opened this issue Mar 1, 2018 · 2 comments
Closed

Error with comma #4

agj opened this issue Mar 1, 2018 · 2 comments

Comments

@agj
Copy link

agj commented Mar 1, 2018

因为我的中文不好,所以我写英文。不好意思。

I get this error:

>>> genius.seg_text('Kate, 坐吧。', use_tagging=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Ale/Desktop/hsk-vocab/python_env/lib/python3.6/site-packages/genius/__init__.py", line 29, in seg_text
    pre_words = processes['tagging'](**kwargs).process(pre_words)
  File "/Users/Ale/Desktop/hsk-vocab/python_env/lib/python3.6/site-packages/genius/process.py", line 311, in process
    word.tagging = taggings[index]
IndexError: list index out of range

But if I change , for in the sentence, it works no problem. Also with use_tagging=False it works...

Thank you for this great NLP package. 谢谢!

@duanhongyi
Copy link
Owner

@agj thanks, I've fixed it.

@agj
Copy link
Author

agj commented Mar 7, 2018

Great! It seems to have worked! Thank you. 👍

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