mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Fix to serialization
This commit is contained in:
parent
59f355d525
commit
74235587ef
|
@ -436,7 +436,7 @@ class Language(object):
|
|||
continue
|
||||
if not hasattr(proc, 'to_bytes'):
|
||||
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, {})
|
||||
|
||||
def from_bytes(self, bytes_data, disable=[]):
|
||||
|
|
Loading…
Reference in New Issue
Block a user