Skip to content

Commit 26b378a

Browse files
author
Hang Lyu
committed
do ProcessNonemitting if final-probs are requested
1 parent 25907d8 commit 26b378a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/decoder/lattice-faster-decoder-combine-bucketqueue.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool LatticeFasterDecoderCombineTpl<FST, Token>::GetRawLattice(
218218
KALDI_ERR << "You cannot call FinalizeDecoding() and then call "
219219
<< "GetRawLattice() with use_final_probs == false";
220220

221-
if (!decoding_finalized_) {
221+
if (!decoding_finalized_ && use_final_probs) {
222222
// Process the non-emitting arcs for the unfinished last frame.
223223
ProcessNonemitting();
224224
}

src/decoder/lattice-faster-decoder-combine.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool LatticeFasterDecoderCombineTpl<FST, Token>::GetRawLattice(
218218
KALDI_ERR << "You cannot call FinalizeDecoding() and then call "
219219
<< "GetRawLattice() with use_final_probs == false";
220220

221-
if (!decoding_finalized_) {
221+
if (!decoding_finalized_ && use_final_probs) {
222222
// Process the non-emitting arcs for the unfinished last frame.
223223
ProcessNonemitting();
224224
}

0 commit comments

Comments
 (0)