diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-08 03:19:56 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-08 03:19:56 +0400 |
commit | 01b84656bfab55396bd0e096d1d5f56a9486cac2 (patch) | |
tree | fef08a97e4240889a52311cfb1978bc049c427b8 /scripts/training | |
parent | 82ca9fba6943bd01c55287f5765ba7fa3b746df8 (diff) |
default pt implementation if no phrase table specified
Diffstat (limited to 'scripts/training')
-rwxr-xr-x | scripts/training/train-model.perl | 6 |
1 files changed, 4 insertions, 2 deletions
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"; } |