diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2017-05-02 12:57:00 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2017-05-02 12:57:00 +0300 |
commit | 101e52da60a653b3d62dfff75187a657fcf60a94 (patch) | |
tree | f6bc093f4647861a181bf65e8dc50afc4935d545 | |
parent | 6ca7ba5de1ea93dd7ee04f3060614d5152a29c2d (diff) |
check for executables before running
-rwxr-xr-x | scripts/generic/binarize4moses2.perl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/generic/binarize4moses2.perl b/scripts/generic/binarize4moses2.perl index a703cc241..46e30f43d 100755 --- a/scripts/generic/binarize4moses2.perl +++ b/scripts/generic/binarize4moses2.perl @@ -31,6 +31,9 @@ die("ERROR: please set --phrase-table") unless defined($ptPath); #die("ERROR: please set --lex-ro") unless defined($lexRoPath); die("ERROR: please set --output-dir") unless defined($outPath); #die("ERROR: please set --num-lex-scores") unless defined($numLexScores); +die("ERROR: compile contrib/sigtest-filter") if (!-X "$mosesDir/contrib/sigtest-filter/filter-pt"); +die("ERROR: compile with bjam --with-cmph") if (!-X "$mosesDir/bin/processLexicalTableMin"); +die("ERROR: compile with bjam --with-xmlrpc-c") if (!-X "$mosesDir/bin/CreateProbingPT2"); my $cmd; |