small fix for decode.py

This commit is contained in:
Yifan Yang 2024-01-03 17:00:13 +08:00 committed by GitHub
parent 8023493029
commit a232cebbc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):