mirror of https://github.com/explosion/spaCy.git
* Set POS tag in morphology
This commit is contained in:
parent
07c09a0e1b
commit
0b527fbdc8
|
@ -24,6 +24,7 @@ cdef class Morphology:
|
||||||
self.rich_tags[i].id = i
|
self.rich_tags[i].id = i
|
||||||
self.rich_tags[i].name = self.strings[tag_str]
|
self.rich_tags[i].name = self.strings[tag_str]
|
||||||
self.rich_tags[i].morph = 0
|
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.reverse_index[self.rich_tags[i].name] = i
|
||||||
self._cache = PreshMapArray(self.n_tags)
|
self._cache = PreshMapArray(self.n_tags)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue