From 3679fb43a32265c091f57f613dc2c3bbcde5956e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 17:34:09 +0100 Subject: [PATCH] Fix loading of lemmatizer --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index 2019c7d88..c6f1376a4 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -39,7 +39,7 @@ class BaseDefaults(object): if nlp is None or nlp.path is None: return Lemmatizer({}, {}, {}) else: - return Lemmatizer.load(nlp.path, rules=self.lemma_rules) + return Lemmatizer.load(nlp.path, rules=cls.lemma_rules) @classmethod def create_vocab(cls, nlp=None):