diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 19:34:06 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-06 19:34:06 +0000 |
commit | 3c359d90f417794fbea9f522a1b7a7258069fc11 (patch) | |
tree | b96897bf472d889caa20638c728a492c10404d81 /gi | |
parent | 704052fecfb16f2e9074bace99936a566f9d84ab (diff) |
fix
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@160 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi')
-rwxr-xr-x | gi/pipeline/evaluation-pipeline.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/pipeline/evaluation-pipeline.pl b/gi/pipeline/evaluation-pipeline.pl index bbab2d64..06c89b60 100755 --- a/gi/pipeline/evaluation-pipeline.pl +++ b/gi/pipeline/evaluation-pipeline.pl @@ -156,7 +156,8 @@ if (-f $tuned_weights) { chdir $outdir or die "Can't chdir to $outdir: $!"; $weights = `$cmd`; die "MERT reported non-zero exit code" unless $? == 0; - `cp $weights $tuned_weights`; + chomp $weights; + safesystem($tuned_weights, "cp $weights $tuned_weights"); print STDERR "TUNED WEIGHTS: $tuned_weights\n"; die "$tuned_weights is missing!" unless -f $tuned_weights; } |