Commit 53676ecb authored by Arnab Ghoshal's avatar Arnab Ghoshal
Browse files

removing matthew's changes to nbest-to-ctm.cc in sandbox/idlak and putting it in trunk


git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3095 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent a216937e
......@@ -47,7 +47,10 @@ int main(int argc, char *argv[]) {
ParseOptions po(usage);
BaseFloat frame_shift = 0.01;
int32 precision = 2;
po.Register("frame-shift", &frame_shift, "Time in seconds between frames.\n");
po.Register("precision", &precision,
"Number of decimal places for start duration times\n");
po.Read(argc, argv);
......@@ -66,7 +69,7 @@ int main(int argc, char *argv[]) {
Output ko(ctm_wxfilename, false); // false == non-binary write mode.
ko.Stream() << std::fixed; // Set to "fixed" floating point model, where precision() specifies
// the #digits after the decimal point.
ko.Stream().precision(2);
ko.Stream().precision(precision);
for (; !clat_reader.Done(); clat_reader.Next()) {
std::string key = clat_reader.Key();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment