mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-10 22:45:27 +00:00
ctc_align.py, avoid shadowing a variable
This commit is contained in:
parent
ec6a8462e4
commit
d5ff66c56d
@ -395,9 +395,9 @@ def align_dataset(
|
|||||||
for name, alignments in hyps_dict.items():
|
for name, alignments in hyps_dict.items():
|
||||||
this_batch = []
|
this_batch = []
|
||||||
assert len(alignments) == len(texts)
|
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()
|
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)
|
results[name].extend(this_batch)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user