mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-10 18:42: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)
|
results[i] = (cut_id, ref, hyp)
|
||||||
|
|
||||||
for cut_id, ref, hyp in results:
|
for cut_id, ref, hyp in results:
|
||||||
# ali = kaldialign.align(ref, hyp, ERR, sclite_mode=sclite_mode)
|
ali = kaldialign.align(ref, hyp, ERR, sclite_mode=sclite_mode)
|
||||||
ali = kaldialign.align(ref, hyp, ERR)
|
|
||||||
for ref_word, hyp_word in ali:
|
for ref_word, hyp_word in ali:
|
||||||
if ref_word == ERR:
|
if ref_word == ERR:
|
||||||
ins[hyp_word] += 1
|
ins[hyp_word] += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user