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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-11-13 21:27:18 +0400
committerHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-11-13 21:27:18 +0400
commit712bbf199c6a2a571d49af64d62600faf7e949fa (patch)
tree89f4e42abea5650d8335dfddd8091c2f5a4f13a7 /scripts
parent253f32a2e51a4607692ed14c36fb1419325ba91f (diff)
load hiero format for reading suffix arrays
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generic/moses-parallel.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/generic/moses-parallel.pl b/scripts/generic/moses-parallel.pl
index 1e8d14eee..dc1625f14 100755
--- a/scripts/generic/moses-parallel.pl
+++ b/scripts/generic/moses-parallel.pl
@@ -553,6 +553,8 @@ remove_temporary_files();
#script creation
sub preparing_script(){
+ my $currStartTranslationId = 0;
+
foreach my $idx (@idxlist){
my $scriptheader="";
$scriptheader.="\#\! /bin/bash\n\n";
@@ -588,7 +590,9 @@ sub preparing_script(){
$tmpwordgraphlist="-output-word-graph $tmpdir/$wordgraphfile.$splitpfx$idx $wordgraphlist[1]";
}
- print OUT "$mosescmd $mosesparameters $tmpalioutfile $tmpwordgraphlist $tmpsearchgraphlist $tmpnbestlist $inputmethod ${inputfile}.$splitpfx$idx > $tmpdir/${inputfile}.$splitpfx$idx.trans\n\n";
+ my $tmpStartTranslationId = "-start-translation-id $currStartTranslationId";
+
+ print OUT "$mosescmd $mosesparameters $tmpStartTranslationId $tmpalioutfile $tmpwordgraphlist $tmpsearchgraphlist $tmpnbestlist $inputmethod ${inputfile}.$splitpfx$idx > $tmpdir/${inputfile}.$splitpfx$idx.trans\n\n";
print OUT "echo exit status \$\?\n\n";
if (defined $alifile){
@@ -615,6 +619,8 @@ sub preparing_script(){
#setting permissions of each script
chmod(oct(755),"${jobscript}${idx}.bash");
+
+ $currStartTranslationId += $splitN;
}
}