* Fix bug in labelled parsing, that caused an 8% drop in labelled accuracy.

This commit is contained in:
Matthew Honnibal 2015-02-27 03:56:10 -05:00
parent 5e27bd0c4c
commit ea90d136e8

View File

@ -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)