I am loading Spacy French Model from Spacy Website and still not able to run it.
Have looked at the similar scenarios StackOverFlow and GitHub
The package is successfully installed via pip as below and the other codes.
python -m spacy download fr_core_news_sm
from spacy.lang.fr.examples import sentences
import fr_core_news_sm
nlp = spacy.load('fr_core_news_sm')
doc = nlp(sentences[0])
print(doc.text)
for token in doc:
print(token.text, token.pos_, token.dep_)
I get the error as below:
[E050] Can't find model 'fr_core_news_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory