mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Fix root label for orig_arc_eager
This commit is contained in:
parent
21930ede15
commit
8156a01bca
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user