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-06 22:17:21 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-06-06 22:17:21 +0400
commit0b59bee21ca284c5225149c46f43430fccb4d854 (patch)
treec5b2b920c76e1908f40cc3a07279bf95e6d69e0d /scripts/ems
parent797b36a73a81d9ab154862328fe6de3a8b85b2ad (diff)
sa extraction works
Diffstat (limited to 'scripts/ems')
-rwxr-xr-xscripts/ems/experiment.perl14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl
index b9d025d65..7774a8010 100755
--- a/scripts/ems/experiment.perl
+++ b/scripts/ems/experiment.perl
@@ -2204,9 +2204,17 @@ sub define_tuningevaluation_filter {
$cmd .= "-config $config\n";
# filter command
- $cmd .= "$scripts/training/filter-model-given-input.pl";
- $cmd .= " $filter_dir $config $input_filter $settings\n";
-
+ my $sa_exec_dir = &check_and_get("TRAINING:suffix-array");
+ if ($sa_exec_dir eq "") {
+ # 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";