from local

This commit is contained in:
dohe0342 2023-02-02 19:19:00 +09:00
parent b70122039d
commit bd175adb7c
2 changed files with 4 additions and 3 deletions

View File

@ -499,9 +499,7 @@ def decode_dataset(
ins_all += ins
char_num == len(ref)
cer = (subs_all+dels_all+ins_all) / char_num
print(cer * 100)
'''
for lm_scale, hyps in hyps_dict.items():
this_batch = []
@ -519,6 +517,9 @@ def decode_dataset(
logging.info(f"batch {batch_str}, cuts processed until now is {num_cuts}")
'''
cer = (subs_all+dels_all+ins_all) / char_num
print(cer * 100)
return results