ctc_align.py, avoid shadowing a variable

This commit is contained in:
Karel Vesely 2025-09-12 17:11:41 +02:00
parent ec6a8462e4
commit d5ff66c56d

View File

@ -395,9 +395,9 @@ def align_dataset(
for name, alignments in hyps_dict.items():
this_batch = []
assert len(alignments) == len(texts)
for cut_id, alignments, ref_text in zip(cut_ids, alignments, texts):
for cut_id, alignment, ref_text in zip(cut_ids, alignments, texts):
ref_words = ref_text.split()
this_batch.append((cut_id, ref_words, alignments))
this_batch.append((cut_id, ref_words, alignment))
results[name].extend(this_batch)