Fix deserialization bug

This commit is contained in:
Matthew Honnibal 2017-09-04 15:19:01 +02:00
parent bfddf50081
commit 382ce566eb
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class BaseThincComponent(object):
deserialize = OrderedDict(( deserialize = OrderedDict((
('cfg', lambda b: self.cfg.update(ujson.loads(b))), ('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)) ('vocab', lambda b: self.vocab.from_bytes(b))
)) ))
util.from_bytes(bytes_data, deserialize, exclude) util.from_bytes(bytes_data, deserialize, exclude)