python+spacy-------fill the pit

anaconda install spacy

  1. Search spacy in anaconda and download spacy

  2. Install dataset and model after downloading spacy

cmd 》activate python36 cmd 》 python -m spacy download en

anaconda configure Tsinghua mirror

  1. conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  2. conda config --set show_channel_urls yes

dakeng

After executing python -m spacy download en you are told that you can use spacy.load('en')

en_core_web_sm -> spacy \ data \ en

You can now load the model via spacy.load('en')

Actually changed to spacy.load('en_core_web_sm ')

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325239907&siteId=291194637