From 6734cfec8881f280aeaf952a31feecac48a8b93d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 7 Mar 2019 12:14:37 +0100 Subject: [PATCH] Add comment --- spacy/morphology.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index a4759e4ab..585a004b4 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -204,6 +204,7 @@ cdef class Morphology: pos = 0 cdef attr_t lemma = self._cache.get(tag_id, token.lex.orth) if lemma == 0: + # Ugh, self.lemmatize has opposite arg order from self.lemmatizer :( lemma = self.lemmatize(pos, token.lex.orth, features) self._cache.set(tag_id, token.lex.orth, lemma) token.lemma = lemma