From 221e2e485f9a7e610a52570cc5c8c323ae8078bc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 23 Jun 2015 15:08:36 +0200 Subject: [PATCH] * Assign 'ROOT' as label, not 'root' --- spacy/syntax/arc_eager.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/arc_eager.pyx b/spacy/syntax/arc_eager.pyx index 6808e8689..f5b2921ee 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -373,7 +373,7 @@ cdef class ArcEager(TransitionSystem): st.fast_forward() cdef int finalize_state(self, StateClass st) except -1: - cdef int root_label = self.strings['root'] + cdef int root_label = self.strings['ROOT'] for i in range(st.length): if st._sent[i].head == 0 and st._sent[i].dep == 0: st._sent[i].dep = root_label