sherpa-onnx icon indicating copy to clipboard operation
sherpa-onnx copied to clipboard

Shallow fusion with N-gram Language Model

Open tienanh28122000 opened this issue 2 years ago • 1 comments

Hi every one, do we have a shallow fusion implementation with N-gram Language Model (e.g Kenlm or Srilm) instead of Neural Language Model? If not, can you give me some instructions to do shallow fusion with N-gram and then maybe I can have a PR for this. Thanks in advance!

tienanh28122000 avatar Jun 22 '23 11:06 tienanh28122000

Hi, n-gram LM is usually much weaker than a neural network LM (such as RNN/Transformer). We only supported RNNLM rescoring, see #125.

marcoyang1998 avatar Jun 22 '23 17:06 marcoyang1998