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-07 19:14:12 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-06-07 19:14:12 +0400
commit5b7a9d53754ccec44ca0b5885ba2c7fc50a40730 (patch)
treed12b124f2a1a35a2f9ad5727806eb3f8b2991a89 /scripts/ems
parente9c33669eb6f8b5e474a7d7c113fcd748114c576 (diff)
warning - undefined variablr
Diffstat (limited to 'scripts/ems')
-rwxr-xr-xscripts/ems/experiment.perl10
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";