From 4cc84b023427a7dcbe7fbb7909c67ee3cbc9cc19 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 9 Oct 2017 00:02:45 +0200 Subject: [PATCH] Prohibit Break when sent_start < 0 --- spacy/syntax/arc_eager.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 3a61e1f9d..9770383d1 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -250,6 +250,8 @@ cdef class Break: return False elif st.B_(0).l_edge < 0: return False + elif st._sent[st.B_(0).l_edge].sent_start < 0: + return False else: return True