-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
KeyError when trying to follow provided train_entity_linker.py script #4723
Comments
Thanks for the very helpful report, @JohnGiorgi ! The example scripts got outdated after the last refactor of the EL pipeline, which assumes the entities are properly set in the document. To simulate this, I added an I also created a more friendly warning than the one you ran into ... PR #4789 contains the fixes. Once merged, feel free to try the code again and let me know if there still would be any issues. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the behaviour
Simply run the provided
pretrain_kb.py
andtrain_entity_linker.py
scripts. E.g.During the execution of the second command, a KeyError is raised with the following traceback
There is another closed issue (#4469) that reports this same problem. Suggestions are to use the latest version of SpaCy (I tried with
2.2.2
and2.2.3
) and to update the linein
pretrain_kb.py
withThis solution did not work for me (I recieve the same error as above).
Your Environment
The text was updated successfully, but these errors were encountered: