mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
load hiero format for reading suffix arrays
This commit is contained in:
parent
253f32a2e5
commit
712bbf199c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user