为了账号安全,请及时绑定邮箱和手机立即绑定

无法导入名称“combined_rule_sentence_segmenter”

无法导入名称“combined_rule_sentence_segmenter”

BIG阳 2023-06-20 10:19:10
我已经安装了所有的软件包。导入它们时出现“无法导入名称‘combined_rule_sentence_segmenter’”之类的错误。如何正确导入包。!pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.0/en_core_sci_sm-0.2.0.tar.gzpip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.0/en_core_sci_md-0.2.0.tar.gzpip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.0/en_ner_bc5cdr_md-0.2.0.tar.gzpip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.2.0/en_ner_bionlp13cg_md-0.2.0.tar.gzimport scispacyimport spacyfrom spacy import displacyfrom collections import Counterimport en_core_web_smimport en_ner_bc5cdr_mdimport en_core_sci_smimport en_core_sci_mdimport en_ner_bionlp13cg_mdfrom scispacy.abbreviation import AbbreviationDetectorfrom scispacy.umls_linking import UmlsEntityLinkerfrom collections import OrderedDictfrom pprint import pprint  warnings.warn(warn_msg)---------------------------------------------------------------------------ImportError                               Traceback (most recent call last)<ipython-input-14-66f9ffa9fc68> in <module>()      4 from collections import Counter      5 import en_core_web_sm----> 6 import en_ner_bc5cdr_md      7 import en_core_sci_sm      8 import en_core_sci_md
查看完整描述

1 回答

?
富国沪深

TA贡献1790条经验 获得超9个赞

使用 en_core_sci_sm-0.2.5 而不是 en_core_sci_sm-0.2.0!pip 安装


查看完整回答
反对 回复 2023-06-20
  • 1 回答
  • 0 关注
  • 111 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信