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)
|
print("settings\tWER", file=f)
|
||||||
for key, val in test_set_wers:
|
for key, val in test_set_wers:
|
||||||
print("{}\t{}".format(key, val), file=f)
|
print("{}\t{}".format(key, val), file=f)
|
||||||
|
|
||||||
|
wer = ''
|
||||||
s = "\nFor {}, WER of different settings are:\n".format(test_set_name)
|
s = "\nFor {}, WER of different settings are:\n".format(test_set_name)
|
||||||
note = "\tbest for {}".format(test_set_name)
|
note = "\tbest for {}".format(test_set_name)
|
||||||
for key, val in test_set_wers:
|
for key, val in test_set_wers:
|
||||||
s += "{}\t{}{}\n".format(key, val, note)
|
s += "{}\t{}{}\n".format(key, val, note)
|
||||||
note = ""
|
note = ""
|
||||||
|
wer += val
|
||||||
logging.info(s)
|
logging.info(s)
|
||||||
with open(f'./{params.res_name}.txt', 'a') as f:
|
with open(f'./{params.res_name}.txt', 'a') as f:
|
||||||
f.write(s)
|
f.write(s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user