Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wrapper.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/wrapper.pl b/scripts/wrapper.pl
index 2bef3068..83cd2527 100755
--- a/scripts/wrapper.pl
+++ b/scripts/wrapper.pl
@@ -1,6 +1,7 @@
#!/usr/bin/perl
use strict;
+use POSIX;
my $PID = $$;
@@ -32,7 +33,8 @@ else {
my $input = $1;
print STDERR "OPTS: $opts\n";
execute("$MOSES $opts");
- execute("$RESCORER_WRAPPER -r $RESCORER $MODELS $FEATURES -s $SVCB -t $TVCB -n $nbest -i $input -w features.list > $nbest");
+ execute("$RESCORER_WRAPPER -r $RESCORER $MODELS $FEATURES -s $SVCB -t $TVCB -n $nbest -i $input -w features.list > $nbest.temp");
+ rename("$nbest.temp", $nbest);
}
sub execute {