介绍端到端模型的几种语言模型结合方式,shallow fusion, Density Ratio, Low-order Density Ratio(LODR),
ILME(Internal Language Model Estimation)方法等,详见 https://mp.weixin.qq.com/s/MkvKF5JJch3DT2RA87v9lQ
2023.5.24 目前支持LM的模型:icefiall的流式transducer都可以比如zipformer,conformer
./bin/sherpa-onnx exp/data/lang_char_bpe/tokens.txt exp/exp/encoder-epoch-99-avg-1.onnx exp/exp/decoder-epoch-99-avg-1.onnx exp/exp/joiner-epoch-99-avg-1.onnx \
exp/test_wavs/BAC009S0764W0164.wav \
2 \
modified_beam_search \
exp/exp/with-state-epoch-999-avg-1.onnx
with-state-epoch-999-avg-1.onnx就是对应的语言模型,