Skip to content

Commit

Permalink
Fix bug in word-align-lattice.cc, RE partial-words.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@710 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
  • Loading branch information
danpovey committed Jan 31, 2012
1 parent 337c616 commit 2aa632b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lat/word-align-lattice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2aa632b

Please sign in to comment.