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>
This commit is contained in:
committed by
GitHub
parent
31ced58f9a
commit
664b461d01
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user