From 134d3b814383fe9bec0bd984d5b5298388b8019e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 5 Nov 2017 22:18:22 +0100 Subject: [PATCH] Fix morphology --- spacy/morphology.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index aa308fd22..3414eec5f 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -109,8 +109,8 @@ cdef class Morphology: analysis.lemma = self.lemmatize(analysis.tag.pos, token.lex.orth, self.tag_map.get(tag_str, {})) self._cache.set(tag_id, token.lex.orth, analysis) - if token.lemma == 0: - token.lemma = analysis.lemma + if token.lemma == 0: + token.lemma = analysis.lemma token.pos = analysis.tag.pos token.tag = analysis.tag.name token.morph = analysis.tag.morph