* Fix root label for orig_arc_eager

This commit is contained in:
Matthew Honnibal 2015-06-15 02:54:55 +02:00
parent 21930ede15
commit 8156a01bca

View File

@ -291,7 +291,7 @@ cdef class OrigArcEager(TransitionSystem):
cdef int finalize_state(self, StateClass st) except -1:
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:
if st._sent[i].head == 0:
st._sent[i].dep = root_label
cdef int set_valid(self, bint* output, StateClass stcls) except -1: