Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
frankyoujian
2023-08-10 14:19:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-08-10 14:19:40 +0800
Commit
9dcad7e963db489dd4d034971c245f76848c6e6f
9dcad7e9
1 parent
f73a7996
Reinitialize context state after Reset stream when using contexts (#257)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
sherpa-onnx/csrc/online-recognizer-transducer-impl.h
sherpa-onnx/csrc/online-recognizer-transducer-impl.h
查看文件 @
9dcad7e
...
...
@@ -228,7 +228,15 @@ class OnlineRecognizerTransducerImpl : public OnlineRecognizerImpl {
// we keep the decoder_out
decoder_
->
UpdateDecoderOut
(
&
s
->
GetResult
());
Ort
::
Value
decoder_out
=
std
::
move
(
s
->
GetResult
().
decoder_out
);
s
->
SetResult
(
decoder_
->
GetEmptyResult
());
auto
r
=
decoder_
->
GetEmptyResult
();
if
(
config_
.
decoding_method
==
"modified_beam_search"
&&
nullptr
!=
s
->
GetContextGraph
())
{
for
(
auto
it
=
r
.
hyps
.
begin
();
it
!=
r
.
hyps
.
end
();
++
it
)
{
it
->
second
.
context_state
=
s
->
GetContextGraph
()
->
Root
();
}
}
s
->
SetResult
(
r
);
s
->
GetResult
().
decoder_out
=
std
::
move
(
decoder_out
);
// Note: We only update counters. The underlying audio samples
...
...
请
注册
或
登录
后发表评论