Askars Salimbajevs
Committed by GitHub

Disable strict hotword matching mode for offline transducer (#1837)

* Disable strict hotword matching mode for offline transducer. Also introduces new variable, so that later this mode can be switched on in the runtime.

* remove strict mode variable

---------

Co-authored-by: Askars Salimbajevs <askars.salimbajevs@tilde.lv>
... ... @@ -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);
}
... ...