what is difference between spacy.load(\'en_core_web_sm\') and spacy.load(\'en\')? This link explains different model sizes. But i am still not clea
Anaconda Users
If you're using a conda virtual environment, be sure that its the same version of Python as that in your base environment. To verify this, run python --version in each environment. If not the same, create a new virtual environment with that version of Python (Ex. conda create --name myenv python=x.x.x).
Activate the virtual environment (conda activate myenv)
conda install -c conda-forge spacypython -m spacy download en_core_web_smI just ran into this issue, and the above worked for me. This addresses the issue of the download occurring in an area that is not accessible to your current virtual environment.
You should then be able to run the following:
import spacy
nlp = spacy.load("en_core_web_sm")