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

TypeError: object of type 'NoneType' has no len() #7

Closed
agnesbao opened this issue Jul 24, 2018 · 1 comment
Closed

TypeError: object of type 'NoneType' has no len() #7

agnesbao opened this issue Jul 24, 2018 · 1 comment

Comments

@agnesbao
Copy link

Hello,

I tend to run into this error at "spacy_lookup_init_.py" line 60,

doc.ents = list(doc.ents) + [entity]

Looks like line 58 and line 60 is incorrectly indented. It should be inside of "if entity:"

Please check if this is the case. I can get around the error by indenting the two lines.

Thanks,
Agnes

@mpuig
Copy link
Owner

mpuig commented Aug 13, 2018

This should be solved in the latest release. 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