Fix loading of lemmatizer

This commit is contained in:
Matthew Honnibal 2016-12-18 17:34:09 +01:00
parent 3980f1b0cb
commit 3679fb43a3

View File

@ -39,7 +39,7 @@ class BaseDefaults(object):
if nlp is None or nlp.path is None: if nlp is None or nlp.path is None:
return Lemmatizer({}, {}, {}) return Lemmatizer({}, {}, {})
else: else:
return Lemmatizer.load(nlp.path, rules=self.lemma_rules) return Lemmatizer.load(nlp.path, rules=cls.lemma_rules)
@classmethod @classmethod
def create_vocab(cls, nlp=None): def create_vocab(cls, nlp=None):