mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Fix significant train/test skew error in history feats
This commit is contained in:
parent
555d8c8bff
commit
21d11936fe
|
@ -684,6 +684,7 @@ cdef class Parser:
|
|||
while state.B(0) < start and not state.is_final():
|
||||
action = self.moves.c[oracle_actions.pop(0)]
|
||||
action.do(state.c, action.label)
|
||||
state.c.push_hist(action.clas)
|
||||
n_moves += 1
|
||||
has_gold = self.moves.has_gold(gold, start=start,
|
||||
end=start+max_length)
|
||||
|
|
Loading…
Reference in New Issue
Block a user