From dd052572d41fd9fc5cf6e0c1994fb37200c7d0e8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 28 May 2017 11:46:51 +0200 Subject: [PATCH] Update arc eager for SBD changes --- spacy/syntax/arc_eager.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 0a1422088..7531b2180 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -294,9 +294,7 @@ cdef int _get_root(int word, const GoldParseC* gold) nogil: cdef void* _init_state(Pool mem, int length, void* tokens) except NULL: cdef StateClass st = StateClass.init(tokens, length) - # Ensure sent_start is set to 0 throughout for i in range(st.c.length): - st.c._sent[i].sent_start = False st.c._sent[i].l_edge = i st.c._sent[i].r_edge = i st.fast_forward() @@ -417,9 +415,7 @@ cdef class ArcEager(TransitionSystem): return t cdef int initialize_state(self, StateC* st) nogil: - # Ensure sent_start is set to 0 throughout for i in range(st.length): - st._sent[i].sent_start = False st._sent[i].l_edge = i st._sent[i].r_edge = i st.fast_forward()