Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 28 of file copy-tree.cc.
References ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), and kaldi::WriteKaldiObject().
29 using namespace kaldi;
31 using namespace kaldi;
35 "Copy decision tree (possibly changing binary/text format)\n" 36 "Usage: copy-tree [--binary=false] <tree-in> <tree-out>\n";
40 po.Register(
"binary", &binary,
"Write output in binary mode");
44 if (po.NumArgs() != 2) {
49 std::string tree_in_filename = po.GetArg(1),
50 tree_out_filename = po.GetArg(2);
56 }
catch(
const std::exception &e) {
57 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)