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

#include <task.lmbr.computeposteriors.hpp>

Public Member Functions

 ComputePosteriors (const std::vector< NGramList > &ng)
 Initialize from list of ngrams. More...
 
void setOrders (uint minorder, uint maxorder)
 Set order. More...
 
void operator() (const fst::VectorFst< fst::StdArc > *fstlat)
 Compute posteriors. More...
 
NGramToPosteriorsMappergetPosteriors ()
 Retrieve reference to posteriors. More...
 
void WritePosteriors (const std::string &filename)
 Write posteriors to file. More...
 
void WritePosteriors (ucam::util::oszfstream &ofs)
 Write posteriors to a szfstream. More...
 

Detailed Description

Definition at line 29 of file task.lmbr.computeposteriors.hpp.

Constructor & Destructor Documentation

ucam::lmbr::ComputePosteriors::ComputePosteriors ( const std::vector< NGramList > &  ng)
inline

Initialize from list of ngrams.

Definition at line 44 of file task.lmbr.computeposteriors.hpp.

Member Function Documentation

NGramToPosteriorsMapper& ucam::lmbr::ComputePosteriors::getPosteriors ( )
inline

Retrieve reference to posteriors.

Definition at line 61 of file task.lmbr.computeposteriors.hpp.

Here is the caller graph for this function:

void ucam::lmbr::ComputePosteriors::operator() ( const fst::VectorFst< fst::StdArc > *  fstlat)
inline

Compute posteriors.

Definition at line 55 of file task.lmbr.computeposteriors.hpp.

void ucam::lmbr::ComputePosteriors::setOrders ( uint  minorder,
uint  maxorder 
)
inline

Set order.

Definition at line 49 of file task.lmbr.computeposteriors.hpp.

void ucam::lmbr::ComputePosteriors::WritePosteriors ( const std::string &  filename)
inline

Write posteriors to file.

Definition at line 66 of file task.lmbr.computeposteriors.hpp.

void ucam::lmbr::ComputePosteriors::WritePosteriors ( ucam::util::oszfstream ofs)
inline

Write posteriors to a szfstream.

Definition at line 74 of file task.lmbr.computeposteriors.hpp.

Here is the call graph for this function:


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