Cambridge SMT System
ucam::fsttools::DisambigTask< Data, Arc > Class Template Reference

Disambig Task tool. Given a search space, applies a unigram transduction model (generating alternatives) and an ngram model over alternatives. More...

#include <task.disambig.hpp>

Inheritance diagram for ucam::fsttools::DisambigTask< Data, Arc >:
Collaboration diagram for ucam::fsttools::DisambigTask< Data, Arc >:

Public Member Functions

 DisambigTask (const ucam::util::RegistryPO &rg, const std::string &inputkey=HifstConstants::kRecaserInput, const std::string &outputkey=HifstConstants::kRecaserOutput, const std::string &lmkey=HifstConstants::kRecaserLmLoad, const std::string &unimapkey=HifstConstants::kRecaserUnimapLoad, bool forceloading=false)
 Constructor with registry objects and several keys to access either ucam::util::RegistryPO program options or the data object itself. More...
 
bool run (Data &d)
 Method inherited from TaskInterface, reads input lattice from data object, disambiguates and then stores lattice in data object. More...
 
virtual ~DisambigTask ()
 
- 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 Arc>
class ucam::fsttools::DisambigTask< Data, Arc >

Disambig Task tool. Given a search space, applies a unigram transduction model (generating alternatives) and an ngram model over alternatives.

Definition at line 36 of file task.disambig.hpp.

Constructor & Destructor Documentation

template<class Data , class Arc >
ucam::fsttools::DisambigTask< Data, Arc >::DisambigTask ( const ucam::util::RegistryPO rg,
const std::string &  inputkey = HifstConstants::kRecaserInput,
const std::string &  outputkey = HifstConstants::kRecaserOutput,
const std::string &  lmkey = HifstConstants::kRecaserLmLoad,
const std::string &  unimapkey = HifstConstants::kRecaserUnimapLoad,
bool  forceloading = false 
)
inline

Constructor with registry objects and several keys to access either ucam::util::RegistryPO program options or the data object itself.

Definition at line 72 of file task.disambig.hpp.

Here is the call graph for this function:

template<class Data , class Arc >
virtual ucam::fsttools::DisambigTask< Data, Arc >::~DisambigTask ( )
inlinevirtual

Definition at line 124 of file task.disambig.hpp.

Here is the call graph for this function:

Member Function Documentation

template<class Data , class Arc >
bool ucam::fsttools::DisambigTask< Data, Arc >::run ( Data &  d)
inlinevirtual

Method inherited from TaskInterface, reads input lattice from data object, disambiguates and then stores lattice in data object.

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

Definition at line 111 of file task.disambig.hpp.

Here is the caller graph for this function:


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