mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Fix bug in labelled parsing, that caused an 8% drop in labelled accuracy.
This commit is contained in:
parent
5e27bd0c4c
commit
ea90d136e8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user