* Assign 'ROOT' as label, not 'root'

This commit is contained in:
Matthew Honnibal 2015-06-23 15:08:36 +02:00
parent a7bf7b0626
commit 221e2e485f
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ cdef class ArcEager(TransitionSystem):
st.fast_forward() st.fast_forward()
cdef int finalize_state(self, StateClass st) except -1: 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): for i in range(st.length):
if st._sent[i].head == 0 and st._sent[i].dep == 0: if st._sent[i].head == 0 and st._sent[i].dep == 0:
st._sent[i].dep = root_label st._sent[i].dep = root_label