mirror of https://github.com/explosion/spaCy.git
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
|
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:
|
||||||
|
|
Loading…
Reference in New Issue