Closed amit-pathak-tataiq closed 3 years ago
For the code -
import spacy nlp = spacy.load('en_core_web_sm') import neuralcoref coref = neuralcoref.neuralcoref.NeuralCoref(nlp.vocab) nlp.add_pipe(coref, name='neuralcoref')
I am getting the following error -
coref = neuralcoref.neuralcoref.NeuralCoref(nlp.vocab) AttributeError: module 'neuralcoref' has no attribute 'neuralcoref'
Strangely, the code was working fine earlier with the virtual environment but now I am starting to get this error.
I am using python v3.6.8 on Linux and my requirements.txt is -
python v3.6.8
requirements.txt
attrs==21.2.0 beautifulsoup4==4.9.3 blis==0.7.4 boto3==1.17.78 botocore==1.20.78 catalogue==1.0.0 cymem==2.0.5 Cython==0.29.23 en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz iniconfig==1.1.1 jmespath==0.10.0 murmurhash==1.0.5 -e git+https://github.com/huggingface/neuralcoref.git@0cff3c94e6019f6bee1004b58a3f0cd59c806fcf#egg=neuralcoref nltk==3.6.2 packaging==20.9 plac==1.1.3 pluggy==0.13.1 preshed==3.0.5 psycopg2-binary==2.8.6 py==1.10.0 pytest==6.2.4 regex==2021.4.4 s3transfer==0.4.2 soupsieve==2.2.1 spacy==2.3.5 srsly==1.0.5 thinc==7.4.5 toml==0.10.2 tqdm==4.60.0 Unidecode==1.2.0 wasabi==0.8.2
For the code -
I am getting the following error -
Strangely, the code was working fine earlier with the virtual environment but now I am starting to get this error.
I am using
python v3.6.8
on Linux and myrequirements.txt
is -