Cambridge SMT System
ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT > Class Template Reference

Core of Hifst. Implements the lattice-building procedure for a cyk-parsed sentence. More...

#include <task.hifst.hpp>

Inheritance diagram for ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >:
Collaboration diagram for ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >:

Public Member Functions

 HiFSTTask (const ucam::util::RegistryPO &rg, const std::string &outputkey=HifstConstants::kHifstLatticeStore, const std::string &locallmkey=HifstConstants::kHifstLocalpruneLmLoad, const std::string &fullreferencelatticekey=HifstConstants::kReferencefilterNosubstringStore, const std::string &lmkey=HifstConstants::kLmLoad)
 Constructor with registry object and several keys to access data object and registry. More...
 
bool run (Data &d)
 Runs the lattice building procedure. 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::LexStdArc, class OptimizeT = OptimizeMachine<Arc>, class CYKdataT = CYKdata, class MultiUnionT = fst::MultiUnionReplace<Arc>, class ExpandedNumStatesRTNT = ExpandedNumStatesRTN<Arc>, class ReplaceFstByArcT = ManualReplaceFstByArc<Arc>, class RTNT = RTN<Arc>>
class ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >

Core of Hifst. Implements the lattice-building procedure for a cyk-parsed sentence.

Definition at line 50 of file task.hifst.hpp.

Constructor & Destructor Documentation

template<class Data, class Arc = fst::LexStdArc, class OptimizeT = OptimizeMachine<Arc>, class CYKdataT = CYKdata, class MultiUnionT = fst::MultiUnionReplace<Arc>, class ExpandedNumStatesRTNT = ExpandedNumStatesRTN<Arc>, class ReplaceFstByArcT = ManualReplaceFstByArc<Arc>, class RTNT = RTN<Arc>>
ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >::HiFSTTask ( const ucam::util::RegistryPO rg,
const std::string &  outputkey = HifstConstants::kHifstLatticeStore,
const std::string &  locallmkey = HifstConstants::kHifstLocalpruneLmLoad,
const std::string &  fullreferencelatticekey = HifstConstants::kReferencefilterNosubstringStore,
const std::string &  lmkey = HifstConstants::kLmLoad 
)
inline

Constructor with registry object and several keys to access data object and registry.

Definition at line 152 of file task.hifst.hpp.

Here is the call graph for this function:

Member Function Documentation

template<class Data, class Arc = fst::LexStdArc, class OptimizeT = OptimizeMachine<Arc>, class CYKdataT = CYKdata, class MultiUnionT = fst::MultiUnionReplace<Arc>, class ExpandedNumStatesRTNT = ExpandedNumStatesRTN<Arc>, class ReplaceFstByArcT = ManualReplaceFstByArc<Arc>, class RTNT = RTN<Arc>>
bool ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >::run ( Data &  d)
inlinevirtual

Runs the lattice building procedure.

Parameters
dContains the data structure with all the necessary elements (i.e. cykdata) and in which will be store a pointer to the output lattice.

Keep calm, return empty lattice and carry on

If not yet, initialize now functor with local conditions.

Define hieroindex

Optimizations over the rtn – they are generally worth doing...

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

Definition at line 224 of file task.hifst.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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