我能够安装spaCy并下载标准的英文版本(en_core_web_sm)。但是,通过加载标准数据模型,我收到了以下错误消息: import spacy# Load English tokenizer, tagger, parser and NER
ValueError: [E1005] Unable to set attribute 'POS' in tokenizer
我的代码:def tokenize_sentences(text): sentences = [sent.text for sent in nlp(text).sents]text = "Some phrases that I use as a test. The context is not important. Test sentence.
错误是:
TypeError
我正在尝试加载en_core_web_smspaCy模型,但没有成功。OSError: [E050] Can't find model 'en_core_web_sm'.><code>F 216</code>spacy info
============================== Info about spaCy ===/