Cambridge SMT System
ucam::hifst::ReplaceFstByArc< Arc > Class Template Reference

Creates FST replacement or not depending on conditions. More...

#include <task.hifst.replacefstbyarc.hpp>

Public Member Functions

 ReplaceFstByArc (bool alignmode, std::size_t min_numstates=2)
 
fst::VectorFst< Arc > * operator() (fst::VectorFst< Arc > const &fst, Label const &hieroindex) const
 Determines whether an FST is replaceable If so (NS > minns), then it builds the FST replacement and returns it. Otherwise returns NULL. More...
 

Detailed Description

template<class Arc = fst::LexStdArc>
class ucam::hifst::ReplaceFstByArc< Arc >

Creates FST replacement or not depending on conditions.

Remarks
The criterion in this case is simply the number of states. If It is higher than a threshold, then it is replaceable and it will generate the FST replacement (two states binded by pointer arc )

Definition at line 54 of file task.hifst.replacefstbyarc.hpp.

Constructor & Destructor Documentation

template<class Arc = fst::LexStdArc>
ucam::hifst::ReplaceFstByArc< Arc >::ReplaceFstByArc ( bool  alignmode,
std::size_t  min_numstates = 2 
)
inline

Definition at line 66 of file task.hifst.replacefstbyarc.hpp.

Member Function Documentation

template<class Arc = fst::LexStdArc>
fst::VectorFst<Arc>* ucam::hifst::ReplaceFstByArc< Arc >::operator() ( fst::VectorFst< Arc > const &  fst,
Label const &  hieroindex 
) const
inline

Determines whether an FST is replaceable If so (NS > minns), then it builds the FST replacement and returns it. Otherwise returns NULL.

Parameters
fstThe fst candidate for replacing with a pointer arc
hieroindexIndex for cc,x,y in the cyk grid cell

Definition at line 78 of file task.hifst.replacefstbyarc.hpp.


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