Skip to content

Commit

Permalink
Fix detetion at the tail when using hotwords in streaming model (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool committed Mar 8, 2024
1 parent f70fdd1 commit e9e8d75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void OnlineTransducerModifiedBeamSearchDecoder::Decode(
new_hyp.num_trailing_blanks = 0;
if (ss != nullptr && ss[b]->GetContextGraph() != nullptr) {
auto context_res = ss[b]->GetContextGraph()->ForwardOneStep(
context_state, new_token);
context_state, new_token, false /*strict mode*/);
context_score = std::get<0>(context_res);
new_hyp.context_state = std::get<1>(context_res);
}
Expand Down

0 comments on commit e9e8d75

Please sign in to comment.