from local

This commit is contained in:
dohe0342 2023-03-21 13:30:55 +09:00
parent 4809e285bc
commit bfb4479e7f
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -586,12 +586,14 @@ def save_results(
print("settings\tWER", file=f)
for key, val in test_set_wers:
print("{}\t{}".format(key, val), file=f)
wer = ''
s = "\nFor {}, WER of different settings are:\n".format(test_set_name)
note = "\tbest for {}".format(test_set_name)
for key, val in test_set_wers:
s += "{}\t{}{}\n".format(key, val, note)
note = ""
wer += val
logging.info(s)
with open(f'./{params.res_name}.txt', 'a') as f:
f.write(s)