blueprints-text icon indicating copy to clipboard operation
blueprints-text copied to clipboard

Chapter 12. NueralCoref not working on Colab

Open minhyeokl opened this issue 2 years ago • 0 comments

I'm using the notebook on Colab. But I got the error with NueralCoref package.

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[/content/setup.py](https://localhost:8080/#) in <module>
----> 1 from neuralcoref import NeuralCoref
      2 neural_coref = NeuralCoref(nlp.vocab, greedyness=0.45)
      3 nlp.add_pipe(neural_coref, name='neural_coref')

[/usr/local/lib/python3.7/dist-packages/neuralcoref/__init__.py](https://localhost:8080/#) in <module>
      8 warnings.filterwarnings("ignore", message="spacy.strings.StringStore size changed")
      9 
---> 10 from neuralcoref.neuralcoref import NeuralCoref
     11 from neuralcoref.file_utils import (
     12     NEURALCOREF_MODEL_URL,

neuralcoref.pyx in init neuralcoref.neuralcoref()

ValueError: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 120 from C header, got 112 from PyObject

Is there any workaround with it?

minhyeokl avatar Aug 17 '22 00:08 minhyeokl