from local

This commit is contained in:
dohe0342 2023-03-21 13:35:35 +09:00
parent 9e74f6c77e
commit 9d9ffa8ad1
2 changed files with 2 additions and 0 deletions

View File

@ -587,12 +587,14 @@ def save_results(
for key, val in test_set_wers:
print("{}\t{}".format(key, val), file=f)
spk = None
wer = None
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 = ""
spk = note.split(' ')[-1]
wer = str(val)
logging.info(s)
with open(f'./{params.res_name}.txt', 'a') as f: