Cambridge SMT System
ucam::lmbr Namespace Reference

Classes

class  ApplyPosteriors
 Functor that applies posteriors to any hypothesis space. Initializes with previously calculated posteriors. More...
 
class  ComputePosteriors
 
class  LmbrTask
 Lattice MBR task. More...
 
class  LmbrTaskData
 
struct  lmbrtunedata
 
class  MultiThreadedLmbrTask
 Not implemented yet! More...
 
class  SingleThreadedLmbrTask
 Full single-threaded Alignment lattices to Sparse lattices. More...
 
class  Theta
 Functor handling LMBR theta parameters. More...
 

Typedefs

typedef unordered_set< fst::WordIdWlist
 
typedef Wlist::iterator WlistIt
 
typedef double Posterior
 
typedef unordered_map< fst::NGram, fst::StdArc::StateId, ucam::util::hashfvecuint, ucam::util::hasheqvecuintNGramToStateMapper
 
typedef unordered_map< fst::NGram, std::vector< std::vector< Posterior > >, ucam::util::hashfvecuint, ucam::util::hasheqvecuintNGramToPosteriorsMapper
 

Functions

template<class Arc >
uint extractNGrams (fst::VectorFst< Arc > myfst, std::vector< fst::NGramList > &ngramlist, uint minorder=1, uint maxorder=4)
 Interfaces with extractNGrams and generates information in the right format for lmbr classes. More...
 

Variables

const unsigned kEpsLabel = 0
 

Typedef Documentation

Definition at line 35 of file data.lmbr.hpp.

Definition at line 31 of file data.lmbr.hpp.

typedef double ucam::lmbr::Posterior

Definition at line 27 of file data.lmbr.hpp.

typedef unordered_set<fst::WordId> ucam::lmbr::Wlist

Definition at line 25 of file data.lmbr.hpp.

typedef Wlist::iterator ucam::lmbr::WlistIt

Definition at line 26 of file data.lmbr.hpp.

Function Documentation

template<class Arc >
uint ucam::lmbr::extractNGrams ( fst::VectorFst< Arc >  myfst,
std::vector< fst::NGramList > &  ngramlist,
uint  minorder = 1,
uint  maxorder = 4 
)
inline

Interfaces with extractNGrams and generates information in the right format for lmbr classes.

Definition at line 30 of file task.lmbr.common.hpp.

Here is the caller graph for this function:

Variable Documentation

const unsigned ucam::lmbr::kEpsLabel = 0

Definition at line 23 of file data.lmbr.hpp.