Skip to content
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

Fix decode_stream.py #1208

Merged
merged 2 commits into from
Aug 9, 2023
Merged

Fix decode_stream.py #1208

merged 2 commits into from
Aug 9, 2023

Conversation

yfyeung
Copy link
Collaborator

@yfyeung yfyeung commented Aug 8, 2023

No description provided.

@@ -79,7 +79,7 @@ def __init__(
self.pad_length = 7 + 2 * 3

if params.decoding_method == "greedy_search":
self.hyp = [params.blank_id] * params.context_size
self.hyp = [-1] * (params.context_size - 1) + [params.blank_id]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update Line 87

@yfyeung yfyeung merged commit 00256a7 into k2-fsa:master Aug 9, 2023
3 checks passed
@ezerhouni
Copy link
Collaborator

@csukuangfj I think the changes has not been made for modified_beam_search. Should I open a PR to fix it ?

@csukuangfj
Copy link
Collaborator

@csukuangfj I think the changes has not been made for modified_beam_search. Should I open a PR to fix it ?

Yes, please. Thanks!

@ezerhouni
Copy link
Collaborator

@csukuangfj Great, will do by tomorrow

csukuangfj added a commit to csukuangfj/sherpa that referenced this pull request Aug 25, 2023
csukuangfj added a commit to k2-fsa/sherpa that referenced this pull request Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants