Support customize scores for hotwords (#926)
* Support customize scores for hotwords * Skip blank lines
This commit is contained in:
@@ -29,7 +29,8 @@ namespace sherpa_onnx {
|
||||
bool EncodeHotwords(std::istream &is, const std::string &modeling_unit,
|
||||
const SymbolTable &symbol_table,
|
||||
const ssentencepiece::Ssentencepiece *bpe_encoder_,
|
||||
std::vector<std::vector<int32_t>> *hotwords_id);
|
||||
std::vector<std::vector<int32_t>> *hotwords_id,
|
||||
std::vector<float> *boost_scores);
|
||||
|
||||
/* Encode the keywords in an input stream to be tokens ids.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user