diff --git a/spacy/language.py b/spacy/language.py index e1e01d0ca..6b0ee6361 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -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}