提交 db42a954 编写于 作者: Y Yibing Liu

Disable output config in cpp end

上级 b88f95a2
...@@ -56,7 +56,6 @@ Decoder::Decoder(std::string trans_model_in_filename, ...@@ -56,7 +56,6 @@ Decoder::Decoder(std::string trans_model_in_filename,
po.Read(argc, argv); po.Read(argc, argv);
po.PrintConfig(std::cout);
std::ifstream is_logprior(logprior_in_filename); std::ifstream is_logprior(logprior_in_filename);
logprior.Read(is_logprior, false); logprior.Read(is_logprior, false);
...@@ -294,12 +293,13 @@ std::string Decoder::DecodeUtteranceLatticeFaster( ...@@ -294,12 +293,13 @@ std::string Decoder::DecodeUtteranceLatticeFaster(
// We'll write the lattice without acoustic scaling. // We'll write the lattice without acoustic scaling.
if (acoustic_scale != 0.0) if (acoustic_scale != 0.0)
fst::ScaleLattice(fst::AcousticLatticeScale(1.0 / acoustic_scale), &clat); fst::ScaleLattice(fst::AcousticLatticeScale(1.0 / acoustic_scale), &clat);
compact_lattice_writer.Write(utt, clat); // disable output lattice temporarily
// compact_lattice_writer.Write(utt, clat);
} else { } else {
// We'll write the lattice without acoustic scaling. // We'll write the lattice without acoustic scaling.
if (acoustic_scale != 0.0) if (acoustic_scale != 0.0)
fst::ScaleLattice(fst::AcousticLatticeScale(1.0 / acoustic_scale), &lat); fst::ScaleLattice(fst::AcousticLatticeScale(1.0 / acoustic_scale), &lat);
lattice_writer.Write(utt, lat); // lattice_writer.Write(utt, lat);
} }
return ret; return ret;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册