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
Wei Kang
2024-03-08 10:04:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-03-08 10:04:33 +0800
Commit
e9e8d755d9235a48c4a74ad48033db051c63f4e3
e9e8d755
1 parent
f70fdd15
Fix detetion at the tail when using hotwords in streaming model (#638)
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
sherpa-onnx/csrc/online-transducer-modified-beam-search-decoder.cc
sherpa-onnx/csrc/online-transducer-modified-beam-search-decoder.cc
查看文件 @
e9e8d75
...
...
@@ -173,7 +173,7 @@ void OnlineTransducerModifiedBeamSearchDecoder::Decode(
new_hyp
.
num_trailing_blanks
=
0
;
if
(
ss
!=
nullptr
&&
ss
[
b
]
->
GetContextGraph
()
!=
nullptr
)
{
auto
context_res
=
ss
[
b
]
->
GetContextGraph
()
->
ForwardOneStep
(
context_state
,
new_token
);
context_state
,
new_token
,
false
/*strict mode*/
);
context_score
=
std
::
get
<
0
>
(
context_res
);
new_hyp
.
context_state
=
std
::
get
<
1
>
(
context_res
);
}
...
...
请
注册
或
登录
后发表评论