简体   繁体   中英

Spacy - Can't find model

Running:

import spacy
nlp = spacy.load('en_core_web_sm')

Results in the following error:

E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

How do I solve this issue?

Assuming you have spaCy correctly installed on your machine, open cmd and type:

python -m spacy download en_core_web_sm

Then run again your script and you should be fine

Error E050

In order to load model/pipeline first we need to install the model. Please type in below download command in terminal.

python -m spacy download en_core_web_sm

Yt Video - Fix E050 | Can't find model en_core_web_sm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM