summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-02-27 19:45:14 -0500
committerChris Dyer <redpony@gmail.com>2014-02-27 19:45:14 -0500
commit324a978e7d766a3864e42efc0938fb6c9ef5a01c (patch)
treee05e6d5a94cf4f79363cd175278130303c66d259 /training
parent6da95d3dac00ffc4cfba0c17b50abb071c5fb7b3 (diff)
parent5935df4adc4d0b8864ae0f9a65b8f6453a11bb45 (diff)
Merge branch 'master' of https://github.com/redpony/cdec
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: