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

Convenience class that inherits Taskinterface behaviour and optimizes an fst. More...

#include <task.optimizefst.hpp>

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

Public Member Functions

 OptimizeFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string stripEps)
 Constructor with RegistryPO object. More...
 
bool run (Data &d)
 Optimizes fst. this involves rmepsilon, determinizing and minimizing. The fst is accessed via data object using access key readfstkey_. If parentheses exist, the procedure is skipped, as a PDT is not determinizable. 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 ()
 

Static Public Member Functions

static OptimizeFstTaskinit (const ucam::util::RegistryPO &rg, const std::string &optimizefstkey, const std::string &fstkey, const std::string &stripepskey)
 

Detailed Description

template<class Data, class Arc = fst::StdArc>
class ucam::fsttools::OptimizeFstTask< Data, Arc >

Convenience class that inherits Taskinterface behaviour and optimizes an fst.

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

Constructor & Destructor Documentation

template<class Data , class Arc = fst::StdArc>
ucam::fsttools::OptimizeFstTask< Data, Arc >::OptimizeFstTask ( const ucam::util::RegistryPO rg,
const std::string &  fstkey,
const std::string  stripEps 
)
inline

Constructor with RegistryPO object.

Definition at line 45 of file task.optimizefst.hpp.

Here is the call graph for this function:

Member Function Documentation

template<class Data , class Arc = fst::StdArc>
static OptimizeFstTask* ucam::fsttools::OptimizeFstTask< Data, Arc >::init ( const ucam::util::RegistryPO rg,
const std::string &  optimizefstkey,
const std::string &  fstkey,
const std::string &  stripepskey 
)
inlinestatic

Definition at line 62 of file task.optimizefst.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Optimizes fst. this involves rmepsilon, determinizing and minimizing. The fst is accessed via data object using access key readfstkey_. If parentheses exist, the procedure is skipped, as a PDT is not determinizable.

Parameters
&ddata object
Returns
false (does not break in any case the chain of tasks)

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

Definition at line 79 of file task.optimizefst.hpp.


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