diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-07 19:14:12 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-07 19:14:12 +0400 |
commit | 5b7a9d53754ccec44ca0b5885ba2c7fc50a40730 (patch) | |
tree | d12b124f2a1a35a2f9ad5727806eb3f8b2991a89 /scripts/ems | |
parent | e9c33669eb6f8b5e474a7d7c113fcd748114c576 (diff) |
warning - undefined variablr
Diffstat (limited to 'scripts/ems')
-rwxr-xr-x | scripts/ems/experiment.perl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl index cb356c41d..204f0c7e1 100755 --- a/scripts/ems/experiment.perl +++ b/scripts/ems/experiment.perl @@ -2237,15 +2237,15 @@ sub define_tuningevaluation_filter { # filter command my $sa_exec_dir = &get("TRAINING:suffix-array"); - if ($sa_exec_dir eq "") { + if ($sa_exec_dir) { + # suffix array + $cmd .= "$scripts/training/wrappers/adam-suffix-array/suffix-array-extract.sh $sa_exec_dir $phrase_translation_table $input_filter $filter_dir \n"; + } + else { # normal phrase table $cmd .= "$scripts/training/filter-model-given-input.pl"; $cmd .= " $filter_dir $config $input_filter $settings\n"; } - else { - # suffix array - $cmd .= "$scripts/training/wrappers/adam-suffix-array/suffix-array-extract.sh $sa_exec_dir $phrase_translation_table $input_filter $filter_dir \n"; - } # clean-up $cmd .= "rm $config"; |