diff options
Diffstat (limited to 'decoder/apply_models.cc')
-rw-r--r-- | decoder/apply_models.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/apply_models.cc b/decoder/apply_models.cc index ba573984..0e83582f 100644 --- a/decoder/apply_models.cc +++ b/decoder/apply_models.cc @@ -409,7 +409,8 @@ void ApplyModelSet(const Hypergraph& in, const ModelSet& models, const IntersectionConfiguration& config, Hypergraph* out) { - if (models.stateless() && config.algorithm == 0) { + //force exhaustive if there's no state req. for model + if (models.stateless() || config.algorithm == 0) { NoPruningRescorer ma(models, smeta, in, out); // avoid overhead of best-first when no state ma.Apply(); } else if (config.algorithm == 1) { |