GithubHelp home page GithubHelp logo

Comments (7)

thomwolf avatar thomwolf commented on August 24, 2024

Hum maybe that a problem of encoding, do you use python 3 or 2?

from neuralcoref.

theSage21 avatar theSage21 commented on August 24, 2024

I'm sorry. I should have included that.
Ubuntu 18.04, Python 3.6.2

from neuralcoref.

theSage21 avatar theSage21 commented on August 24, 2024

Ok. So this happens whenever there's no actual coref in the text.

import spacy
nlp = spacy.load('en_coref_sm')
doc = nlp('john was walking down the road.')
doc[0]._.coref_clusters

Could be because of https://github.com/huggingface/neuralcoref/blob/master/neuralcoref/neuralcoref.pyx#L802

I don't know enough about packaging and cython to verify if this is indeed the problem. My changes are not picked up by cython (?). If it is the issue, I'll be happy to put in a pull request.

from neuralcoref.

thomwolf avatar thomwolf commented on August 24, 2024

Oh yes, that's probably the issue. I will fix it tomorrow!

If you want to fix it yourself, you have to recompile the model with NeuralCoref CLI packaging script but I haven't documented that script yet so if you are not familiar with packaging a spaCy model it may be a bit difficult to use right now. Will add doc on this in the next release.

from neuralcoref.

thomwolf avatar thomwolf commented on August 24, 2024

Hi @theSage21, I finally found time to work on NeuralCoref.
This should be fixed in the new release (4.0).

from neuralcoref.

rudraksh97 avatar rudraksh97 commented on August 24, 2024

I am using en_coref_md. I am getting this error. How to resolve this?

from neuralcoref.

floraliu1011 avatar floraliu1011 commented on August 24, 2024

I am using en and I also got this problem

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.