Committed by
GitHub
Implement context biasing with a Aho Corasick automata (#145)
* Implement context graph * Modify the interface to support context biasing * Support context biasing in modified beam search; add python wrapper * Support context biasing in python api example * Minor fixes * Fix context graph * Minor fixes * Fix tests * Fix style * Fix style * Fix comments * Minor fixes * Add missing header * Replace std::shared_ptr with std::unique_ptr for effciency * Build graph in constructor * Fix comments * Minor fixes * Fix docs
正在显示
23 个修改的文件
包含
515 行增加
和
29 行删除
sherpa-onnx/csrc/context-graph-test.cc
0 → 100644
sherpa-onnx/csrc/context-graph.cc
0 → 100644
sherpa-onnx/csrc/context-graph.h
0 → 100644
sherpa-onnx/python/sherpa_onnx/utils.py
0 → 100644
-
请 注册 或 登录 后发表评论