From 5efad178b592594a32c576938426f0534a2de534 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 7 Nov 2015 06:09:25 +1100 Subject: [PATCH] * Set ent tag when close entity --- spacy/syntax/ner.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index b3ecfc2a5..099375b82 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -269,6 +269,7 @@ cdef class Last: @staticmethod cdef int transition(StateClass st, int label) nogil: st.close_ent() + st.set_ent_tag(st.B(0), 2, label) st.push() st.pop()