From 15c9b59f0e9c3be117870863b6d79bbe466f3b90 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 23 Oct 2016 15:50:26 +0200 Subject: [PATCH] Fix Issue #461: O tag was being clobbered by doc.ents.__set__ --- spacy/tokens/doc.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/doc.pyx b/spacy/tokens/doc.pyx index 4e292d623..52abf47c0 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -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: