From ea90d136e81e71e130a8fd57a27b35b265198e0c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 27 Feb 2015 03:56:10 -0500 Subject: [PATCH] * Fix bug in labelled parsing, that caused an 8% drop in labelled accuracy. --- 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 8a6ac4c88..99907e27b 100644 --- a/spacy/syntax/arc_eager.pyx +++ b/spacy/syntax/arc_eager.pyx @@ -169,7 +169,7 @@ cdef class TransitionSystem: if t.move == SHIFT: # Set the dep label, in case we need it after we reduce if NON_MONOTONIC: - get_s0(s).dep = t.label + s.sent[s.i].dep = t.label push_stack(s) elif t.move == LEFT: add_dep(s, s.i, s.stack[0], t.label)