mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 09:42:26 +03:00
Remove hack from beam
This commit is contained in:
parent
6aab2d8533
commit
0703f5986b
|
@ -209,10 +209,6 @@ def update_beam(TransitionSystem moves, int nr_feature, int max_steps,
|
||||||
# Track the "maximum violation", to use in the update.
|
# Track the "maximum violation", to use in the update.
|
||||||
for i, violn in enumerate(violns):
|
for i, violn in enumerate(violns):
|
||||||
violn.check_crf(pbeam[i], gbeam[i])
|
violn.check_crf(pbeam[i], gbeam[i])
|
||||||
# Use 'early update' if best gold is way out of contention.
|
|
||||||
if pbeam[i].loss > 0 and pbeam[i].min_score > (gbeam[i].score * 5.00):
|
|
||||||
pbeam.dones[i] = True
|
|
||||||
gbeam.dones[i] = True
|
|
||||||
histories = []
|
histories = []
|
||||||
losses = []
|
losses = []
|
||||||
for violn in violns:
|
for violn in violns:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user