Skip to content

Commit

Permalink
adjust format of command line echo in train_lm.py (danpovey#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
wantee authored and danpovey committed Jan 5, 2017
1 parent 6df2b62 commit 0f5be43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/train_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import argparse
import sys
import subprocess
# from collections import defaultdict
# from subprocess import CalledProcessError

Expand Down Expand Up @@ -87,7 +88,7 @@
"if --wordlist is specified otherwise the size of vocabulary, and <order> is the ngram order of model.")

# echo command line to stderr for logging.
print(' '.join(sys.argv), file=sys.stderr)
print(subprocess.list2cmdline(sys.argv), file=sys.stderr)

args = parser.parse_args()
# Add the script dir and the src dir to the path.
Expand Down

0 comments on commit 0f5be43

Please sign in to comment.