Allow more online models to load tokens file from the memory (#1352)

Co-authored-by: xiao <shawl336@6163.com>
This commit is contained in:
lxiao336
2024-09-20 16:38:41 +08:00
committed by GitHub
parent 73c90ec871
commit 06b61ccad8
15 changed files with 735 additions and 15 deletions

View File

@@ -107,8 +107,8 @@ struct OnlineRecognizerConfig {
std::string rule_fars;
/// used only for modified_beam_search, if hotwords_buf is non-empty,
/// the hotwords will be loaded from the buffered string instead of from
/// ${hotwords_file}
/// the hotwords will be loaded from the buffered string instead of from the
/// "hotwords_file"
std::string hotwords_buf;
OnlineRecognizerConfig() = default;