mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Restore encoding arg on msgpack-numpy
This commit is contained in:
parent
276aa83d1a
commit
6430b1fe64
|
@ -483,7 +483,7 @@ def to_bytes(getters, exclude):
|
||||||
for key, getter in getters.items():
|
for key, getter in getters.items():
|
||||||
if key not in exclude:
|
if key not in exclude:
|
||||||
serialized[key] = getter()
|
serialized[key] = getter()
|
||||||
return msgpack.dumps(serialized, use_bin_type=True)
|
return msgpack.dumps(serialized, use_bin_type=True, encoding='utf8')
|
||||||
|
|
||||||
|
|
||||||
def from_bytes(bytes_data, setters, exclude):
|
def from_bytes(bytes_data, setters, exclude):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user