diff options
author | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-02 16:21:17 +0400 |
---|---|---|
committer | bojar <bojar@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-08-02 16:21:17 +0400 |
commit | 763bb726426ed84417437cf4559cd7e4315aaf01 (patch) | |
tree | b07e9ef7b862d675394c9637921f7d8f0180885e | |
parent | 8568c3bedaa1bf9640188969f5a89e84bd255f2a (diff) |
clarification
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@460 1f5c12ca-751b-0410-a591-d2e778427230
-rwxr-xr-x | scripts/generic/moses-parallel.pl | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/scripts/generic/moses-parallel.pl b/scripts/generic/moses-parallel.pl index ca77d4405..8db536117 100755 --- a/scripts/generic/moses-parallel.pl +++ b/scripts/generic/moses-parallel.pl @@ -92,17 +92,19 @@ sub version(){ #usage sub usage(){ print STDERR "moses-parallel.pl [parallel-options] [moses-options]\n"; + print STDERR "Options marked (*) are required.\n"; print STDERR "Parallel options:\n"; - print STDERR "-decoder <file> Moses decoder to use\n"; - print STDERR "-jobs <N> number of required jobs\n"; - print STDERR "-qsub-prefix <string> name for sumbitte jobs\n"; - print STDERR "-queue-parameters <string> specific requirements for queue\n"; - print STDERR "-debug debug\n"; - print STDERR "-version print version of the script\n"; - print STDERR "-help this help\n"; + print STDERR "* -decoder <file> Moses decoder to use\n"; + print STDERR " -inputfile <file> the input text to translate\n"; + print STDERR "* -jobs <N> number of required jobs\n"; + print STDERR " -qsub-prefix <string> name for sumbitte jobs\n"; + print STDERR " -queue-parameters <string> specific requirements for queue\n"; + print STDERR " -debug debug\n"; + print STDERR " -version print version of the script\n"; + print STDERR " -help this help\n"; print STDERR "Moses options:\n"; - print STDERR "-inputtype <0|1> 0 for text, 1 for confusion networks\n"; - print STDERR "-config <cfgfile> configuration file\n"; + print STDERR " -inputtype <0|1> 0 for text, 1 for confusion networks\n"; + print STDERR "* -config <cfgfile> configuration file\n"; print STDERR "any other options are passed to Moses apart from the inputfile (-input-file)\n"; print STDERR " which is parsed to manage with splits\n"; exit(1); @@ -205,6 +207,11 @@ sub concatenate_1best(){ init(); +if (!defined $orifile || !defined $mosescmd || ! defined $cfgfile) { + print STDERR "Please specify -inputfile, -decoder and -config\n"; + usage(); +} + #checking if inputfile exists if (! -e ${orifile} ){ print STDERR "Inputfile ($orifile) does not exists\n"; @@ -343,6 +350,7 @@ sub check_exit_status(){ } sub kill_all_and_quit(){ + print STDERR "Got interrupt or something failed.\n"; print STDERR "kill_all_and_quit\n"; foreach $id (@sgepids){ print STDERR "qdel $id\n"; |