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 <fishandfrolick@gmail.com>2012-06-08 03:19:56 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-06-08 03:19:56 +0400
commit01b84656bfab55396bd0e096d1d5f56a9486cac2 (patch)
treefef08a97e4240889a52311cfb1978bc049c427b8 /scripts
parent82ca9fba6943bd01c55287f5765ba7fa3b746df8 (diff)
default pt implementation if no phrase table specified
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/recaser/train-recaser.perl1
-rwxr-xr-xscripts/training/train-model.perl6
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/recaser/train-recaser.perl b/scripts/recaser/train-recaser.perl
index a5a707554..f669c5de6 100755
--- a/scripts/recaser/train-recaser.perl
+++ b/scripts/recaser/train-recaser.perl
@@ -149,7 +149,6 @@ sub train_recase_model {
else {
$cmd .= " --lm 0:3:$DIR/cased.srilm.gz:0";
}
- $cmd .= " -scripts-root-dir $SCRIPTS_ROOT_DIR" if $SCRIPTS_ROOT_DIR;
$cmd .= " -config $CONFIG" if $CONFIG;
print STDERR $cmd."\n";
system($cmd) == 0 || die("Recaser model training failed with error " . ($? >> 8) . "\n");
diff --git a/scripts/training/train-model.perl b/scripts/training/train-model.perl
index 0ac2621f3..05b463764 100755
--- a/scripts/training/train-model.perl
+++ b/scripts/training/train-model.perl
@@ -1843,9 +1843,8 @@ sub create_ini {
my $ff = $f;
$ff =~ s/\-/ /;
my $file = "$___MODEL_DIR/".($_HIERARCHICAL?"rule-table":"phrase-table").($___NOT_FACTORED ? "" : ".$f").".gz";
- print STDERR "HIEU:".$SPECIFIED_TABLE[0] ."\n";
+ my $phrase_table_impl = ($_HIERARCHICAL? 6 : 0);
- my $phrase_table_impl;
if (scalar(@SPECIFIED_TABLE)) {
$file = shift @SPECIFIED_TABLE;
my @toks = split(/:/,$file);
@@ -1856,6 +1855,9 @@ sub create_ini {
$basic_weight_count = $toks[2];
}
}
+ else {
+
+ }
print INI "$phrase_table_impl $ff $basic_weight_count $file\n";
}