diff --git a/spacy/de/__init__.py b/spacy/de/__init__.py index e76431b15..f2a173e71 100644 --- a/spacy/de/__init__.py +++ b/spacy/de/__init__.py @@ -12,9 +12,10 @@ from .. import about class German(Language): lang = 'de' - @classmethod + @classmethod def default_vocab(cls, package, get_lex_attr=None, vectors_package=None): vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package) - # for now until the morphology is done for German + # set a dummy lemmatizer for now that simply returns the same string + # until the morphology is done for German vocab.morphology.lemmatizer = lambda string,pos: set([string]) return vocab