-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cumstomized score for hotwords & add Finalize to stream #281
Conversation
请问可以提供一个演示视频吗,因为设置热词经常出现这种情况,导致尾部不能识别 |
Sorry,I forgot this PR,there are some other fixes to the hotwords, will push here later. |
好的,期待简单明了的处理方式 |
请问提供的方法怎么使用?需要重新安装sherpa_ncnn库吗 |
如果是需要重新编译库,可不可以开个教程视频啊?因为我用的python操作sherpa-ncnn模型的,也是偶然在哔站看见的,完全不明白所谓的finalize在哪里使用 |
麻烦稍等一会儿,现在还不能用。 |
嗯嗯,明白了 |
现在应该可以了,等 CI 过了就合并。一会儿你可以试试。 |
您的意思是我可以试试git clone https://github.com/k2-fsa/sherpa-ncnn |
不需要 |
好的
…------------------ 原始邮件 ------------------
发件人: "k2-fsa/sherpa-ncnn" ***@***.***>;
发送时间: 2024年3月7日(星期四) 下午5:24
***@***.***>;
***@***.******@***.***>;
主题: Re: [k2-fsa/sherpa-ncnn] Add cumstomized score for hotwords & add Finalize to stream (PR #281)
您的意思是我可以试试git clone https://github.com/k2-fsa/sherpa-ncnn cd sherpa-ncnn python3 setup.py install?不需要修改python代码吗
不需要
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
请问这个merge了,我需要做什么呢,重新下载git clone https://github.com/k2-fsa/sherpa-ncnn,然后编译吗 |
对 |
This PR mainly aims to fix the bug of deletions at the tail when the hotword phrases are long, it also adds a very useful feature, users now can cumstomized the boosting score for different phrases.
There are two issues here:
So the fix are:
stream->Finalize()
when finishing the decoding, (actually, if you are using real streaming services, you don't have to do that, because we finalize the stream when meetting endpoint internally).