Skip to content

Commit

Permalink
small fix for decode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyeung authored Jan 3, 2024
1 parent 8023493 commit a232ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/librispeech/SSL/hubert/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def decode_one_batch(
max_contexts=params.max_contexts,
max_states=params.max_states,
num_paths=params.num_paths,
ref_texts=sp.encode(supervisions["text"]),
ref_texts=sp.encode(batch["supervisions"]["text"]),
nbest_scale=params.nbest_scale,
)
for hyp in sp.decode(hyp_tokens):
Expand Down

0 comments on commit a232ceb

Please sign in to comment.