Commit 2aa632b1 authored by Dan Povey's avatar Dan Povey
Browse files

Fix bug in word-align-lattice.cc, RE partial-words.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@710 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 337c616f
......@@ -280,8 +280,10 @@ class LatticeWordAligner {
syms_to_remove.push_back(info_.partial_word_label);
if (info_in_.silence_label == 0)
syms_to_remove.push_back(info_.silence_label);
if (!syms_to_remove.empty())
RemoveSomeInputSymbols(syms_to_remove, lat_out_);
if (!syms_to_remove.empty()) {
RemoveSomeInputSymbols(syms_to_remove, lat_out_);
Project(lat_out_, fst::PROJECT_INPUT);
}
}
bool AlignLattice() {
......
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