kaldi-lattice-test.cc File Reference
#include "lat/kaldi-lattice.h"
#include "fstext/rand-fst.h"
Include dependency graph for kaldi-lattice-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

CompactLatticeRandCompactLattice ()
 
LatticeRandLattice ()
 
void TestCompactLatticeTable (bool binary)
 
void TestCompactLatticeTableCross (bool binary)
 
void TestLatticeTable (bool binary)
 
void TestLatticeTableCross (bool binary)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 161 of file kaldi-lattice-test.cc.

References rnnlm::i, kaldi::TestCompactLatticeTable(), kaldi::TestCompactLatticeTableCross(), kaldi::TestLatticeTable(), and kaldi::TestLatticeTableCross().

161  {
162  using namespace kaldi;
163  for (int i = 0; i < 2; i++) {
164  bool binary = (i%2 == 0);
165  TestCompactLatticeTable(binary);
167  TestLatticeTable(binary);
168  TestLatticeTableCross(binary);
169  }
170  std::cout << "Test OK\n";
171 
172  unlink("tmpf");
173 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void TestLatticeTableCross(bool binary)
void TestCompactLatticeTableCross(bool binary)
void TestCompactLatticeTable(bool binary)
void TestLatticeTable(bool binary)