kws-functions.cc File Reference
#include <algorithm>
#include "lat/lattice-functions.h"
#include "kws/kws-functions.h"
#include "fstext/determinize-star.h"
#include "fstext/epsilon-property.h"
Include dependency graph for kws-functions.cc:

Go to the source code of this file.

Classes

class  CompactLatticeToKwsProductFstMapper
 

Namespaces

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

Functions

bool CompareInterval (const Interval &i1, const Interval &i2)
 
bool ClusterLattice (CompactLattice *clat, const std::vector< int32 > &state_times)
 
bool CreateFactorTransducer (const CompactLattice &clat, const std::vector< int32 > &state_times, int32 utterance_id, KwsProductFst *factor_transducer)
 
void RemoveLongSilences (int32 max_silence_frames, const std::vector< int32 > &state_times, KwsProductFst *factor_transducer)
 
template<class Arc >
static void DifferenceWrapper (const fst::VectorFst< Arc > &fst1, const fst::VectorFst< Arc > &fst2, fst::VectorFst< Arc > *difference)
 
void MaybeDoSanityCheck (const KwsLexicographicFst &index_transducer)
 
void MaybeDoSanityCheck (const KwsProductFst &product_transducer)