Skip to content

Commit

Permalink
Resolve merge when cherry-picking ent iob patches from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Mar 28, 2018
1 parent 99fbc7d commit e807f88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spacy/tokens/doc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,7 @@ cdef class Doc:
cdef int i
for i in range(self.length):
self.c[i].ent_type = 0
# At this point we don't know whether the NER has run over the
# 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.
self.c[i].ent_iob = 0 # Means missing.
cdef attr_t ent_type
cdef int start, end
for ent_info in ents:
Expand Down

0 comments on commit e807f88

Please sign in to comment.