Cambridge SMT System
fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT > Class Template Reference

templated Mapper that modifies weights when copying from one FST to another, passing through the other values of the arc. This mapper is to be combined with any functor that accepts FromArc::Weight as a unique parameter for operator () and returns ToArc::Weight. The functor itself implements the mapping details. More...

#include <fstutils.mapper.hpp>

Public Member Functions

 GenericWeightMapper (const WeightMakerFunctorT &mw)
 
ToArc operator() (const FromArc &arc) const
 
MapSymbolsAction InputSymbolsAction () const
 
MapSymbolsAction OutputSymbolsAction () const
 
MapFinalAction FinalAction () const
 
uint Properties (uint props) const
 

Detailed Description

template<class FromArc, class ToArc, class WeightMakerFunctorT>
class fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >

templated Mapper that modifies weights when copying from one FST to another, passing through the other values of the arc. This mapper is to be combined with any functor that accepts FromArc::Weight as a unique parameter for operator () and returns ToArc::Weight. The functor itself implements the mapping details.

Definition at line 69 of file fstutils.mapper.hpp.

Constructor & Destructor Documentation

template<class FromArc , class ToArc , class WeightMakerFunctorT >
fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::GenericWeightMapper ( const WeightMakerFunctorT &  mw)
inlineexplicit

Definition at line 71 of file fstutils.mapper.hpp.

Member Function Documentation

template<class FromArc , class ToArc , class WeightMakerFunctorT >
MapFinalAction fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::FinalAction ( ) const
inline

Definition at line 87 of file fstutils.mapper.hpp.

template<class FromArc , class ToArc , class WeightMakerFunctorT >
MapSymbolsAction fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::InputSymbolsAction ( ) const
inline

Definition at line 81 of file fstutils.mapper.hpp.

template<class FromArc , class ToArc , class WeightMakerFunctorT >
ToArc fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::operator() ( const FromArc &  arc) const
inline

Definition at line 73 of file fstutils.mapper.hpp.

template<class FromArc , class ToArc , class WeightMakerFunctorT >
MapSymbolsAction fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::OutputSymbolsAction ( ) const
inline

Definition at line 84 of file fstutils.mapper.hpp.

template<class FromArc , class ToArc , class WeightMakerFunctorT >
uint fst::GenericWeightMapper< FromArc, ToArc, WeightMakerFunctorT >::Properties ( uint  props) const
inline

Definition at line 90 of file fstutils.mapper.hpp.


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