Skip to content

Commit

Permalink
ctc endpointing blank id
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhou245 committed Feb 23, 2024
1 parent e711533 commit 808ad62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/core/decoder/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ DEFINE_int32(min_active, 200, "min active states in ctc wfst search");
DEFINE_double(beam, 16.0, "beam in ctc wfst search");
DEFINE_double(lattice_beam, 10.0, "lattice beam in ctc wfst search");
DEFINE_double(acoustic_scale, 1.0, "acoustic scale for ctc wfst search");
DEFINE_int32(blank_id, 0.0,
DEFINE_int32(blank_id, 0,
"blank token idx for ctc wfst search and ctc prefix beam search");
DEFINE_double(blank_skip_thresh, 1.0,
"blank skip thresh for ctc wfst search, 1.0 means no skip");
Expand Down Expand Up @@ -156,6 +156,7 @@ std::shared_ptr<DecodeOptions> InitDecodeOptionsFromFlags() {
decode_config->ctc_prefix_search_opts.first_beam_size = FLAGS_nbest;
decode_config->ctc_prefix_search_opts.second_beam_size = FLAGS_nbest;
decode_config->ctc_prefix_search_opts.blank = FLAGS_blank_id;
decode_config->ctc_endpoint_config.blank = FLAGS_blank_id;
return decode_config;
}

Expand Down

0 comments on commit 808ad62

Please sign in to comment.