mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
010bf5f3df
commit
00166429f1
Binary file not shown.
@ -805,6 +805,7 @@ def main():
|
||||
|
||||
res_dict = {}
|
||||
for res in results:
|
||||
hypo = res
|
||||
res_dict[res[0]] = ' '.join(res[2])
|
||||
|
||||
res_dict = sorted(res_dict.items(), key=lambda x:x[0])
|
||||
@ -835,7 +836,13 @@ def main():
|
||||
new_line += '\n'
|
||||
|
||||
new_jsons.write(new_line)
|
||||
save_results(
|
||||
params=params,
|
||||
test_set_name=test_set,
|
||||
results_dict=results_dict,
|
||||
)
|
||||
|
||||
'''
|
||||
for test_set, test_dl in zip(test_sets, test_dl):
|
||||
results_dict = decode_dataset(
|
||||
dl=test_dl,
|
||||
@ -851,7 +858,7 @@ def main():
|
||||
test_set_name=test_set,
|
||||
results_dict=results_dict,
|
||||
)
|
||||
|
||||
'''
|
||||
'''
|
||||
test_clean_cuts, test_clean_sets = librispeech.test_clean_cuts(option='user')
|
||||
test_other_cuts, test_other_sets = librispeech.test_other_cuts(option='user')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user