Skip to content

Commit 70e55a1

Browse files
committed
Modifications to decoders (change defaults; new debug statements.)
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@196 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
1 parent 135f8d5 commit 70e55a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/decoder/faster-decoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FasterDecoder {
9191
for (int32 frame = 0; !decodable->IsLastFrame(frame-1); frame++) {
9292
DEBUG_OUT1("==== FRAME " << frame << " =====")
9393
if ((frame%50) == 0)
94-
KALDI_LOG << "==== FRAME " << frame << " =====";
94+
KALDI_VLOG(2) << "==== FRAME " << frame << " =====";
9595
BaseFloat adaptive_beam = ProcessEmitting(decodable, frame);
9696
ProcessNonemitting(adaptive_beam);
9797
}

src/decoder/kaldi-decoder-left-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace kaldi {
5858
do { // go over all feature frames and decode
5959
frame_index_++;
6060
DEBUG_OUT1("==== FRAME " << frame_index_)
61-
if ((frame_index_%50) == 0) KALDI_LOG << "==== FRAME " << frame_index_;
61+
if ((frame_index_%50) == 0) KALDI_VLOG(2) << "==== FRAME " << frame_index_;
6262

6363
ProcessToDoList();
6464
// all active tokens from last frame are by now processed

src/decoder/kaldi-decoder-left.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ struct KaldiDecoderOptions {
7373
BaseFloat beamwidth2;
7474

7575
KaldiDecoderOptions(): lm_scale(1.0), word_penalty(0.0),
76-
max_active_tokens(std::numeric_limits<int32>::max()),
76+
max_active_tokens(10000),
7777
beamwidth(16.0), beamwidth2(16.0) { }
7878
void Register(ParseOptions *po, bool full) { // "full":use obscure options too
7979
// depends on program

0 commit comments

Comments
 (0)