moses-smt/mosesdecoder — pull request #4 by Jehan (2011-11-27 10:24:31+00:00)
Title: Recaser training script improved with --help output and better error handling

2 ameliorations on train-recaser.perl:

1/ --help output added, with all option descriptions and also all steps involved in training (so that it means something to use --first-step and --last-step.
This implies also better handling when mandatory options are not set (usage is shown as well in these cases).

2/ The current script has the bad habit to continue running no matter what, even when a major step implying a third party script, failed (for whatever reason). This makes it very hard to debug when there is a problem.
I made so that after the 2 calls are made (during language model training, then recaser model training), the script ends with a relevant error message displayed, for facilitated investigation.