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"; }