Open koo1140 opened 11 months ago
邮件已收到,谢谢您!
try running python -m spacy download en_core_web_sm
in a terminal, this should install the spacy model
try running
python -m spacy download en_core_web_sm
in a terminal, this should install the spacy model
doesnt works
Ensure that you have Spacy installedpip install spacy
. After that, download the en_core_web_sm
model by running the command python -m spacy download en_core_web_sm
.
its says same error again and again: raise IOError(Errors.E941.format(name=name, full=OLD_MODEL_SHORTCUTS[name])) # type: ignore[index] OSError: [E941] Can't find model 'en'. It looks like you're trying to load a model from a shortcut, which is obsolete as of spaCy v3.0. To load the model, use its full name instead:
nlp = spacy.load("en_core_web_sm")
For more details on the available models, see the models directory: https://spacy.io/models and if you want to create a blank model, use spacy.blank: nlp = spacy.blank("en")