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
4809e285bc
commit
bfb4479e7f
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user