explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
30.13k stars 4.4k forks source link

'en' shortcut link issues with loading spacy #5042

Closed gracefulghost31 closed 4 years ago

gracefulghost31 commented 4 years ago

'pip install - U spacy

import en_core_web_sm en_core_web_sm.load()

!python -m spacy download en_core_web_sm

spacy.load("en_core_web_sm")

conda install -c conda-forge spacy

gracefulghost31 commented 4 years ago

To update, following this StackOverflow thread (https://stackoverflow.com/questions/54334304/spacy-cant-find-model-en-core-web-sm-on-windows-10-and-python-3-5-3-anacon), I tried:

python -m spacy download en_core_web_sm python -m spacy link en_core_web_sm en

python -m spacy download en_core_web_lg python -m spacy link en_core_web_lg en

svlandeg commented 4 years ago

Have you tried following the instructions in that last error message?

Also, it is not really necessary to use the en abbreviation. You should be able to just run spacy.load('en_core_web_lg') or spacy.load('en_core_web_sm') and work with that. We will probably drop the usage of these symlinks such as en in future versions of spaCy anyway.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.