VectorFstToKwsLexicographicFstMapper Class Reference

Public Types

typedef fst::StdArc FromArc
 
typedef FromArc::Weight FromWeight
 
typedef KwsLexicographicArc ToArc
 
typedef KwsLexicographicWeight ToWeight
 

Public Member Functions

 VectorFstToKwsLexicographicFstMapper ()
 
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 50 of file kws-search.cc.

Member Typedef Documentation

◆ FromArc

Definition at line 52 of file kws-search.cc.

◆ FromWeight

typedef FromArc::Weight FromWeight

Definition at line 53 of file kws-search.cc.

◆ ToArc

Definition at line 54 of file kws-search.cc.

◆ ToWeight

Definition at line 55 of file kws-search.cc.

Constructor & Destructor Documentation

◆ VectorFstToKwsLexicographicFstMapper()

Definition at line 57 of file kws-search.cc.

Referenced by main().

57 {}

Member Function Documentation

◆ FinalAction()

fst::MapFinalAction FinalAction ( ) const
inline

Definition at line 69 of file kws-search.cc.

69  {
70  return fst::MAP_NO_SUPERFINAL;
71  }

◆ InputSymbolsAction()

fst::MapSymbolsAction InputSymbolsAction ( ) const
inline

Definition at line 73 of file kws-search.cc.

73  {
74  return fst::MAP_COPY_SYMBOLS;
75  }

◆ operator()()

ToArc operator() ( const FromArc arc) const
inline

Definition at line 59 of file kws-search.cc.

59  {
60  return ToArc(arc.ilabel,
61  arc.olabel,
62  (arc.weight == FromWeight::Zero() ?
63  ToWeight::Zero() :
64  ToWeight(arc.weight.Value(),
65  StdLStdWeight::One())),
66  arc.nextstate);
67  }

◆ OutputSymbolsAction()

fst::MapSymbolsAction OutputSymbolsAction ( ) const
inline

Definition at line 77 of file kws-search.cc.

77  {
78  return fst::MAP_COPY_SYMBOLS;
79  }

◆ Properties()

uint64 Properties ( uint64  props) const
inline

Definition at line 81 of file kws-search.cc.

81 { return props; }

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