Fix typo in tensorizer serialization

This commit is contained in:
Matthew Honnibal 2017-09-26 06:45:14 -05:00
parent 5056743ad5
commit 18a27c7579

View File

@ -145,7 +145,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))),
('vocab', lambda b: self.vocab.from_bytes(b)) ('vocab', lambda b: self.vocab.from_bytes(b)),
('model', load_model), ('model', load_model),
)) ))
util.from_bytes(bytes_data, deserialize, exclude) util.from_bytes(bytes_data, deserialize, exclude)