From 5935df4adc4d0b8864ae0f9a65b8f6453a11bb45 Mon Sep 17 00:00:00 2001 From: Michael Denkowski Date: Wed, 26 Feb 2014 12:15:28 -0800 Subject: Use same number of jobs for decoding. --- training/mira/mira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'training/mira') 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: -- cgit v1.2.3