Skip to content

Commit

Permalink
do ProcessNonemitting if final-probs are requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Hang Lyu committed Mar 29, 2019
1 parent 25907d8 commit 26b378a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/decoder/lattice-faster-decoder-combine-bucketqueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool LatticeFasterDecoderCombineTpl<FST, Token>::GetRawLattice(
KALDI_ERR << "You cannot call FinalizeDecoding() and then call "
<< "GetRawLattice() with use_final_probs == false";

if (!decoding_finalized_) {
if (!decoding_finalized_ && use_final_probs) {
// Process the non-emitting arcs for the unfinished last frame.
ProcessNonemitting();
}
Expand Down
2 changes: 1 addition & 1 deletion src/decoder/lattice-faster-decoder-combine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool LatticeFasterDecoderCombineTpl<FST, Token>::GetRawLattice(
KALDI_ERR << "You cannot call FinalizeDecoding() and then call "
<< "GetRawLattice() with use_final_probs == false";

if (!decoding_finalized_) {
if (!decoding_finalized_ && use_final_probs) {
// Process the non-emitting arcs for the unfinished last frame.
ProcessNonemitting();
}
Expand Down

0 comments on commit 26b378a

Please sign in to comment.