yet another clarification of messages

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@467 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bojar 2006-08-02 20:06:04 +00:00
parent 3de34474ee
commit 32e73c3785
2 changed files with 10 additions and 9 deletions

View File

@ -62,14 +62,8 @@ sub init(){
'config=s'=>\$cfgfile
) or exit(1);
print STDERR "queueparameters: $queueparameters\n";
$mosesparameters="@ARGV -config $cfgfile -inputtype $inputtype";
getNbestParameters();
version() if $version;
usage() if $help;
print_parameters() if $dbg;
}
@ -126,8 +120,6 @@ sub print_parameters(){
print STDERR "Inputtype: confusion network\n" if $inputtype == 1;
print STDERR "parameters directly passed to Moses: $mosesparameters\n";
exit(1);
}
#get parameters for nbest computation from configuration file
@ -207,6 +199,10 @@ sub concatenate_1best(){
init();
version() if $version;
usage() if $help;
if (!defined $orifile || !defined $mosescmd || ! defined $cfgfile) {
print STDERR "Please specify -inputfile, -decoder and -config\n";
usage();
@ -230,6 +226,11 @@ if (! -e $cfgfile) {
usage();
}
print_parameters(); # so that people know
exit(1) if $dbg; # debug mode: just print and do not run
#splitting test file in several parts
#$decimal="-d"; #split does not accept this options (on MAC OS)
$decimal="";

View File

@ -644,7 +644,7 @@ sub create_config {
print OUT "# MERT optimized configuration\n";
print OUT "# decoder $___DECODER\n";
print OUT "# BLEU $bleu_achieved on dev $___DEV_F\n";
print OUT "# $iteration iterations\n";
print OUT "# We were before running iteration $iteration\n";
print OUT "# finished ".`date`;
my $line = <INI>;
while(1) {