When running:
import spacy nlp = spacy.load('en')
the following is printed:
Warning: no model found for 'en' Only loading the 'en' tokenizer.
/site-packages/spacy/data
is empty with the exception of the init file. all filepaths are only pointing to my single installation of python.
Any help appreciated on resolving this.
Thanks! Will
As name implies, this command will create a shortcut link for models. The models can either be a Python package or a local directory. The shortcut link enables the users to let them load models from any location using a custom name via spacy.
Essentially, spacy. load() is a convenience wrapper that reads the pipeline's config. cfg , uses the language and pipeline information to construct a Language object, loads in the model data and weights, and returns it.
I had this same issue when I tried this on Windows 10 - the problem was the output of python -m spacy.en.download all
said Linking successful
but above that was the message that the symbolic link wasn't actually created, due to permissions.
Running python -m spacy.en.download all
as an Adminstrator fixed the problem.
You might need to install the specific module too after installing spacy. Try:
python -m spacy.en.download all
Here is the reference link: https://pypi.python.org/pypi/spacy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With