我已经安装了所有的软件包。导入它们时出现“无法导入名称‘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
添加回答
举报
0/150
提交
取消