diff --git a/sherpa-onnx/csrc/offline-transducer-modified-beam-search-decoder.cc b/sherpa-onnx/csrc/offline-transducer-modified-beam-search-decoder.cc index 7e81624e..d053a6fd 100644 --- a/sherpa-onnx/csrc/offline-transducer-modified-beam-search-decoder.cc +++ b/sherpa-onnx/csrc/offline-transducer-modified-beam-search-decoder.cc @@ -138,7 +138,9 @@ OfflineTransducerModifiedBeamSearchDecoder::Decode( new_hyp.timestamps.push_back(t); if (context_graphs[i] != nullptr) { auto context_res = - context_graphs[i]->ForwardOneStep(context_state, new_token); + context_graphs[i]->ForwardOneStep(context_state, + new_token, + false /* non-strict mode */); context_score = std::get<0>(context_res); new_hyp.context_state = std::get<1>(context_res); }