summaryrefslogtreecommitdiff
path: root/decoder/apply_models.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-09-17 01:09:01 +0100
committerChris Dyer <cdyer@cs.cmu.edu>2011-09-17 01:09:01 +0100
commitb01f2499efa155a227f13e34f1aed9f54c39ab91 (patch)
treec0092318c86befe3039c7c6a59bd4cbf217b5202 /decoder/apply_models.cc
parenta28c48d07df4e426a875f5381c80ebf4fbbd1de2 (diff)
parent08f1814923005f702300d661c4d67f4635fc901c (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'decoder/apply_models.cc')
-rw-r--r--decoder/apply_models.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc
index 26cdb881..40fd27e4 100644
--- a/decoder/apply_models.cc
+++ b/decoder/apply_models.cc
@@ -276,8 +276,7 @@ public:
make_heap(cand.begin(), cand.end(), HeapCandCompare());
State2Node state2node; // "buf" in Figure 2
int pops = 0;
- int pop_limit_eff=max(1,int(v.promise*pop_limit_));
- while(!cand.empty() && pops < pop_limit_eff) {
+ while(!cand.empty() && pops < pop_limit_) {
pop_heap(cand.begin(), cand.end(), HeapCandCompare());
Candidate* item = cand.back();
cand.pop_back();