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

'ent_kb_id' referenced before assignment #3

Closed
TheNizzo opened this issue Nov 25, 2021 · 1 comment
Closed

'ent_kb_id' referenced before assignment #3

TheNizzo opened this issue Nov 25, 2021 · 1 comment

Comments

@TheNizzo
Copy link

Hello,
while trying this example :
nlp("M. Knajdek"),
An error occurs in the entity_linker.py file
UnboundLocalError: local variable 'ent_kb_id' referenced before assignment on line 67 in the file.
This is due to the . separator.

@shigapov
Copy link
Collaborator

Thank you! It's fixed now. Anyway in your example it returns empty doc.ents because Wikidata does not have that entity.

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