From 6430b1fe64c4e29f35c701ceb0ce0bba8be5fda4 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 27 Sep 2018 15:58:21 +0200 Subject: [PATCH] Restore encoding arg on msgpack-numpy --- spacy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index 29ecb0fbe..c66da759c 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -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):