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:
if name in disable:
continue
if not hasattr(proc, 'to_disk'):
if not hasattr(proc, 'from_disk'):
continue
deserializers[name] = lambda p, proc=proc: proc.from_disk(p, vocab=False)
exclude = {p: False for p in disable}