Cambridge SMT System
fst::RelabelUtil< Arc > Class Template Reference

Utility functor for relabeling one or more lattices. Note that you can chain commands. See Unit test in fstutils.gtest.cpp for an example. More...

#include <fstutils.hpp>

Public Member Functions

 RelabelUtil ()
 
RelabelUtiladdIPL (typename Arc::Label labelfind, typename Arc::Label labelreplace)
 
RelabelUtiladdOPL (typename Arc::Label labelfind, typename Arc::Label labelreplace)
 
RelabelUtiloperator() (fst::VectorFst< Arc > *hypfst)
 
fst::VectorFst< Arc > & operator() (fst::VectorFst< Arc > &hypfst)
 

Detailed Description

template<class Arc>
class fst::RelabelUtil< Arc >

Utility functor for relabeling one or more lattices. Note that you can chain commands. See Unit test in fstutils.gtest.cpp for an example.

Definition at line 503 of file fstutils.hpp.

Constructor & Destructor Documentation

template<class Arc>
fst::RelabelUtil< Arc >::RelabelUtil ( )
inline

Definition at line 509 of file fstutils.hpp.

Member Function Documentation

template<class Arc>
RelabelUtil& fst::RelabelUtil< Arc >::addIPL ( typename Arc::Label  labelfind,
typename Arc::Label  labelreplace 
)
inline

Definition at line 511 of file fstutils.hpp.

Here is the caller graph for this function:

template<class Arc>
RelabelUtil& fst::RelabelUtil< Arc >::addOPL ( typename Arc::Label  labelfind,
typename Arc::Label  labelreplace 
)
inline

Definition at line 517 of file fstutils.hpp.

template<class Arc>
RelabelUtil& fst::RelabelUtil< Arc >::operator() ( fst::VectorFst< Arc > *  hypfst)
inline

Definition at line 523 of file fstutils.hpp.

template<class Arc>
fst::VectorFst<Arc>& fst::RelabelUtil< Arc >::operator() ( fst::VectorFst< Arc > &  hypfst)
inline

Definition at line 527 of file fstutils.hpp.


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