Code Monkey home page Code Monkey logo

Comments (14)

thomwolf avatar thomwolf commented on June 20, 2024 1

Happy to hear that.
By the way, you don't even need to install spaCy before neuralcoref, the recommended way to install NeuralCoref with conda (assuming MODEL_URL contains the NeuralCoref model URL) :

conda create -n myenv
source activate myenv
pip install MODEL_URL

from neuralcoref.

BBCMax avatar BBCMax commented on June 20, 2024

I tried downgrading spaCy to version 2.0.0 and got a slightly different value error

ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 64, got 112

from neuralcoref.

AYEG avatar AYEG commented on June 20, 2024

I think i also experienced that problem when I tried upgrading from 2.0 in 3.0 in another environment. in another clean virtual environment spacy keeps telling me I can't find the module and if I try to import it direcly it tells me "ImportError: cannot import name 'load_model_from_init_py'"

from neuralcoref.

AYEG avatar AYEG commented on June 20, 2024

Did an extra run to check if interpreter and right pip was used within conda and got the same message: "ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 88, got 112"

from neuralcoref.

thomwolf avatar thomwolf commented on June 20, 2024

Hi @BBCMax and @AYEG,
I can't reproduce your error with the latest spaCy and neuralcoref models.
Two questions:

  • are you on windows/mac/linux ?
  • do you have an error when you use en_coref_sm?

from neuralcoref.

BBCMax avatar BBCMax commented on June 20, 2024

Hey!
I am running this on a mac, and I had the same error with en_coref_sm.

However I managed to get this working yesterday with the most recent version of spaCy and neuralcoref models (and en_coref_md). I had to do a fresh install of spaCy, its models, and neuralcoref - but I can't explain what would have changed in this process. Sorry for the confusion!

from neuralcoref.

AYEG avatar AYEG commented on June 20, 2024

Hi, yes also running on a mac and was unable to use en_coref_sm or en_coref_md inside newly created conda environments, tried different versions of spacy.

I gave it another try just now to see,
I created a conda environment, activated it..

conda install spacy
python -m spacy download en_core_web_sm
pip install https://github.com/huggingface/neuralcoref-models/releases/download/en_coref_sm-3.0.0/en_coref_sm-3.0.0.tar.gz

During Pip install I get two red lines

Successfully built en-coref-sm
mkl-random 1.0.1 requires cython, which is not installed.   <----
mkl-fft 1.0.0 requires cython, which is not installed.           <-----
 Installing collected packages: en-coref-sm, pathlib, regex

when i try to run, when it loads the model into spacy or when I import the module directly I get:

File "strings.pxd", line 23, in init en_coref_sm.neuralcoref.neuralcoref
ValueError: spacy.strings.StringStore has the wrong size, try recompiling. Expected 88, got 112

from neuralcoref.

thomwolf avatar thomwolf commented on June 20, 2024

Interesting, thanks.
Maybe the conda version of spaCy is older than the pip version.
Can you try pip install spacyinstead of conda in a clean environment?

from neuralcoref.

BBCMax avatar BBCMax commented on June 20, 2024

I did this in a clean environment via pip initially..

from neuralcoref.

AYEG avatar AYEG commented on June 20, 2024

Thank you, It is working and it is quick! Amazing work

from neuralcoref.

thomwolf avatar thomwolf commented on June 20, 2024

@BBCMax if you still have the problem try reinstalling a clean version of NeuralCoref like this:

pip install --upgrade --force-reinstall --no-cache-dir MODEL_URL

from neuralcoref.

BBCMax avatar BBCMax commented on June 20, 2024

Thanks @thomwolf - all ok now, but I hope it can help someone else suffering from similar issues!

from neuralcoref.

thomwolf avatar thomwolf commented on June 20, 2024

Thanks for the heads up

from neuralcoref.

ashwini2008 avatar ashwini2008 commented on June 20, 2024

Thanks @thomwolf - all ok now, but I hope it can help someone else suffering from similar issues!

hey I have same problem. Can you please help me out?

from neuralcoref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.