Fix hotwords OOV log (#1139)

This commit is contained in:
Wei Kang
2024-07-16 19:41:31 +08:00
committed by GitHub
parent 960eb7529e
commit 5b1fa8750f
2 changed files with 15 additions and 11 deletions

View File

@@ -62,9 +62,9 @@ static bool EncodeBase(const std::vector<std::string> &lines,
break;
default:
SHERPA_ONNX_LOGE(
"Cannot find ID for token %s at line: %s. (Hint: words on "
"the same line are separated by spaces)",
word.c_str(), line.c_str());
"Cannot find ID for token %s at line: %s. (Hint: Check the "
"tokens.txt see if %s in it)",
word.c_str(), line.c_str(), word.c_str());
has_oov = true;
break;
}