From 7b125f5a869ccf75bd2c56bc56e7ba0274e8cbdf Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 23 Jun 2015 16:31:01 +0200 Subject: [PATCH] * Fixes to edge features --- 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 f5b2921ee..29e62cb4e 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -370,6 +370,8 @@ cdef class ArcEager(TransitionSystem): # 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() cdef int finalize_state(self, StateClass st) except -1: