diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-12 09:40:52 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-12 09:40:52 +0300 |
commit | 03e507f354c0dd1b1fdf3e091642bc293aa37375 (patch) | |
tree | 07d48632bc38a62b673f15929a3877bbb46dd7b1 /scripts | |
parent | a6b441dab9c325d830ae3c3a9a6fabe5aa9cc12e (diff) |
default to using lmplz for convenience and because SRILM uses tonnes of memory
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/OSM/OSM-Train.perl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/OSM/OSM-Train.perl b/scripts/OSM/OSM-Train.perl index e2b604f0b..15d5a1ed1 100755 --- a/scripts/OSM/OSM-Train.perl +++ b/scripts/OSM/OSM-Train.perl @@ -5,12 +5,14 @@ use strict; use Getopt::Long "GetOptions"; use FindBin qw($RealBin); +#print STDERR "RealBin=$RealBin\n"; print STDERR "Training OSM - Start\n".`date`; my $ORDER = 5; my $OUT_DIR = "/tmp/osm.$$"; my $___FACTOR_DELIMITER = "|"; my ($MOSES_SRC_DIR,$CORPUS_F,$CORPUS_E,$ALIGNMENT,$SRILM_DIR,$FACTOR,$LMPLZ); +$LMPLZ = "$RealBin/../../lmplz"; # utilities my $ZCAT = "gzip -cd"; @@ -28,7 +30,7 @@ die("ERROR: wrong syntax when invoking OSM-Train.perl") 'out-dir=s' => \$OUT_DIR); # check if the files are in place -die("ERROR: you need to define --corpus-e, --corpus-f, --alignment, --srilm-dir or --lmplz, and --moses-src-dir") +die("ERROR: you need to define --corpus-e, --corpus-f, --alignment, and --moses-src-dir") unless (defined($MOSES_SRC_DIR) && defined($CORPUS_F) && defined($CORPUS_E) && |