diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-03-06 16:39:41 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-03-06 16:39:41 +0400 |
commit | 3e60705ec2d345349db2dc093ec4f48f7e7b42ae (patch) | |
tree | 982f52e9202c577042da58c1f9fcc419612fc78b /scripts/ems | |
parent | 3d6068923b8d58fe2ead199273ba16dfdd54aa99 (diff) |
change format of pt. Allow overriding of feature name
Diffstat (limited to 'scripts/ems')
-rw-r--r-- | scripts/ems/experiment.meta | 2 | ||||
-rwxr-xr-x | scripts/ems/experiment.perl | 30 |
2 files changed, 2 insertions, 30 deletions
diff --git a/scripts/ems/experiment.meta b/scripts/ems/experiment.meta index ab08625bf..2a32d4e2b 100644 --- a/scripts/ems/experiment.meta +++ b/scripts/ems/experiment.meta @@ -821,7 +821,7 @@ apply-filter default-name: tuning/moses.filtered.ini pass-if: TRAINING:binarize-all ignore-if: use-hiero - template: $moses-script-dir/ems/support/substitute-filtered-tables.perl IN1/moses.ini < IN > OUT + template: cp IN1/moses.ini OUT apply-filter-devtest in: TRAINING:config filtered-dir-devtest out: filtered-config-devtest diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl index 738c5b650..7688d8846 100755 --- a/scripts/ems/experiment.perl +++ b/scripts/ems/experiment.perl @@ -2557,35 +2557,7 @@ sub define_tuningevaluation_filter { $config = $tuning_flag ? "$dir/tuning/moses.table.ini.$VERSION" : "$dir/evaluation/$set.moses.table.ini.$VERSION"; $delete_config = 1; - my $moses_src_dir = &check_and_get("GENERAL:moses-src-dir"); - $cmd = "$moses_src_dir/bin/create-ini "; - - $cmd .= "-hierarchical " if $hierarchical; - - $cmd .= &define_domain_feature_score_option($domains) if &get("TRAINING:domain-features"); - - my $ptCmd = $phrase_translation_table; - $ptCmd .= ":$ptImpl" if $ptImpl>0; - $ptCmd .= ":$numFF" if defined($numFF); - $cmd .= &get_table_name_settings("translation-factors","phrase-translation-table", $ptCmd); - $cmd .= &get_table_name_settings("reordering-factors","reordering-table", $reordering_table) - if $reordering_table; - # additional settings for hierarchical models - if (&get("TRAINING:hierarchical-rule-set")) { - my $extract_version = $VERSION; - $extract_version = $RE_USE[$STEP_LOOKUP{"TRAINING:extract-phrases"}] - if defined($STEP_LOOKUP{"TRAINING:extract-phrases"}); - my $glue_grammar_file = &get("TRAINING:glue-grammar"); - $glue_grammar_file = &versionize(&long_file_name("glue-grammar","model",""),$extract_version) - unless $glue_grammar_file; - $cmd .= "-glue-grammar-file $glue_grammar_file "; - } - if (&get("TRAINING:score-settings") && - &get("TRAINING:score-settings") =~ /SparseCountBinFeature/) { - $cmd .= "-sparse-translation-table "; - } - $cmd .= "-lm 0:3:$dir "; # dummy - $cmd .= "-config $config\n"; + $cmd = "cp $dir/model/moses.ini.$VERSION $config \n"; } # filter command |