k2-fsa / sherpa

Speech-to-text server framework with next-gen Kaldi
https://k2-fsa.github.io/sherpa
Apache License 2.0
515 stars 103 forks source link

Support shallow fusion with RNNLM #373

Open csukuangfj opened 1 year ago

csukuangfj commented 1 year ago

https://github.com/k2-fsa/sherpa-onnx/pull/147 added shallow fusion with RNNLM.

We also need to support it in sherpa

The first step is to use https://github.com/k2-fsa/icefall/pull/1050 as a reference to export the model via torchscript.

The next step is to use https://github.com/k2-fsa/sherpa-onnx/pull/147 as a reference to add code to sherpa. You can translate the code directly from sherpa-onnx to sherpa.

Help from the community is highly appreciated. If you have any doubts, please leave a message and we can help you.