Skip to content
Advertisement

SpaCy can’t find table(s) lexeme_norm for language ‘en’ in spacy-lookups-data

I am trying to train a text categorization pipe in SpaCy:

JavaScript

However, every time I call nlp.begin_training(), I get the error

JavaScript

Running python3 -m spacy validate returns

JavaScript

Furthermore, I have tried installing spacy-lookups-data without success.

How can I resolve this error?

Advertisement

Answer

It isn’t allowed to call nlp.begin_training() on pretrained models. If you want to train a new model, just use: nlp = spacy.blank('en') instead of nlp = spacy.load("en_core_web_sm")

However, if you want to continue training on an existing model call optimizer = nlp.create_optimizer() instead of begin_training()

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement