I tested and exported my model which should be not too far from the npl in chapter 10.
I am not trying to create a python app with it, but on
learn = load_learner…
I get this error:
ModuleNotFoundError: No module named ‘spacy.lemmatizer’.
Installing spacy didn’t save the day, and I didn’t need to do that anyway with Colab.
Anyone?
I had the same issue. So it turns out spacy.lemmatizer is not available in spacy v3. You need to use spacy v2.
I had to use spacy v2.2.4 for fastai v2.4.1. Other versions of spacy v2 are not working with fastai v2.4.1
@asifdegr8 It is available. Pip install works fine on my system. May you need to update your python version. If still no success, you can download and install relevant wheel from spacy · PyPI