From 0703f5986bb2347f3332cdc3851246c1b19ca4ba Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 15 Mar 2019 00:48:39 +0100 Subject: [PATCH] Remove hack from beam --- spacy/syntax/_beam_utils.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spacy/syntax/_beam_utils.pyx b/spacy/syntax/_beam_utils.pyx index f06d54d9d..83137a4c4 100644 --- a/spacy/syntax/_beam_utils.pyx +++ b/spacy/syntax/_beam_utils.pyx @@ -209,10 +209,6 @@ def update_beam(TransitionSystem moves, int nr_feature, int max_steps, # Track the "maximum violation", to use in the update. for i, violn in enumerate(violns): 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 = [] losses = [] for violn in violns: