This commit is contained in:
Guanbo Wang 2022-05-06 20:10:54 -04:00 committed by GitHub
parent 32f05c00e3
commit 8e3c89076e

View File

@ -177,8 +177,8 @@ def post_processing(
) -> List[Tuple[List[str], List[str]]]: ) -> List[Tuple[List[str], List[str]]]:
new_results = [] new_results = []
for ref, hyp in results: for ref, hyp in results:
new_ref = asr_text_post_processing(" ".join(ref)) new_ref = asr_text_post_processing(" ".join(ref)).split()
new_hyp = asr_text_post_processing(" ".join(hyp)) new_hyp = asr_text_post_processing(" ".join(hyp)).split()
new_results.append((new_ref, new_hyp)) new_results.append((new_ref, new_hyp))
return new_results return new_results