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 20:53:52 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-06-07 20:53:52 +0400
commit21c80f4fbe4f1fa90a13adb0965b889d6a05d673 (patch)
tree707147e33b7ac525069be88c41b531368624df76 /scripts/training
parent5b7a9d53754ccec44ca0b5885ba2c7fc50a40730 (diff)
pass number of ff from experiment.perl to train-model.perl for suffix array only
Diffstat (limited to 'scripts/training')
-rwxr-xr-xscripts/training/train-model.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/training/train-model.perl b/scripts/training/train-model.perl
index 77569256d..0ac2621f3 100755
--- a/scripts/training/train-model.perl
+++ b/scripts/training/train-model.perl
@@ -1851,6 +1851,10 @@ sub create_ini {
my @toks = split(/:/,$file);
$file = $toks[0];
$phrase_table_impl = $toks[1];
+
+ if (@toks == 3) {
+ $basic_weight_count = $toks[2];
+ }
}
print INI "$phrase_table_impl $ff $basic_weight_count $file\n";