summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorMichael Denkowski <mdenkows@cs.cmu.edu>2014-02-26 12:15:28 -0800
committerMichael Denkowski <mdenkows@cs.cmu.edu>2014-02-26 12:15:28 -0800
commit53f4328e5e5cc72c6d483783edb85ba16b414caf (patch)
tree12ff5bf7d84ecb7293e4ab1f52dc4fb90635af18 /training
parent6abe55d22e18fc1fc8676a782e38e8340d1c2e86 (diff)
Use same number of jobs for decoding.
Diffstat (limited to 'training')
-rwxr-xr-xtraining/mira/mira.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/mira/mira.py b/training/mira/mira.py
index 77f2f35f..ca549ed8 100755
--- a/training/mira/mira.py
+++ b/training/mira/mira.py
@@ -242,7 +242,7 @@ def evaluate(testset, weights, ini, script_dir, out_dir):
evaluator = '{}/../utils/decode-and-evaluate.pl'.format(script_dir)
try:
p = subprocess.Popen([evaluator, '-c', ini, '-w', weights, '-i', testset,
- '-d', out_dir], stdout=subprocess.PIPE)
+ '-d', out_dir, '--jobs', args.jobs], stdout=subprocess.PIPE)
results, err = p.communicate()
bleu, results = results.split('\n',1)
except subprocess.CalledProcessError: