ModuleNotFoundError: No module named 'spacy.lemmatizer' on executing fastai's load_learner #11630
-
How to reproduce the behaviourfrom fastai.learner import load_learner Errorclassifier = load_learner(os.path.join(path, "model.pth")) Your Environment
There are suggestions to downgrade the spacy version to fix the issue. But I appreciate a solution with no downgrading of spacy or python. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As indicated in this thread, it looks like FastAI is using spaCy v2. Since that's significantly different from spaCy v3, the only alternative to downgrading would be to rewrite the FastAI code to use v3. |
Beta Was this translation helpful? Give feedback.
As indicated in this thread, it looks like FastAI is using spaCy v2. Since that's significantly different from spaCy v3, the only alternative to downgrading would be to rewrite the FastAI code to use v3.