Hi I am trying a simple coref resolution code in python as
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)
It shows following error:
"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"
If I try to install en_coref_lg
using python -m spacy download en_coref_lg
then it shows
"✘ No compatible model found for 'en_coref_lg' (spaCy v2.3.2)."
What should I do ?
Install
neuralcoref
andspacy==2.1.0
:Run your code:
Note the version of
spacy==2.1.0
. It's required if you want to install withpip
.Alternatively, build from source:
Proof: