Comments (7)
Appears to be a typo in previous: should be line 338 that's changed.
from neuralcoref.
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.
Resolved it by changing data.py line 238 to
with open(name+"_vocabulary.txt", encoding="utf8") as f:
from neuralcoref.
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.
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.
demo source code gone now? I didn't see any.
from neuralcoref.
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)
- Wrong average embedding during inference due to a small bug in neuracoref.pyx
- Missing implementation of doc embeddings during inference
- Wrong Mention Type one-hot vectors during training due to a small bug in dataset.py
- Training Dataset Format
- Can't install neuralcoref, keep getting this error: C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 HOT 4
- Error in training without changing anything from the default instructions
- GPU support - cuda 11.1 - TypeError: Unsupported type <class 'numpy.ndarray'>
- (base) C:\Users\sk136\neuralcoref>python -m neuralcoref.train.learn --train ./data/train/ --eval ./data/dev/ facing problem while executing.. this command HOT 1
- Results completely differ from web-demo
- Compatibility with Spacy 3+ HOT 7
- Regarding finetuning neuralcoref
- dels HOT 1
- neuralcoref not supporting python 3.9 version HOT 1
- spacy.strings.StringStore size changed, may indicate binary incompatibility HOT 5
- Dependency Problem HOT 1
- I can't install neuralcoref HOT 8
- Unresolved dependencies?
- Kernel crashes when trying to run demo code HOT 1
- Process finished with exit code -1073741819 (0xC0000005)
- installation failed with HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuralcoref.