-
-
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
EntityLinker, pipes.pyx KeyError: '0_12' using sample code given in guides #4469
Comments
It looks like the problem might be that you're running spaCy v2.1.8, but are trying to use the script compatible with v2.2 (see file header). Here's the script for v2.1.8: https:/explosion/spaCy/tree/v2.1.8/bin/wiki_entity_linking The entity linking functionality is still new and updated frequently, though, so it's probably best to always use the latest version of spaCy if you want to experiment with entity linking. |
@ines Yes, upgrading spacy solves the problem. Thanks. |
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. |
Had to change
kb = KnowledgeBase(vocab=nlp.vocab)
to
kb = KnowledgeBase(vocab=nlp.vocab, entity_vector_length=64)
kb_pretrain.py
file, I have made some changes to resolve error that I got after copying and pasting pretrain code from the guide pretrain_kb.pyrunning
kb_train
file withpython kb_train.py testKB/kb testKB/vocab -o trainedKB
Info about spaCy
The text was updated successfully, but these errors were encountered: