Skip to content

Commit

Permalink
[src] Fix wrong error message format in make_lexicon_fst.py
Browse files Browse the repository at this point in the history
  • Loading branch information
o-alexandre-felipe authored and danpovey committed Jan 6, 2020
1 parent c101557 commit f93c192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj/s5/utils/lang/make_lexicon_fst.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def read_lexiconp(filename):
sys.exit(1)
prons = a[2:]
if pron_prob <= 0.0:
print("{0}: error: invalid pron-prob in line '{1}' of lexicon file {1} ".format(
print("{0}: error: invalid pron-prob in line '{1}' of lexicon file {2} ".format(
sys.argv[0], line.strip(" \t\r\n"), filename), file=sys.stderr)
sys.exit(1)
if len(prons) == 0:
Expand Down

0 comments on commit f93c192

Please sign in to comment.