Cambridge SMT System
ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc > Class Template Reference

Creates lattices using tropical tuple weight semiring – each arc containing separate feature weight contributions. Note that the semiring is tropical under dot product of all these features with its scales. More...

#include <task.sparseweightvectorlattices.hpp>

Inheritance diagram for ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc >:
Collaboration diagram for ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc >:

Public Member Functions

 SparseWeightVectorLatticesTask (const ucam::util::RegistryPO &rg, const std::string &alilatskey=HifstConstants::kSparseweightvectorlatticeLoadalilats, const std::string &ruleflowerlatticekey=HifstConstants::kRuleflowerlatticeStore, const std::string &sparseweightvectorlatticekey=HifstConstants::kSparseweightvectorlatticeStore)
 Constructor with registry object and keys to access/write lattices in data object. More...
 
bool run (Data &d)
 Implements virtual method from ucam::util::TaskInterface. More...
 
 ~SparseWeightVectorLatticesTask ()
 
- 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::hifst::SparseWeightVectorLatticesTask< Data, Arc >

Creates lattices using tropical tuple weight semiring – each arc containing separate feature weight contributions. Note that the semiring is tropical under dot product of all these features with its scales.

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

Constructor & Destructor Documentation

template<class Data , class Arc >
ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc >::SparseWeightVectorLatticesTask ( const ucam::util::RegistryPO rg,
const std::string &  alilatskey = HifstConstants::kSparseweightvectorlatticeLoadalilats,
const std::string &  ruleflowerlatticekey = HifstConstants::kRuleflowerlatticeStore,
const std::string &  sparseweightvectorlatticekey = HifstConstants::kSparseweightvectorlatticeStore 
)
inline

Constructor with registry object and keys to access/write lattices in data object.

Definition at line 57 of file task.sparseweightvectorlattices.hpp.

Here is the call graph for this function:

template<class Data , class Arc >
ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc >::~SparseWeightVectorLatticesTask ( )
inline

Definition at line 120 of file task.sparseweightvectorlattices.hpp.

Here is the call graph for this function:

Member Function Documentation

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

Implements virtual method from ucam::util::TaskInterface.

Remarks
Takes an alignment lattice, maps to tuplearc32 and composes it with the grammar flower lattice. After projecting on the words (thus deleting rules), we have a word lattice containing independent feature contributions to weight in each arc.
Parameters
dData object

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

Definition at line 85 of file task.sparseweightvectorlattices.hpp.


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