Skip to content
Snippets Groups Projects
Commit ba77d976 authored by Jan "yenda" Trmal's avatar Jan "yenda" Trmal Committed by Daniel Povey
Browse files

[src] fix kws pipeline after upgrading to openfst-1.6 (#1471)

parent d5a9d5c9
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,10 @@ int main(int argc, char *argv[]) {
} else {
if (res_key != "") {
VectorFst<StdArc> out_fst;
fst::Minimize(&res_fst);
fst::RmEpsilon(&res_fst);
fst_writer.Write(res_key, res_fst);
fst::Determinize(res_fst, &out_fst);
fst::Minimize(&out_fst);
fst::RmEpsilon(&out_fst);
fst_writer.Write(res_key, out_fst);
n_out_done++;
}
res_fst = fst;
......@@ -82,9 +83,10 @@ int main(int argc, char *argv[]) {
}
if (res_key != "") {
VectorFst<StdArc> out_fst;
fst::Minimize(&res_fst);
fst::RmEpsilon(&res_fst);
fst_writer.Write(res_key, res_fst);
fst::Determinize(res_fst, &out_fst);
fst::Minimize(&out_fst);
fst::RmEpsilon(&out_fst);
fst_writer.Write(res_key, out_fst);
n_out_done++;
}
......
......@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
<< " (should affect speed of search but not results)";
global_index = ifst;
}
Minimize(&global_index);
Minimize(&global_index, static_cast<KwsLexicographicFst*>(NULL), kDelta, true);
Decode(&global_index, encoder);
} else {
KALDI_LOG << "Skipping index optimization...";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment