diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-12 03:42:47 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-12 03:42:47 +0000 |
commit | f6b270b85bc23ae8310ec7848e1e574f33d63e38 (patch) | |
tree | 843c9a0a2d751cb0203f356e2ad855e61044498b /decoder/apply_models.cc | |
parent | 7220bd3685bb7cbd6a68749f55314892af5605c9 (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.cc | 5 |
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); |