Fix Issue #461: O tag was being clobbered by doc.ents.__set__

This commit is contained in:
Matthew Honnibal 2016-10-23 15:50:26 +02:00
parent e5627134d9
commit 15c9b59f0e

View File

@ -323,7 +323,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
self.c[i].ent_iob = 0 self.c[i].ent_iob = 2 # Means O, not missing!
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: