fix style

This commit is contained in:
yaozengwei 2022-08-03 15:30:08 +08:00
parent 16ea305fbf
commit c9bf1f49db

View File

@ -334,10 +334,13 @@ class Nbest(object):
if hasattr(lattice, "aux_labels"):
# delete token IDs as it is not needed
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:
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)