diff options
author | Guest_account Guest_account prguest11 <prguest11@taipan.cs> | 2011-09-15 12:52:59 +0100 |
---|---|---|
committer | Guest_account Guest_account prguest11 <prguest11@taipan.cs> | 2011-09-15 12:52:59 +0100 |
commit | 33a891dbaf7c77e822f4692c9ac4056f5b29e88c (patch) | |
tree | 299333ab54b6bbf7d164aa659754e7187876ba9b /decoder/apply_models.cc | |
parent | 9acb1f98b698f9fd0c09f6b7c122011651dcc435 (diff) |
script to filter reachable sentences, weight cleanup
Diffstat (limited to 'decoder/apply_models.cc')
-rw-r--r-- | decoder/apply_models.cc | 3 |
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(); |