mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 18:12:19 +00:00
Update utils.py
This commit is contained in:
parent
1cb459418a
commit
b9efbf8ba0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user