KwsProductFstToKwsLexicographicFstMapper Class Reference

#include <kws-functions.h>

Public Types

typedef KwsProductArc FromArc
 
typedef KwsProductWeight FromWeight
 
typedef KwsLexicographicArc ToArc
 
typedef KwsLexicographicWeight ToWeight
 

Public Member Functions

 KwsProductFstToKwsLexicographicFstMapper ()
 
ToArc operator() (const FromArc &arc) const
 
fst::MapFinalAction FinalAction () const
 
fst::MapSymbolsAction InputSymbolsAction () const
 
fst::MapSymbolsAction OutputSymbolsAction () const
 
uint64 Properties (uint64 props) const
 

Detailed Description

Definition at line 117 of file kws-functions.h.

Member Typedef Documentation

◆ FromArc

Definition at line 119 of file kws-functions.h.

◆ FromWeight

Definition at line 120 of file kws-functions.h.

◆ ToArc

Definition at line 121 of file kws-functions.h.

◆ ToWeight

Definition at line 122 of file kws-functions.h.

Constructor & Destructor Documentation

◆ KwsProductFstToKwsLexicographicFstMapper()

Definition at line 124 of file kws-functions.h.

124 {}

Member Function Documentation

◆ FinalAction()

fst::MapFinalAction FinalAction ( ) const
inline

Definition at line 137 of file kws-functions.h.

137 { return fst::MAP_NO_SUPERFINAL; }

◆ InputSymbolsAction()

fst::MapSymbolsAction InputSymbolsAction ( ) const
inline

Definition at line 139 of file kws-functions.h.

139 { return fst::MAP_COPY_SYMBOLS; }

◆ operator()()

ToArc operator() ( const FromArc arc) const
inline

Definition at line 126 of file kws-functions.h.

126  {
127  return ToArc(arc.ilabel,
128  arc.olabel,
129  (arc.weight == FromWeight::Zero() ?
130  ToWeight::Zero() :
131  ToWeight(arc.weight.Value1().Value(),
132  StdLStdWeight(arc.weight.Value2().Value1().Value(),
133  arc.weight.Value2().Value2().Value()))),
134  arc.nextstate);
135  }
fst::LexicographicWeight< TropicalWeight, TropicalWeight > StdLStdWeight
Definition: kaldi-kws.h:34

◆ OutputSymbolsAction()

fst::MapSymbolsAction OutputSymbolsAction ( ) const
inline

Definition at line 141 of file kws-functions.h.

141 { return fst::MAP_COPY_SYMBOLS;}

◆ Properties()

uint64 Properties ( uint64  props) const
inline

Definition at line 143 of file kws-functions.h.

143 { return props; }

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