Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Jan 28, 2025
1 parent 1cb4594 commit b9efbf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions icefall/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9efbf8

Please sign in to comment.