#include "hmm/transition-model.h"
#include "fst/fstlib.h"
#include "util/common-utils.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 25 of file copy-transition-model.cc.
References ParseOptions::GetArg(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), and kaldi::WriteKaldiObject().
27 using namespace kaldi;
29 using fst::SymbolTable;
34 "Copies a transition model (this can be used to separate transition \n" 35 " models from the acoustic models they are written with.\n" 36 "Usage: copy-transition-model [options] <transition-model or model file> <transition-model-out>\n" 38 " copy-transition-model --binary=false 1.mdl 1.txt\n";
44 po.Register(
"binary", &binary,
"Write output in binary mode.");
48 if (po.NumArgs() != 2) {
53 std::string transition_model_rxfilename = po.GetArg(1),
54 transition_model_wxfilename = po.GetArg(2);
63 }
catch(
const std::exception &e) {
64 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)