mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Upd parser
This commit is contained in:
parent
af0b3bc4d8
commit
70bcc1f48e
|
@ -604,6 +604,8 @@ cdef class Parser(TrainablePipe):
|
|||
for state, eg, history in zip(all_states, examples, oracle_histories):
|
||||
if not history:
|
||||
continue
|
||||
if not self.moves.has_gold(eg):
|
||||
continue
|
||||
gold = self.moves.init_gold(state, eg)
|
||||
if len(history) < max_length:
|
||||
states.append(state)
|
||||
|
|
Loading…
Reference in New Issue
Block a user