summaryrefslogtreecommitdiff
path: root/decoder/apply_models.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-12 03:42:47 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-12 03:42:47 +0000
commit7b9c1f91e594c4b7783c72e4516d59d60a04dc91 (patch)
tree2f5ba51f612ff0c1e424e53d44a9c71474182a8f /decoder/apply_models.cc
parent11980f43455a85f31f2941f570f9a3a1ff925408 (diff)
DEBUG_PROMISE - looks ok
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@220 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/apply_models.cc')
-rw-r--r--decoder/apply_models.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc
index 4093f667..240bd12b 100644
--- a/decoder/apply_models.cc
+++ b/decoder/apply_models.cc
@@ -414,8 +414,9 @@ void ApplyModelSet(const Hypergraph& in,
ma.Apply();
} else if (config.algorithm == 1) {
int pl = config.pop_limit;
- if (pl > 100 && in.nodes_.size() > 80000) {
- pl = 30;
+ const int max_pl_for_large=50;
+ if (pl > max_pl_for_large && in.nodes_.size() > 80000) {
+ pl = max_pl_for_large;
cerr << " Note: reducing pop_limit to " << pl << " for very large forest\n";
}
CubePruningRescorer ma(models, smeta, in, pl, out);