运行Neuralcoref时内核死亡 [英] Kernel Died when running Neuralcoref
问题描述
我正在尝试安装Neurocoref,并按照此处给出的说明进行操作.
I am trying to install neuralcoref and following the instructions given here.
我创建了一个jupyter笔记本,并尝试运行以下代码.
I created a jupyter notebook and try to run the following code.
# 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
我从jupyter收到一条错误消息,表明内核已死亡.即使我尝试在python文件中运行,但仍然无法正常工作.
I get an error message from the jupyter, that kernel died. Even I try to run in the in a python file but still its not working.
操作系统-Windows 10 内存:16GB
O.S - Windows 10 RAM : 16GB
注意:我确实尝试过更新numpy,但仍然没有用.
Note: I did try out to updating numpy but still it didn't worked.
有人可以帮我吗?感谢您的时间. 谢谢
Can anyone help me with that. Appreciate your time. Thanks
推荐答案
按此处: https: //github.com/huggingface/neuralcoref/issues/189 .
如果将Spacy降级为2.1.0,则可以使其正常工作.
You can get it to work fine if you downgrade Spacy to 2.1.0.
pip uninstall spacy
pip uninstall neuralcoref
pip install spacy==2.1.0
pip install neuralcoref --no-binary neuralcoref
曾为包括我自己在内的其他人工作.笔记本现在可以正常运行.
Has worked for others, including myself. Notebook now runs fine.
这篇关于运行Neuralcoref时内核死亡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!