UnicodeDecodeError when loading spacy
See original GitHub issueWhether I use:
from spacy.en import English
nlp = English()
or
import spacy
nlp = spacy.load('en')
I get the error:
nlp = spacy.load('en') return cls(path=path, **overrides) if 'vocab' not in overrides \ lemmatizer = cls.create_lemmatizer(nlp) return Lemmatizer.load(nlp.path) rules = json.load(file_) return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x9d in position 565: character maps to <undefined>
Could this be an issue with the encoding since python 2.7 handles encoding differently than 3.x? Although if I recall well, I used spacy on python 2.7 without any issues before.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 ...
I am getting an error from nlp below: Any help would be very much appreciated. # -*- coding: utf-8 -*- import spacy nlp...
Read more >UnicodeEncodeError during training - solved
No, in spaCy v2, the pipeline components are independent and can be trained separately. So whether the pipeline has a tagger or not...
Read more >UnicodeDecodeError encounted when load the spacy model
Yesterday , I tried to install the latest model ' en_core_web_sm 2.0.0-alpha ' but failed. Then I found I couldn't load the models...
Read more >What's New in v2.0 · spaCy Usage Documentation
We're very excited to finally introduce spaCy v2.0! On this page, you'll find a summary of the new features, information on the backwards...
Read more >explosion/spaCy
Hello All, I´ve just trained a model and its giving me the following error when trying to load it from disk: UnicodeDecodeError: 'utf-8'...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fixed version is 1.0.4 — I think you nipped in just ahead of the upload. Try now.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.