summaryrefslogtreecommitdiff
path: root/decoder/apply_models.cc
diff options
context:
space:
mode:
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);