Cambridge SMT System
ucam::lmbr::ApplyPosteriors Class Reference

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...
 

Detailed Description

Functor that applies posteriors to any hypothesis space. Initializes with previously calculated posteriors.

Definition at line 80 of file task.lmbr.applyposteriors.hpp.

Constructor & Destructor Documentation

ucam::lmbr::ApplyPosteriors::ApplyPosteriors ( std::vector< NGramList > &  ng,
NGramToPosteriorsMapper pst,
Theta theta,
unsigned  minorder = 1,
unsigned  maxorder = 4 
)
inline

Constructor: initializes functor with theta, min/max order, the ngrams and the posteriors.

Definition at line 103 of file task.lmbr.applyposteriors.hpp.

Member Function Documentation

fst::VectorFst<fst::StdArc>* ucam::lmbr::ApplyPosteriors::operator() ( fst::VectorFst< fst::StdArc > const &  fsthyp)
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.

Here is the call graph for this function:


The documentation for this class was generated from the following file: