mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
parent
99a7ef40b8
commit
6e37ba1d82
|
@ -39,7 +39,7 @@ cdef class Morphology:
|
||||||
tag_id = self.reverse_index[self.strings[tag]]
|
tag_id = self.reverse_index[self.strings[tag]]
|
||||||
else:
|
else:
|
||||||
tag_id = self.reverse_index[tag]
|
tag_id = self.reverse_index[tag]
|
||||||
self.assign_tag_id(token, tag_id)
|
self._assign_tag_id(token, tag_id)
|
||||||
|
|
||||||
cdef int _assign_tag_id(self, TokenC* token, int tag_id) except -1:
|
cdef int _assign_tag_id(self, TokenC* token, int tag_id) except -1:
|
||||||
if tag_id >= self.n_tags:
|
if tag_id >= self.n_tags:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user