kaldi-table-test.cc File Reference
#include "base/io-funcs.h"
#include "util/kaldi-io.h"
#include "base/kaldi-math.h"
#include "util/kaldi-table.h"
#include "util/kaldi-holder.h"
#include "util/table-types.h"
Include dependency graph for kaldi-table-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

void UnitTestReadScriptFile ()
 
void UnitTestClassifyWspecifier ()
 
void UnitTestClassifyRspecifier ()
 
void UnitTestTableSequentialInt32 (bool binary)
 
void UnitTestTableSequentialBool (bool binary)
 
void UnitTestTableSequentialDouble (bool binary)
 
void UnitTestTableSequentialDoubleBoth (bool binary, bool read_scp)
 
void UnitTestTableSequentialInt32VectorBoth (bool binary, bool read_scp)
 
void UnitTestTableSequentialInt32PairVectorBoth (bool binary, bool read_scp)
 
void UnitTestTableSequentialInt32VectorVectorBoth (bool binary, bool read_scp)
 
void UnitTestTableSequentialInt32Script (bool binary)
 
void UnitTestTableSequentialDoubleMatrixBoth (bool binary, bool read_scp)
 
void UnitTestTableSequentialBaseFloatVectorBoth (bool binary, bool read_scp)
 
template<class T >
void RandomizeVector (std::vector< T > *v)
 
void UnitTestTableRandomBothDouble (bool binary, bool read_scp, bool sorted, bool called_sorted, bool once)
 
void UnitTestRangesMatrix (bool binary)
 
void UnitTestTableRandomBothDoubleMatrix (bool binary, bool read_scp, bool sorted, bool called_sorted, bool once)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 1051 of file kaldi-table-test.cc.

References rnnlm::d, rnnlm::i, rnnlm::j, kaldi::UnitTestClassifyRspecifier(), kaldi::UnitTestClassifyWspecifier(), kaldi::UnitTestRangesMatrix(), kaldi::UnitTestReadScriptFile(), kaldi::UnitTestTableRandomBothDouble(), kaldi::UnitTestTableRandomBothDoubleMatrix(), kaldi::UnitTestTableSequentialBaseFloatVectorBoth(), kaldi::UnitTestTableSequentialBool(), kaldi::UnitTestTableSequentialDouble(), kaldi::UnitTestTableSequentialDoubleBoth(), kaldi::UnitTestTableSequentialDoubleMatrixBoth(), kaldi::UnitTestTableSequentialInt32(), kaldi::UnitTestTableSequentialInt32PairVectorBoth(), kaldi::UnitTestTableSequentialInt32Script(), kaldi::UnitTestTableSequentialInt32VectorBoth(), and kaldi::UnitTestTableSequentialInt32VectorVectorBoth().

1051  {
1052  using namespace kaldi;
1056  for (int i = 0; i < 10; i++) {
1057  bool b = (i == 0);
1063  for (int j = 0; j < 2; j++) {
1064  bool c = (j == 0);
1071  for (int k = 0; k < 2; k++) {
1072  bool d = (k == 0);
1073  for (int l = 0; l < 2; l++) {
1074  bool e = (l == 0);
1075  for (int m = 0; m < 2; m++) {
1076  bool f = (m == 0);
1077  UnitTestTableRandomBothDouble(b, c, d, e, f);
1078  UnitTestTableRandomBothDoubleMatrix(b, c, d, e, f);
1079  }
1080  }
1081  }
1082  }
1083  }
1084  std::cout << "Test OK.\n";
1085  return 0;
1086 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void UnitTestTableSequentialInt32(bool binary)
void UnitTestTableRandomBothDouble(bool binary, bool read_scp, bool sorted, bool called_sorted, bool once)
void UnitTestTableSequentialInt32PairVectorBoth(bool binary, bool read_scp)
void UnitTestTableSequentialInt32VectorBoth(bool binary, bool read_scp)
void UnitTestTableSequentialDoubleMatrixBoth(bool binary, bool read_scp)
void UnitTestTableSequentialBaseFloatVectorBoth(bool binary, bool read_scp)
void UnitTestTableRandomBothDoubleMatrix(bool binary, bool read_scp, bool sorted, bool called_sorted, bool once)
void UnitTestTableSequentialBool(bool binary)
void UnitTestTableSequentialInt32VectorVectorBoth(bool binary, bool read_scp)
void UnitTestTableSequentialDouble(bool binary)
void UnitTestClassifyRspecifier()
void UnitTestTableSequentialInt32Script(bool binary)
void UnitTestTableSequentialDoubleBoth(bool binary, bool read_scp)
void UnitTestRangesMatrix(bool binary)
void UnitTestClassifyWspecifier()
void UnitTestReadScriptFile()