Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 26 of file ivector-extractor-copy.cc.
References ParseOptions::GetArg(), ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), IvectorExtractorOptions::Register(), and kaldi::WriteKaldiObject().
28 using namespace kaldi;
32 "Copy the i-vector extractor to a text file\n" 33 "Usage: ivector-extractor-copy [options] <ivector-extractor-in> <ivector-extractor-out>\n" 35 " ivector-extractor-copy --binary=false 0.ie 0_txt.ie\n";
40 po.Register(
"binary", &binary,
"Write output in binary mode");
45 if (po.NumArgs() != 2) {
50 std::string ivector_extractor_rxfilename = po.GetArg(1),
51 ivector_extractor_wxfilename = po.GetArg(2);
59 }
catch(
const std::exception &e) {
60 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
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)