word-align-lattice-lexicon-test.cc File Reference
Include dependency graph for word-align-lattice-lexicon-test.cc:

Go to the source code of this file.


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


void GenerateLexicon (const std::vector< int32 > &phones, bool allow_zero_words, bool allow_empty_word, bool allow_multiple_prons, std::vector< std::vector< int32 > > *lexicon)
static void PrintLexicon (const std::vector< std::vector< int32 > > &lexicon)
static void PrintWordsAndPhones (const std::vector< int32 > &words, const std::vector< int32 > &phones)
void GenerateWordAndPhoneSequence (std::vector< std::vector< int32 > > &lexicon, std::vector< int32 > *phone_seq, std::vector< int32 > *word_seq)
void GenerateCompactLatticeRandomly (const std::vector< int32 > &alignment, const std::vector< int32 > &words, CompactLattice *clat)
void TestWordAlignLatticeLexicon ()
int main ()

Function Documentation

◆ main()

int main ( )

Definition at line 232 of file word-align-lattice-lexicon-test.cc.

References rnnlm::i, and kaldi::TestWordAlignLatticeLexicon().

232  {
233  for (int32 i = 0; i < 3; i++)
235  std::cout << "Tests succeeded\n";
236 }
kaldi::int32 int32