|
|
@ -104,9 +104,7 @@ def evaluate():
|
|
|
|
vocab_list=vocab_list,
|
|
|
|
vocab_list=vocab_list,
|
|
|
|
language_model_path=args.lang_model_path,
|
|
|
|
language_model_path=args.lang_model_path,
|
|
|
|
num_processes=args.num_proc_bsearch)
|
|
|
|
num_processes=args.num_proc_bsearch)
|
|
|
|
target_transcripts = [
|
|
|
|
target_transcripts = [transcript for _, transcript in infer_data]
|
|
|
|
transcript for _, transcript in infer_data
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
for target, result in zip(target_transcripts, result_transcripts):
|
|
|
|
for target, result in zip(target_transcripts, result_transcripts):
|
|
|
|
error_sum += error_rate_func(target, result)
|
|
|
|
error_sum += error_rate_func(target, result)
|
|
|
|
num_ins += 1
|
|
|
|
num_ins += 1
|
|
|
|