From 9620c1a640a52f1e560c122e2c737a16d00d5c2f Mon Sep 17 00:00:00 2001 From: ines Date: Wed, 11 Oct 2017 13:26:05 +0200 Subject: [PATCH] Add lemma_lookup to Language defaults --- spacy/language.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index d40aee3ca..86292f4ff 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -33,7 +33,8 @@ from . import about class BaseDefaults(object): @classmethod def create_lemmatizer(cls, nlp=None): - return Lemmatizer(cls.lemma_index, cls.lemma_exc, cls.lemma_rules) + return Lemmatizer(cls.lemma_index, cls.lemma_exc, cls.lemma_rules, + cls.lemma_lookup) @classmethod def create_vocab(cls, nlp=None): @@ -77,6 +78,7 @@ class BaseDefaults(object): lemma_rules = {} lemma_exc = {} lemma_index = {} + lemma_lookup = {} morph_rules = {} lex_attr_getters = LEX_ATTRS syntax_iterators = {}