我已經(jīng)安裝了所有的軟件包。導入它們時出現(xiàn)“無法導入名稱‘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
提交
取消