嗨,我正在 python 中尝试一个简单的 coref 解析代码
import spacy
nlp = spacy.load('en_coref_md')
doc = nlp(u'Phone area code will be valid only when all the below conditions are met. It cannot be left blank. It should be numeric. It cannot be less than 200. Minimum number of digits should be 3. ')
print(doc._.coref_clusters)
print(doc._.coref_resolved)
它显示以下错误:
"OSError: [E050] Can't find model 'en_coref_lg'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data"
如果我尝试en_coref_lg
使用 python安装,-m spacy download en_coref_lg
那么它会显示
"✘ No compatible model found for 'en_coref_lg' (spaCy v2.3.2)."
我应该怎么办 ?