mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
Fix Issue #461: O tag was being clobbered by doc.ents.__set__
This commit is contained in:
parent
e5627134d9
commit
15c9b59f0e
|
@ -323,7 +323,7 @@ cdef class Doc:
|
|||
cdef int i
|
||||
for i in range(self.length):
|
||||
self.c[i].ent_type = 0
|
||||
self.c[i].ent_iob = 0
|
||||
self.c[i].ent_iob = 2 # Means O, not missing!
|
||||
cdef attr_t ent_type
|
||||
cdef int start, end
|
||||
for ent_info in ents:
|
||||
|
|
Loading…
Reference in New Issue
Block a user