Cambridge SMT System
ucam::hifst::PreProTask< Data > Class Template Reference

Reads text file, performs tokenization and integer-mapping. More...

#include <task.prepro.hpp>

Inheritance diagram for ucam::hifst::PreProTask< Data >:
Collaboration diagram for ucam::hifst::PreProTask< Data >:

Public Member Functions

 PreProTask (const ucam::util::RegistryPO &rg, const std::string &wordmapkey=HifstConstants::kPreproWordmapLoad)
 Constructor. More...
 
 ~PreProTask ()
 
void setTokenize (bool tok)
 
bool run (Data &d)
 Reads an input sentence, tokenizes and integer-maps. 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::hifst::PreProTask< Data >

Reads text file, performs tokenization and integer-mapping.

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

Constructor & Destructor Documentation

template<class Data >
ucam::hifst::PreProTask< Data >::PreProTask ( const ucam::util::RegistryPO rg,
const std::string &  wordmapkey = HifstConstants::kPreproWordmapLoad 
)
inline

Constructor.

Parameters
rgpointer to RegistryPO object with all parsed parameters.
wordmapkeyregistry key to access wordmap file name

Definition at line 60 of file task.prepro.hpp.

template<class Data >
ucam::hifst::PreProTask< Data >::~PreProTask ( )
inline

Definition at line 71 of file task.prepro.hpp.

Member Function Documentation

template<class Data >
bool ucam::hifst::PreProTask< Data >::run ( Data &  d)
inlinevirtual

Reads an input sentence, tokenizes and integer-maps.

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

Definition at line 81 of file task.prepro.hpp.

Here is the call graph for this function:

template<class Data >
void ucam::hifst::PreProTask< Data >::setTokenize ( bool  tok)
inline

Definition at line 74 of file task.prepro.hpp.


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