summaryrefslogtreecommitdiff
path: root/gi/pipeline/evaluation-pipeline.pl
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-06 19:34:06 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-06 19:34:06 +0000
commit3c359d90f417794fbea9f522a1b7a7258069fc11 (patch)
treeb96897bf472d889caa20638c728a492c10404d81 /gi/pipeline/evaluation-pipeline.pl
parent704052fecfb16f2e9074bace99936a566f9d84ab (diff)
fix
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@160 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pipeline/evaluation-pipeline.pl')
-rwxr-xr-xgi/pipeline/evaluation-pipeline.pl3
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;
}