Fix typo in Language.from_disk

This commit is contained in:
ines 2018-06-29 14:32:16 +02:00
parent 46d8a66fef
commit f08c871adf

View File

@ -650,7 +650,7 @@ class Language(object):
for name, proc in self.pipeline: for name, proc in self.pipeline:
if name in disable: if name in disable:
continue continue
if not hasattr(proc, 'to_disk'): if not hasattr(proc, 'from_disk'):
continue continue
deserializers[name] = lambda p, proc=proc: proc.from_disk(p, vocab=False) deserializers[name] = lambda p, proc=proc: proc.from_disk(p, vocab=False)
exclude = {p: False for p in disable} exclude = {p: False for p in disable}