- 博客(4)
- 收藏
- 关注
原创 ValueError: [E966] nlp.add_pipe now takes the string name of the registered component factory
是spacy和en_core_web_sm的版本太高,而add_pipe方法的工作方式在v3中发生了变化,此代码使用的是v2样式。方法二:降低版本,将spacy和en_core_web_sm的版本同时将为v2版本,作者这里将这两个都降为2.2.0版本。
2022-11-16 22:25:28
1039
原创 OSError: [E050]Can‘t find model ‘en_core_web_sm’
完整的报错为:这个错误的原因是环境中找不到en_core_web_sm这个包。导致这个错误的原因有两个:本文给出第一种情况解决方案,第二种可参考此方法1.conda命令配置:2.从GitHub上下载安装:建议指定en_core_web_sm版本,使的spacy与en_core_web_sm版本一致,否则也会出现错误情况,参考此链接以上参考:安装spacy的问题:Can‘t find model ‘en_core_web_sm‘
2022-11-16 21:58:31
2616
1
原创 ModuleNotFoundError: No module named ‘pytorch_pretrained_bert’
安装pytorch-pretrained-bert包的过程中出现错误
2022-11-16 21:30:10
2506
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人