huggingface / huggingface/neuralcoref

AttributeError: module 'neuralcoref' has no attribute 'neuralcoref'

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.9k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

For the code -
```python
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 -
```bash
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 -

```
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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.