From 514d89a3ae204d8499da9397675728ba2a77d10a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 26 Mar 2018 07:14:16 +0200 Subject: [PATCH] Set missing label for non-specified entities when setting doc.ents --- 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 cc7be7e74..bde0719ab 100644 --- a/spacy/tokens/doc.pyx +++ b/spacy/tokens/doc.pyx @@ -465,7 +465,7 @@ cdef class Doc: cdef int i for i in range(self.length): self.c[i].ent_type = 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: