From 0b527fbdc8d2623c76ac0a747f2251458ad3f6e2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 9 Sep 2015 14:30:24 +0200 Subject: [PATCH] * Set POS tag in morphology --- spacy/morphology.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index fc6a4936b..2ce484d7b 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -24,6 +24,7 @@ cdef class Morphology: self.rich_tags[i].id = i self.rich_tags[i].name = self.strings[tag_str] self.rich_tags[i].morph = 0 + self.rich_tags[i].pos = UNIV_POS_NAMES[props['pos'].upper()] self.reverse_index[self.rich_tags[i].name] = i self._cache = PreshMapArray(self.n_tags)