Skip to content

Commit 76a51bf

Browse files
authored
Fix aishell tdnn_lstm_ctc decoding (#149)
1 parent a183d5b commit 76a51bf

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

egs/aishell/ASR/tdnn_lstm_ctc/decode.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
1918
import argparse
2019
import logging
2120
from collections import defaultdict
@@ -177,7 +176,7 @@ def decode_one_batch(
177176

178177
lattice = get_lattice(
179178
nnet_output=nnet_output,
180-
HLG=HLG,
179+
decoding_graph=HLG,
181180
supervision_segments=supervision_segments,
182181
search_beam=params.search_beam,
183182
output_beam=params.output_beam,

egs/aishell/ASR/tdnn_lstm_ctc/pretrained.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818

19-
2019
import argparse
2120
import logging
2221
import math
@@ -191,7 +190,7 @@ def main():
191190

192191
lattice = get_lattice(
193192
nnet_output=nnet_output,
194-
HLG=HLG,
193+
decoding_graph=HLG,
195194
supervision_segments=supervision_segments,
196195
search_beam=params.search_beam,
197196
output_beam=params.output_beam,

0 commit comments

Comments
 (0)