fstext-utils-test.cc File Reference
Include dependency graph for fstext-utils-test.cc:

Go to the source code of this file.

Classes

struct  TestFunctor< Arc >
 

Namespaces

 fst
 For an extended explanation of the framework of which grammar-fsts are a part, please see Support for grammars and graphs with on-the-fly parts. (i.e.
 

Functions

template<class Arc , class I >
void TestMakeLinearAcceptor ()
 
template<class Arc >
void TestDeterminizeStarInLog ()
 
template<class Arc >
void TestSafeDeterminizeWrapper ()
 
void TestPushInLog ()
 
template<class Arc >
void TestAcceptorMinimize ()
 
template<class Arc >
void TestMakeSymbolsSame ()
 
template<class Arc >
void TestMakeSymbolsSameClass ()
 
template<class Arc >
VectorFst< Arc > * MakeLoopFstCompare (const vector< const ExpandedFst< Arc > *> &fsts)
 
template<class Arc >
void TestMakeLoopFst ()
 
template<class Arc >
void TestEqualAlign ()
 
template<class Arc >
void Print (const Fst< Arc > &fst, std::string message)
 
template<class Arc >
void TestRemoveUselessArcs ()
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 417 of file fstext-utils-test.cc.

References rnnlm::i.

417  {
418  for (int i = 0; i < 5; i++) {
419  fst::TestMakeLinearAcceptor<fst::StdArc, int>(); // this also tests GetLinearSymbolSequence, GetInputSymbols and GetOutputSymbols.
420  fst::TestMakeLinearAcceptor<fst::StdArc, int32>();
421  fst::TestMakeLinearAcceptor<fst::StdArc, uint32>();
422  fst::TestSafeDeterminizeWrapper<fst::StdArc>();
423  fst::TestAcceptorMinimize<fst::StdArc>();
424  fst::TestMakeSymbolsSame<fst::StdArc>();
425  fst::TestMakeSymbolsSame<fst::LogArc>();
426  fst::TestMakeSymbolsSameClass<fst::StdArc>();
427  fst::TestMakeSymbolsSameClass<fst::LogArc>();
428  fst::TestMakeLoopFst<fst::StdArc>();
429  fst::TestMakeLoopFst<fst::LogArc>();
430  fst::TestEqualAlign<fst::StdArc>();
431  fst::TestEqualAlign<fst::LogArc>();
432  fst::TestRemoveUselessArcs<fst::StdArc>();
433  }
434 }