【spacy.load

【spacy.load,第1张

1、spacy.load(‘en‘) 失败的解决方法和安装en_core_web_sm的三步骤
pip install spacy
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ en_core_web_sm --trusted-host pypi.tuna.tsinghua.edu.cn
conda install -c conda-forge spacy-model-en_core_web_sm

关于-c conda-forge,这个其实也是一个库,里面有很多的包(package),其中-c conda-forge是指明在库conda-forge中下载pkgs。
也是被anaconda组织(org)收录的库,我们平常conda install jieba后面没有加-c的时候,默认好像是使用anaconda库。

2、Can’t find model ‘en_core_web_sm’

常用再安装一次

python -m spacy download en_core_web_sm

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/868340.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存