From b9efbf8ba04922a4f24d430c5baaf57b81545a41 Mon Sep 17 00:00:00 2001 From: zr_jin Date: Tue, 28 Jan 2025 09:42:37 +0800 Subject: [PATCH] Update utils.py --- icefall/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/icefall/utils.py b/icefall/utils.py index 6f7a8353ee..aab479e568 100644 --- a/icefall/utils.py +++ b/icefall/utils.py @@ -644,8 +644,7 @@ def write_error_stats( results[i] = (cut_id, ref, hyp) for cut_id, ref, hyp in results: - # ali = kaldialign.align(ref, hyp, ERR, sclite_mode=sclite_mode) - ali = kaldialign.align(ref, hyp, ERR) + ali = kaldialign.align(ref, hyp, ERR, sclite_mode=sclite_mode) for ref_word, hyp_word in ali: if ref_word == ERR: ins[hyp_word] += 1