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

got error when run prepro.py #11

Open
WHJTC opened this issue Oct 3, 2018 · 1 comment
Open

got error when run prepro.py #11

WHJTC opened this issue Oct 3, 2018 · 1 comment

Comments

@WHJTC
Copy link

WHJTC commented Oct 3, 2018

Dear author,

Traceback (most recent call last):
File "prepro.py", line 107, in
vocab_ent = [''] + nlp.entity.cfg[u'actions'][1]
KeyError: 'actions'

I tried several versions of spacy(1.10.1, 2.0, 1.8, 1.7.5), but still got this error

thanks!

@hsinyuan-huang
Copy link
Owner

Hi!

Seems like in the version I was using before, there is this key in nlp.entity.cfg for getting all the possible entities. But it was removed in later versions. I have modified the code so it works with the latest spaCy. Let me know if it works. Thanks!

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