Skip to content

Commit

Permalink
Fix get_transducer_model() for aishell. (#497)
Browse files Browse the repository at this point in the history
PR #495 introduces an error. This commit fixes it.
  • Loading branch information
csukuangfj authored Jul 26, 2022
1 parent d3fc4b0 commit 385645d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions egs/aishell/ASR/pruned_transducer_stateless3/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ def main():

params = get_params()
params.update(vars(args))
params.datatang_prob = 0

assert params.decoding_method in (
"greedy_search",
Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/pruned_transducer_stateless3/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def main():

params.blank_id = 0
params.vocab_size = max(lexicon.tokens) + 1
params.datatang_prob = 0

logging.info(params)

Expand Down
1 change: 1 addition & 0 deletions egs/aishell/ASR/pruned_transducer_stateless3/pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def main():

params.blank_id = 0
params.vocab_size = max(lexicon.tokens) + 1
params.datatang_prob = 0

logging.info(params)

Expand Down

0 comments on commit 385645d

Please sign in to comment.