summaryrefslogtreecommitdiff
path: root/gi/pipeline
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
commiteb7d18a4ac962018cac6f412206416c0c3b6ab9e (patch)
treee675b01ba7253f5a2afe733c699ccc1170c1020d /gi/pipeline
parent503146bfdf99682ce81366b0134f3196e0a4e32c (diff)
fix
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@160 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pipeline')
-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;
}