blueprints-for-text-analytics-python / blueprints-text

Jupyter notebooks for our O'Reilly book "Blueprints for Text Analysis Using Python"
Apache License 2.0
250 stars 141 forks source link

Chapter 12. NueralCoref not working on Colab #19

Open minhyeokl opened 2 years ago

minhyeokl commented 2 years ago

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?