Go to the source code of this file.
|
| kaldi |
| This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
|
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 57 of file concat-feats.cc.
References kaldi::ConcatFeats(), ParseOptions::GetArg(), rnnlm::i, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), kaldi::ReadKaldiObject(), ParseOptions::Register(), and kaldi::WriteKaldiObject().
59 using namespace kaldi;
63 "Concatenate feature files (assuming they have the same dimensions),\n" 64 "so the output file has the sum of the num-frames of the inputs.\n" 65 "Usage: concat-feats <in-rxfilename1> <in-rxfilename2> [<in-rxfilename3> ...] <out-wxfilename>\n" 66 " e.g. concat-feats mfcc/foo.ark:12343 mfcc/foo.ark:56789 -\n" 67 "See also: copy-feats, append-vector-to-feats, paste-feats\n";
72 po.Register(
"binary", &binary,
"If true, output files in binary " 73 "(only relevant for single-file operation, i.e. no tables)");
77 if (po.NumArgs() < 3) {
82 std::vector<Matrix<BaseFloat> > feats(po.NumArgs() - 1);
83 for (
int32 i = 1;
i < po.NumArgs();
i++)
87 std::string output_wxfilename = po.GetArg(po.NumArgs());
93 }
catch(
const std::exception &e) {
94 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void ConcatFeats(const std::vector< Matrix< BaseFloat > > &in, Matrix< BaseFloat > *out)
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)