21 #ifndef KALDI_LAT_CONFIDENCE_H_ 22 #define KALDI_LAT_CONFIDENCE_H_ 59 std::vector<int32> *best_sentence,
60 std::vector<int32> *second_best_sentence);
68 std::vector<int32> *best_sentence,
69 std::vector<int32> *second_best_sentence);
77 #endif // KALDI_LAT_CONFIDENCE_H_
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
BaseFloat SentenceLevelConfidence(const CompactLattice &clat, int32 *num_paths, std::vector< int32 > *best_sentence, std::vector< int32 > *second_best_sentence)
Caution: this function is not the only way to get confidences in Kaldi.
fst::VectorFst< LatticeArc > Lattice
fst::VectorFst< CompactLatticeArc > CompactLattice