hmm-test-utils.h File Reference
Include dependency graph for hmm-test-utils.h:
This graph shows which files directly or indirectly include this file:

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:


TransitionModel * GenRandTransitionModel (ContextDependency **ctx_dep_out)
HmmTopology GetDefaultTopology (const std::vector< int32 > &phones)
 This function returns a HmmTopology object giving a normal 3-state topology, covering all phones in the list "phones". More...
HmmTopology GenRandTopology (const std::vector< int32 > &phones, const std::vector< int32 > &num_pdf_classes)
 This method of generating an arbitrary HmmTopology object allows you to specify the number of pdf-classes for each phone separately. More...
HmmTopology GenRandTopology ()
 This version of GenRandTopology() generates the phone list and number of pdf classes randomly. More...
void GeneratePathThroughHmm (const HmmTopology &topology, bool reorder, int32 phone, std::vector< std::pair< int32, int32 > > *path)
 This function generates a random path through the HMM for the given phone. More...
void GenerateRandomAlignment (const ContextDependencyInterface &ctx_dep, const TransitionModel &trans_model, bool reorder, const std::vector< int32 > &phone_sequence, std::vector< int32 > *alignment)
 For use in test code, this function generates an alignment (a sequence of transition-ids) corresponding to a given phone sequence. More...