Cambridge SMT System
|
Functor that applies posteriors to any hypothesis space. Initializes with previously calculated posteriors. More...
#include <task.lmbr.applyposteriors.hpp>
Public Member Functions | |
ApplyPosteriors (std::vector< NGramList > &ng, NGramToPosteriorsMapper &pst, Theta &theta, unsigned minorder=1, unsigned maxorder=4) | |
Constructor: initializes functor with theta, min/max order, the ngrams and the posteriors. More... | |
fst::VectorFst< fst::StdArc > * | operator() (fst::VectorFst< fst::StdArc > const &fsthyp) |
Applies posteriors (Graeme's fast method, four compositions). Hypotheses space previously tuned with word penalty (theta_[0]). More... | |
Functor that applies posteriors to any hypothesis space. Initializes with previously calculated posteriors.
Definition at line 80 of file task.lmbr.applyposteriors.hpp.
|
inline |
Constructor: initializes functor with theta, min/max order, the ngrams and the posteriors.
Definition at line 103 of file task.lmbr.applyposteriors.hpp.
|
inline |
Applies posteriors (Graeme's fast method, four compositions). Hypotheses space previously tuned with word penalty (theta_[0]).
Definition at line 116 of file task.lmbr.applyposteriors.hpp.