赞
踩
官方自动方法:
https://spacy.io/
#pip install -U spacy
#python -m spacy download en_core_web_sm
import spacy
#Load English tokenizer, tagger, parser and NER
nlp = spacy.load(“en_core_web_sm”)
=================
go to:
https://github.com/explosion/spacy-models/releases?q=en_core_web_sm&expanded=true
download:
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0-py3-none-any.whl
command:
pip install en_core_web_sm-3.2.0-py3-none-any.whl
verify:
import spacy
nlp = spacy.load(“en_core_web_sm”)
验证看出手动下载model的和官方推荐的效果一样。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。