mirror of https://github.com/explosion/spaCy.git
* Assign 'ROOT' as label, not 'root'
This commit is contained in:
parent
a7bf7b0626
commit
221e2e485f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue