diff options
author | Chris Dyer <redpony@gmail.com> | 2014-10-09 00:43:57 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-10-09 00:43:57 -0400 |
commit | 1d87fbb31502ba27f0469e4a576e410ee43ad77a (patch) | |
tree | dbc8a9d743a77fb1a6be229af2c49f9fe4858c8a /decoder/fst_translator.cc | |
parent | 8601c7fa4ca6fe8093ec54cd2c150cf130484297 (diff) |
make tree terminals available to feature functions
Diffstat (limited to 'decoder/fst_translator.cc')
-rw-r--r-- | decoder/fst_translator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/fst_translator.cc b/decoder/fst_translator.cc index 4253b652..50e6adcc 100644 --- a/decoder/fst_translator.cc +++ b/decoder/fst_translator.cc @@ -95,6 +95,7 @@ bool FSTTranslator::TranslateImpl(const string& input, const vector<double>& weights, Hypergraph* minus_lm_forest) { smeta->SetSourceLength(0); // don't know how to compute this + smeta->input_type_ = cdec::kFOREST; return pimpl_->Translate(input, weights, minus_lm_forest); } |