from local

This commit is contained in:
dohe0342 2023-03-14 14:50:59 +09:00
parent 010bf5f3df
commit 00166429f1
2 changed files with 8 additions and 1 deletions

View File

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