#include "base/kaldi-common.h"#include "util/common-utils.h"#include "gmm/am-diag-gmm.h"#include "hmm/transition-model.h"#include "gmm/mle-am-diag-gmm.h"#include "tree/build-tree-utils.h"#include "tree/context-dep.h"#include "tree/clusterable-classes.h"#include "util/text-utils.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: | |
Functions | |
| void | InitAmGmm (const BuildTreeStatsType &stats, const EventMap &to_pdf_map, AmDiagGmm *am_gmm, const TransitionModel &trans_model, BaseFloat var_floor) |
| InitAmGmm initializes the GMM with one Gaussian per state. More... | |
| void | GetOccs (const BuildTreeStatsType &stats, const EventMap &to_pdf_map, Vector< BaseFloat > *occs) |
| Get state occupation counts. More... | |
| void | InitAmGmmFromOld (const BuildTreeStatsType &stats, const EventMap &to_pdf_map, int32 N, int32 P, const std::string &old_tree_rxfilename, const std::string &old_model_rxfilename, BaseFloat var_floor, AmDiagGmm *am_gmm) |
| InitAmGmmFromOld initializes the GMM based on a previously trained model and tree, which must require no more phonetic context than the current tree. More... | |
| int | main (int argc, char *argv[]) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 220 of file gmm-init-model.cc.
References ContextDependency::CentralPosition(), ContextDependency::ContextWidth(), kaldi::DeleteBuildTreeStats(), ParseOptions::GetArg(), kaldi::GetOccs(), ParseOptions::GetOptArg(), kaldi::InitAmGmm(), kaldi::InitAmGmmFromOld(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadBuildTreeStats(), kaldi::ReadKaldiObject(), ParseOptions::Register(), Output::Stream(), Input::Stream(), ContextDependency::ToPdfMap(), AmDiagGmm::Write(), TransitionModel::Write(), and VectorBase< Real >::Write().