mirror of https://github.com/explosion/spaCy.git
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():
|
||||
if key not in exclude:
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue