spacy Can't find model 'en_core_web_sm' on windows 10 and Python 3.5.3 :: Anaconda custom (64-bit)

前端 未结 15 1035
傲寒
傲寒 2020-12-08 09:40

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

15条回答
  •  暖寄归人
    2020-12-08 10:18

    For those who are still facing problems even after installing it as administrator from Anaconda prompt, here's a quick fix:

    1) Got to the path where it is downloaded. For e.g.

    C:\Users\name\AppData\Local\Continuum\anaconda3\Lib\site-packages\en_core_web_sm\en_core_web_sm-2.2.0

    2) Copy the path.

    3) Paste it in: nlp = spacy.load(r'C:\Users\name\AppData\Local\Continuum\anaconda3\Lib\site-packages\en_core_web_sm\en_core_web_sm-2.2.0')

    4) Works like a charm :)

    PS: Check for spacy version

提交回复
热议问题