Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel crashes when trying to run demo code #359

Open
GitVex opened this issue Sep 26, 2023 · 1 comment
Open

Kernel crashes when trying to run demo code #359

GitVex opened this issue Sep 26, 2023 · 1 comment

Comments

@GitVex
Copy link

GitVex commented Sep 26, 2023

I've tried running the demo code from the repo readme:

# Load your usual SpaCy model (one of SpaCy English models)
import spacy
nlp = spacy.load('en')

# Add neural coref to SpaCy's pipe
import neuralcoref
neuralcoref.add_to_pipe(nlp)

# You're done. You can now use NeuralCoref as you usually manipulate a SpaCy document annotations.
doc = nlp(u'My sister has a dog. She loves him.')

doc._.has_coref
doc._.coref_clusters

Through commenting out some parts I found that neuralcoref.add_to_pipe(nlp) causes the kernel crash.

I'm running on a python 3.8 version which only runs on the dependencies given through pip install neuralcoref.
I downgraded the SpaCy version to 2.3.9 as per #355 (comment)

@Vinayrevanuru1
Copy link

Hi GitVex , I have faced the same error and I solved this issue by reverting my spacy version to 2.1.0 .Please try this if you are still searching for a fix .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants