From a232cebbc8d9d1303915f3c780ea138369b3ed4e Mon Sep 17 00:00:00 2001 From: Yifan Yang <64255737+yfyeung@users.noreply.github.com> Date: Wed, 3 Jan 2024 17:00:13 +0800 Subject: [PATCH] small fix for decode.py --- egs/librispeech/SSL/hubert/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/SSL/hubert/decode.py b/egs/librispeech/SSL/hubert/decode.py index 7df3c2963..1e96224eb 100644 --- a/egs/librispeech/SSL/hubert/decode.py +++ b/egs/librispeech/SSL/hubert/decode.py @@ -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):