fix style
This commit is contained in:
parent
16ea305fbf
commit
c9bf1f49db
@ -334,10 +334,13 @@ class Nbest(object):
|
|||||||
if hasattr(lattice, "aux_labels"):
|
if hasattr(lattice, "aux_labels"):
|
||||||
# delete token IDs as it is not needed
|
# delete token IDs as it is not needed
|
||||||
del word_fsa.aux_labels
|
del word_fsa.aux_labels
|
||||||
word_fsa_with_epsilon_loops = k2.linear_fsa_with_self_loops(word_fsa)
|
word_fsa_with_epsilon_loops = k2.linear_fsa_with_self_loops(
|
||||||
|
word_fsa
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
word_fsa_with_epsilon_loops = k2.linear_fst_with_self_loops(word_fsa)
|
word_fsa_with_epsilon_loops = k2.linear_fst_with_self_loops(
|
||||||
|
word_fsa
|
||||||
|
)
|
||||||
|
|
||||||
path_to_utt_map = self.shape.row_ids(1)
|
path_to_utt_map = self.shape.row_ids(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user