mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Resolve merge when cherry-picking ent iob patches from develop
This commit is contained in:
parent
99fbc7db33
commit
e807f88410
|
@ -451,10 +451,7 @@ cdef class Doc:
|
||||||
cdef int i
|
cdef int i
|
||||||
for i in range(self.length):
|
for i in range(self.length):
|
||||||
self.c[i].ent_type = 0
|
self.c[i].ent_type = 0
|
||||||
# At this point we don't know whether the NER has run over the
|
self.c[i].ent_iob = 0 # Means missing.
|
||||||
# Doc. If the ent_iob is missing, leave it missing.
|
|
||||||
if self.c[i].ent_iob != 0:
|
|
||||||
self.c[i].ent_iob = 2 # Means O. Non-O are set from ents.
|
|
||||||
cdef attr_t ent_type
|
cdef attr_t ent_type
|
||||||
cdef int start, end
|
cdef int start, end
|
||||||
for ent_info in ents:
|
for ent_info in ents:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user