Fix for older versions of k2 (#725)

This commit is contained in:
Fangjun Kuang 2022-12-02 09:18:28 +08:00 committed by GitHub
parent 2bca7032af
commit 04c9fc9c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ class CtcTrainingGraphCompiler(object):
self.ctc_topo._is_repeat_token_ = (
self.ctc_topo.labels != self.ctc_topo.aux_labels
)
).int()
decoding_graph = k2.compose(
self.ctc_topo, fsa_with_self_loops, treat_epsilons_specially=False