Cambridge SMT System
ucam::lmbr::LmbrTask< Data > Class Template Reference

Lattice MBR task. More...

#include <task.lmbr.hpp>

Inheritance diagram for ucam::lmbr::LmbrTask< Data >:
Collaboration diagram for ucam::lmbr::LmbrTask< Data >:

Public Member Functions

 LmbrTask (const ucam::util::RegistryPO &rg, const std::string &evidencespacekey=HifstConstants::kLmbrLoadEvidencespace, const std::string &hypothesesspacekey=HifstConstants::kLmbrLoadHypothesesspace, const std::string &lmbroutputkey=HifstConstants::kLmbrWritedecoder, const std::string &writeonebestkey=HifstConstants::kLmbrWriteonebest, const std::string &alphakey=HifstConstants::kLmbrAlpha, const std::string &wpskey=HifstConstants::kLmbrWps, const std::string &minorder=HifstConstants::kLmbrMinorder, const std::string &maxorder=HifstConstants::kLmbrMaxorder, const std::string &unigramprecisionkey=HifstConstants::kLmbrP, const std::string &precisionratiokey=HifstConstants::kLmbrR, const std::string &numberunigramtokenskey=HifstConstants::kLmbrT, const std::string &preprunekey=HifstConstants::kLmbrPreprune, const std::string &lexstdarckey=HifstConstants::kLmbrLexstdarc)
 Constructor using multiple keys that can be arranged so to use different parameter names. More...
 
bool run (Data &d)
 Run method inherited from TaskInterface. More...
 
- Public Member Functions inherited from ucam::util::TaskInterface< Data >
 TaskInterface ()
 Constructor. More...
 
virtual ~TaskInterface ()
 
bool chainrun (Data &d)
 Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More...
 
bool operator() (Data &d)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Detailed Description

template<class Data>
class ucam::lmbr::LmbrTask< Data >

Lattice MBR task.

Definition at line 33 of file task.lmbr.hpp.

Constructor & Destructor Documentation

template<class Data >
ucam::lmbr::LmbrTask< Data >::LmbrTask ( const ucam::util::RegistryPO rg,
const std::string &  evidencespacekey = HifstConstants::kLmbrLoadEvidencespace,
const std::string &  hypothesesspacekey = HifstConstants::kLmbrLoadHypothesesspace,
const std::string &  lmbroutputkey = HifstConstants::kLmbrWritedecoder,
const std::string &  writeonebestkey = HifstConstants::kLmbrWriteonebest,
const std::string &  alphakey = HifstConstants::kLmbrAlpha,
const std::string &  wpskey = HifstConstants::kLmbrWps,
const std::string &  minorder = HifstConstants::kLmbrMinorder,
const std::string &  maxorder = HifstConstants::kLmbrMaxorder,
const std::string &  unigramprecisionkey = HifstConstants::kLmbrP,
const std::string &  precisionratiokey = HifstConstants::kLmbrR,
const std::string &  numberunigramtokenskey = HifstConstants::kLmbrT,
const std::string &  preprunekey = HifstConstants::kLmbrPreprune,
const std::string &  lexstdarckey = HifstConstants::kLmbrLexstdarc 
)
inline

Constructor using multiple keys that can be arranged so to use different parameter names.

Definition at line 69 of file task.lmbr.hpp.

Member Function Documentation

template<class Data >
bool ucam::lmbr::LmbrTask< Data >::run ( Data &  d)
inlinevirtual

Run method inherited from TaskInterface.

Implements ucam::util::TaskInterface< Data >.

Definition at line 119 of file task.lmbr.hpp.

Here is the call graph for this function:


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