added LC_ALL=C call and temp directory specification to sort command, hoping to minimize failed sorts crashing processPhraseTable

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1336 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
jdschroeder 2007-04-04 17:07:16 +00:00
parent 04ae9361d2
commit 667e85264a

View File

@ -173,8 +173,8 @@ for(my $i=0;$i<=$#TABLE;$i++) {
printf STDERR "$used of $total phrases pairs used (%.2f%s) - note: max length $MAX_LENGTH\n",(100*$used/$total),'%';
if ($BINARIZABLE{$i}) {
print STDERR "binarizing...";
my $cmd = "cat $new_file | sort | $binarizer -ttable 0 0 - -nscores $TABLE_WEIGHTS[$i] -out $new_file";
print STDERR $cmd."\n";
my $cmd = "cat $new_file | LC_ALL=C sort -T $dir | $binarizer -ttable 0 0 - -nscores $TABLE_WEIGHTS[$i] -out $new_file";
print STDERR $cmd."\n";
print STDERR `$cmd`;
}
}