You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 144: invalid continuation byte
Complete Stack Trace:
doc.from_bytes(byte_string)
File "spacy/tokens/doc.pyx", line 613, in spacy.tokens.doc.Doc.from_bytes (spacy/tokens/doc.cpp:12325)
File "spacy/serialize/packer.pyx", line 129, in spacy.serialize.packer.Packer.unpack_into (spacy/serialize/packer.cpp:6258)
File "spacy/serialize/packer.pyx", line 184, in spacy.serialize.packer.Packer._char_decode (spacy/serialize/packer.cpp:7637)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 144: invalid continuation byte
Environment
Spacy 1.7.5
OS: Ubuntu
Python: 3.5
The text was updated successfully, but these errors were encountered:
I created a spacy file using
byte_string = doc.to_bytes()
open(file, 'wb').write(byte_string)
However on reading the same file back using
I am getting a UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 144: invalid continuation byte
Complete Stack Trace:
doc.from_bytes(byte_string)
File "spacy/tokens/doc.pyx", line 613, in spacy.tokens.doc.Doc.from_bytes (spacy/tokens/doc.cpp:12325)
File "spacy/serialize/packer.pyx", line 129, in spacy.serialize.packer.Packer.unpack_into (spacy/serialize/packer.cpp:6258)
File "spacy/serialize/packer.pyx", line 184, in spacy.serialize.packer.Packer._char_decode (spacy/serialize/packer.cpp:7637)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 144: invalid continuation byte
Environment
Spacy 1.7.5
OS: Ubuntu
Python: 3.5
The text was updated successfully, but these errors were encountered: