Reputation: 153
I'm having issues with spacy when trying to load the NER model:
nlp = spacy.load("./output_model/model-best")
It prompts the following error:
RegistryError: [E892] Unknown function registry: 'scorers'.
Available names: architectures, augmenters, batchers, callbacks, cli, datasets, displacy_colors, factories, initializers, languages, layers, lemmatizers, loggers, lookups, losses, misc, models, ops, optimizers, readers, schedules, tokenizers
I had a similar error before, and I was able to fix it by doing:
pip install -U spacy
The same code was working properly yesterday, I wonder if there is a conflit of versions.
Upvotes: 3
Views: 4641
Reputation: 153
After several trials, when restarting the kernel and doing pip install -U spacy
again, it actually solved the problem.
Upvotes: 8