diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 18:35:11 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-07-28 18:35:11 -0400 |
commit | 16d0e2a34df3e32e8992aeda3ad2de7a6e525f14 (patch) | |
tree | b7fb0f5b0de309a08ba1bde504ed9067e1aabaa3 /decoder/translator.h | |
parent | b81b2e85bdfd5e9dda98a6e448e6354ca0c6d26b (diff) |
slight improvement to the way NTs are handled in the FST-CFG composition algorithm, new rescoring mode
Diffstat (limited to 'decoder/translator.h')
-rw-r--r-- | decoder/translator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/decoder/translator.h b/decoder/translator.h index fc2bb760..c0800e84 100644 --- a/decoder/translator.h +++ b/decoder/translator.h @@ -85,4 +85,17 @@ class FSTTranslator : public Translator { boost::shared_ptr<FSTTranslatorImpl> pimpl_; }; +class RescoreTranslatorImpl; +class RescoreTranslator : public Translator { + public: + RescoreTranslator(const boost::program_options::variables_map& conf); + private: + bool TranslateImpl(const std::string& src, + SentenceMetadata* smeta, + const std::vector<double>& weights, + Hypergraph* minus_lm_forest); + private: + boost::shared_ptr<RescoreTranslatorImpl> pimpl_; +}; + #endif |