mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
fix mmi graph compiler bug. (#895)
This commit is contained in:
parent
5cd1636cb3
commit
59ac8bfc70
@ -74,7 +74,9 @@ class MmiTrainingGraphCompiler(object):
|
||||
# CAUTION: The following line is crucial.
|
||||
# Arcs entering the back-off state have label equal to #0.
|
||||
# We have to change it to 0 here.
|
||||
P.labels[P.labels >= first_token_disambig_id] = 0
|
||||
labels = P.labels.clone()
|
||||
labels[labels >= first_token_disambig_id] = 0
|
||||
P.labels = labels
|
||||
|
||||
P = k2.remove_epsilon(P)
|
||||
P = k2.arc_sort(P)
|
||||
|
Loading…
x
Reference in New Issue
Block a user