Fix CI style issues.

This commit is contained in:
Fangjun Kuang 2022-08-03 15:26:05 +08:00
parent e130e41b83
commit a7021400c6

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)