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

前端 未结 15 1025
傲寒
傲寒 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:13

    Open command prompt or terminal and execute the below code:

    pip3 install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
    

    Execute the below chunk in your Jupiter notebook.

    import spacy

    nlp = spacy.load('en_core_web_sm')

    Hope the above code works for all:)

提交回复
热议问题