Update utils.py

This commit is contained in:
zr_jin 2025-01-28 09:42:37 +08:00 committed by GitHub
parent 1cb459418a
commit b9efbf8ba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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