mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 09:14:32 +03:00
Avoid relying on final gold check in beam search
This commit is contained in:
parent
fc4dd49b77
commit
8cfe326f87
|
@ -106,8 +106,6 @@ cdef class ParserBeam(object):
|
|||
try:
|
||||
if self.moves.is_gold_parse(state, self.golds[i]):
|
||||
beam._states[j].loss = 0.0
|
||||
elif beam._states[j].loss == 0.0:
|
||||
beam._states[j].loss = 1.0
|
||||
except NotImplementedError:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user