Code Monkey home page Code Monkey logo

Comments (7)

richcamp avatar richcamp commented on September 21, 2024 1

Appears to be a typo in previous: should be line 338 that's changed.

from neuralcoref.

nodyyu89 avatar nodyyu89 commented on September 21, 2024 1

Hi there, When tryning to run the demo source code, this is the error I get:

embeddings_from_file(model_path + "static_word")

File "C:\Users<my python dictionary>\site-packages\neuralcoref\data.py", line 339, in load_embeddings_from_file
for i, line in enumerate(f):
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 2463: illegal multibyte sequence

I am currently running Python 3.4 , spaCy 2. 0, using the model 'en_core_web_sm' and I have all the dependencies installed.

I tried to add this to data.py line 338:

with open(name+"_vocabulary.txt", encoding="utf8") as f:

or

with open(name+"_vocabulary.txt", encoding="gbk") as f:

All these don't work.
any ideas? Thx

26-12-2017
After i reinstalled neuralcoref several times, it finally works with making an amendment in data,py line 338:
with open(name+"_vocabulary.txt", encoding="utf8") as f:

thx for reference above all!

from neuralcoref.

rlpatsh avatar rlpatsh commented on September 21, 2024

Resolved it by changing data.py line 238 to

with open(name+"_vocabulary.txt", encoding="utf8") as f:

from neuralcoref.

eyb1 avatar eyb1 commented on September 21, 2024

For search engines, error is:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 626: character maps to <undefined>

Thanks for the above solution guys.

from neuralcoref.

theSage21 avatar theSage21 commented on September 21, 2024

I've come across files which hasve 'latin1' encodings. You can try out 'latin1' as the encoding if 'utf-8' does not fix it.

from neuralcoref.

khliu1238 avatar khliu1238 commented on September 21, 2024

demo source code gone now? I didn't see any.

from neuralcoref.

thomwolf avatar thomwolf commented on September 21, 2024

We are now on release v3.0 so I am closing this old issue.
Feel free to open it again (or a new one) if you are experiencing some issues with the new release.

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.