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

Loads a unigram transduction model (aka unimap file) from a file with the format accepted by srilm disambig tool. More...

#include <task.loadunimap.hpp>

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

Public Member Functions

 LoadUnimapTask (const ucam::util::RegistryPO &rg, const std::string &unimapkey=HifstConstants::kRecaserUnimapLoad, const std::string &lmkey=HifstConstants::kRecaserLmLoad)
 Constructor. More...
 
bool run (Data &d)
 Loads unimap fst, and delivers pointer in data object. More...
 
virtual ~LoadUnimapTask ()
 Destructor. 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 Arc = fst::StdArc>
class ucam::fsttools::LoadUnimapTask< Data, Arc >

Loads a unigram transduction model (aka unimap file) from a file with the format accepted by srilm disambig tool.

Definition at line 34 of file task.loadunimap.hpp.

Constructor & Destructor Documentation

template<class Data , class Arc = fst::StdArc>
ucam::fsttools::LoadUnimapTask< Data, Arc >::LoadUnimapTask ( const ucam::util::RegistryPO rg,
const std::string &  unimapkey = HifstConstants::kRecaserUnimapLoad,
const std::string &  lmkey = HifstConstants::kRecaserLmLoad 
)
inline

Constructor.

Parameters
rgObject containing user params
unimapkeykey to deliver the unimap model in the data object

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

Here is the call graph for this function:

template<class Data , class Arc = fst::StdArc>
virtual ucam::fsttools::LoadUnimapTask< Data, Arc >::~LoadUnimapTask ( )
inlinevirtual

Destructor.

Definition at line 100 of file task.loadunimap.hpp.

Member Function Documentation

template<class Data , class Arc = fst::StdArc>
bool ucam::fsttools::LoadUnimapTask< Data, Arc >::run ( Data &  d)
inlinevirtual

Loads unimap fst, and delivers pointer in data object.

Parameters
d;Templated data object

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

Definition at line 91 of file task.loadunimap.hpp.


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