diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index 238e5670e..cbecbe3b6 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -142,7 +142,7 @@ class BaseThincComponent(object): deserialize = OrderedDict(( ('cfg', lambda b: self.cfg.update(ujson.loads(b))), - ('model', lambda b: self.model.from_bytes(b)), + ('model', load_model), ('vocab', lambda b: self.vocab.from_bytes(b)) )) util.from_bytes(bytes_data, deserialize, exclude)