Committed by
GitHub
Add LODR support to online and offline recognizers (#2026)
This PR integrates LODR (Level-Ordered Deterministic Rescoring) support from Icefall into both online and offline recognizers, enabling LODR for LM shallow fusion and LM rescore. - Extended OnlineLMConfig and OfflineLMConfig to include lodr_fst, lodr_scale, and lodr_backoff_id. - Implemented LodrFst and LodrStateCost classes and wired them into RNN LM scoring in both online and offline code paths. - Updated Python bindings, CLI entry points, examples, and CI test scripts to accept and exercise the new LODR options.
正在显示
21 个修改的文件
包含
613 行增加
和
14 行删除
sherpa-onnx/csrc/lodr-fst.cc
0 → 100644
sherpa-onnx/csrc/lodr-fst.h
0 → 100644
-
请 注册 或 登录 后发表评论