Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 27 of file ivector-extractor-init.cc.
References ParseOptions::GetArg(), IvectorExtractor::IvectorDim(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), IvectorExtractorOptions::Register(), and kaldi::WriteKaldiObject().
29 using namespace kaldi;
33 "Initialize ivector-extractor\n" 34 "Usage: ivector-extractor-init [options] <fgmm-in> <ivector-extractor-out>\n" 36 " ivector-extractor-init 4.fgmm 0.ie\n";
41 po.Register(
"binary", &binary,
"Write output in binary mode");
46 if (po.NumArgs() != 2) {
52 std::string fgmm_rxfilename = po.GetArg(1),
53 ivector_extractor_wxfilename = po.GetArg(2);
62 KALDI_LOG <<
"Initialized iVector extractor with iVector dimension " 63 << extractor.IvectorDim() <<
" and wrote it to " 64 << ivector_extractor_wxfilename;
66 }
catch(
const std::exception &e) {
67 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition for Gaussian Mixture Model with full covariances.
void ReadKaldiObject(const std::string &filename, Matrix< float > *m)
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void WriteKaldiObject(const C &c, const std::string &filename, bool binary)