* Set POS tag in morphology

This commit is contained in:
Matthew Honnibal 2015-09-09 14:30:24 +02:00
parent 07c09a0e1b
commit 0b527fbdc8
1 changed files with 1 additions and 0 deletions

View File

@ -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)