mirror of https://github.com/explosion/spaCy.git
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():
|
while state.B(0) < start and not state.is_final():
|
||||||
action = self.moves.c[oracle_actions.pop(0)]
|
action = self.moves.c[oracle_actions.pop(0)]
|
||||||
action.do(state.c, action.label)
|
action.do(state.c, action.label)
|
||||||
|
state.c.push_hist(action.clas)
|
||||||
n_moves += 1
|
n_moves += 1
|
||||||
has_gold = self.moves.has_gold(gold, start=start,
|
has_gold = self.moves.has_gold(gold, start=start,
|
||||||
end=start+max_length)
|
end=start+max_length)
|
||||||
|
|
Loading…
Reference in New Issue