diff --git a/spacy/syntax/ner.pyx b/spacy/syntax/ner.pyx index 8fa4a03d5..c569bfa43 100644 --- a/spacy/syntax/ner.pyx +++ b/spacy/syntax/ner.pyx @@ -300,6 +300,8 @@ cdef class Unit: return False elif preset_ent_iob == 1: return False + elif preset_ent_iob == 3 and st.B_(0).ent_type != label: + return False elif st.B_(1).ent_iob == 1: return False return label != 0 and not st.entity_is_open()