diff options
| author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-07 08:35:19 +0000 | 
|---|---|---|
| committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-07 08:35:19 +0000 | 
| commit | 7ba6dfa8cc30eab0e5317c9ec4c7bee7ce5e507d (patch) | |
| tree | 294201cb4b609fca8053ea0e248b34bce39f73da /decoder/apply_models.cc | |
| parent | a4ed52197aa329a0d21b2ca2c258196418c5bcc8 (diff) | |
cdec -A "LanguageModelFsa lm.gz" works
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@490 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/apply_models.cc')
| -rw-r--r-- | decoder/apply_models.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc index 700296da..635f1a9c 100644 --- a/decoder/apply_models.cc +++ b/decoder/apply_models.cc @@ -405,10 +405,10 @@ void ApplyModelSet(const Hypergraph& in,                     const IntersectionConfiguration& config,                     Hypergraph* out) {    //force exhaustive if there's no state req. for model -  if (models.stateless() || config.algorithm == 0) { +  if (models.stateless() || config.algorithm == IntersectionConfiguration::FULL) {      NoPruningRescorer ma(models, smeta, in, out); // avoid overhead of best-first when no state      ma.Apply(); -  } else if (config.algorithm == 1) { +  } else if (config.algorithm == IntersectionConfiguration::CUBE) {      int pl = config.pop_limit;      const int max_pl_for_large=50;      if (pl > max_pl_for_large && in.nodes_.size() > 80000) { | 
