#include <iostream>#include <string>#include <sstream>#include "base/kaldi-error.h"#include "base/kaldi-math.h"#include "lm/arpa-lm-compiler.h"#include "util/kaldi-io.h"
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:  | |
Enumerations | |
| enum | { kEps = 0, kDisambig, kBos, kEos } | 
Functions | |
| static fst::StdVectorFst * | CreateGenFst (bool seps, const fst::SymbolTable *pst) | 
| ArpaLmCompiler * | Compile (bool seps, const std::string &infile) | 
| fst::StdArc::StateId | AddToChainFsa (fst::StdMutableFst *fst, fst::StdArc::StateId last_state, int64 symbol) | 
| void | AddSelfLoops (fst::StdMutableFst *fst) | 
| bool | CoverageTest (bool seps, const std::string &infile) | 
| bool | ScoringTest (bool seps, const std::string &infile, const std::string &sentence, float expected) | 
| bool | ThrowsExceptionTest (bool seps, const std::string &infile) | 
| bool | RunAllTests (bool seps) | 
| int | main (int argc, char *argv[]) | 
Variables | |
| static const int | kRandomSentences = 50 | 
| int main | ( | int | argc, | 
| char * | argv[] | ||
| ) | 
Definition at line 237 of file arpa-lm-compiler-test.cc.
References KALDI_LOG, KALDI_WARN, and RunAllTests().
Definition at line 219 of file arpa-lm-compiler-test.cc.
References kaldi::CoverageTest(), KALDI_WARN, kaldi::ScoringTest(), and kaldi::ThrowsExceptionTest().
Referenced by main().