21 #ifndef KALDI_HMM_HMM_TEST_UTILS_H_ 22 #define KALDI_HMM_HMM_TEST_UTILS_H_ 51 const std::vector<int32> &num_pdf_classes);
66 std::vector<std::pair<int32, int32> > *path);
72 const TransitionModel &trans_model,
74 const std::vector<int32> &phone_sequence,
75 std::vector<int32> *alignment);
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
HmmTopology GetDefaultTopology(const std::vector< int32 > &phones_in)
This function returns a HmmTopology object giving a normal 3-state topology, covering all phones in t...
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.
HmmTopology GenRandTopology(const std::vector< int32 > &phones_in, const std::vector< int32 > &num_pdf_classes)
This method of generating an arbitrary HmmTopology object allows you to specify the number of pdf-cla...
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) correspondi...
TransitionModel * GenRandTransitionModel(ContextDependency **ctx_dep_out)