Word boosting for the OOV word not working

Riva Version: 2.19.0

I was experimenting with the Riva STT “word boosting” capabilities by following this doc. This doc said “Out-of-vocabulary (OOV) word boosting is supported.”

But when I try to boost the OOV word, I get

E1201 10:11:54.271695    77 streaming_asr_ensemble.cc:1286] Caught exception: Unable to encode the word <MY_OOV_boosted_WORD>
E1201 10:11:54.271879 1856266 grpc_riva_asr.cc:1465] Received error from Triton: Unable to encode the word <MY_OOV_boosted_WORD>

Then I found this doc. That says “Flashlight decoder used in Riva is a lexicon-based decoder and only emits words that are present in the decoder vocabulary file.”

So when I add the <MY_OOV_boosted_WORD> in the lexicon file, the above encoding error is solved.

Could you please tell me how I can boost the OOV words in Riva? If you need any other information please let me know.

Thanks.