Skip to content

Commit f93c192

Browse files
o-alexandre-felipedanpovey
authored andcommitted
[src] Fix wrong error message format in make_lexicon_fst.py
1 parent c101557 commit f93c192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/wsj/s5/utils/lang/make_lexicon_fst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def read_lexiconp(filename):
9292
sys.exit(1)
9393
prons = a[2:]
9494
if pron_prob <= 0.0:
95-
print("{0}: error: invalid pron-prob in line '{1}' of lexicon file {1} ".format(
95+
print("{0}: error: invalid pron-prob in line '{1}' of lexicon file {2} ".format(
9696
sys.argv[0], line.strip(" \t\r\n"), filename), file=sys.stderr)
9797
sys.exit(1)
9898
if len(prons) == 0:

0 commit comments

Comments
 (0)