Can now specify reordering table when executing step 9

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/branches/hierarchical-reo@2997 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bhaddow 2010-03-23 18:55:48 +00:00
parent a9920a68e1
commit 8060024cc1

View File

@ -1649,7 +1649,7 @@ print INI "\n\n\# limit on how many phrase translations e for each phrase f are
my $file = "# distortion (reordering) files\n\[distortion-file]\n";
my $factor_i = 0;
#my @SPECIFIED_TABLE = @_REORDERING_TABLE;
my @SPECIFIED_TABLE = @_REORDERING_TABLE;
foreach my $factor (split(/\+/,$___REORDERING_FACTORS)) {
foreach my $model (@REORDERING_MODELS) {
$weight_d_count += $model->{"numfeatures"};
@ -1657,7 +1657,7 @@ print INI "\n\n\# limit on how many phrase translations e for each phrase f are
$table_file .= ".$factor" unless $___NOT_FACTORED;
$table_file .= $model->{"filename"};
$table_file .= ".gz";
#$table_file = shift @SPECIFIED_TABLE if scalar(@SPECIFIED_TABLE);
$table_file = shift @SPECIFIED_TABLE if scalar(@SPECIFIED_TABLE);
$file .= "$factor ".$model->{"config"}." ".$model->{"numfeatures"}." $table_file\n";
}
$factor_i++;