Fix to serialization

This commit is contained in:
Matthew Honnibal 2017-05-29 13:40:31 +02:00
parent 59f355d525
commit 74235587ef

View File

@ -436,7 +436,7 @@ class Language(object):
continue continue
if not hasattr(proc, 'to_bytes'): if not hasattr(proc, 'to_bytes'):
continue continue
serializers[proc.name] = lambda: proc.to_bytes(p, vocab=False) serializers[proc.name] = lambda: proc.to_bytes(vocab=False)
return util.to_bytes(serializers, {}) return util.to_bytes(serializers, {})
def from_bytes(self, bytes_data, disable=[]): def from_bytes(self, bytes_data, disable=[]):