Fix command line parsing, update for new ttable format

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3868 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
bhaddow 2011-02-03 09:55:08 +00:00
parent 0bc0ece594
commit 7651f3bb42

View File

@ -133,7 +133,7 @@ GetOptions(
"maxiter:i" => \$___MAX_MERT_ITER, "maxiter:i" => \$___MAX_MERT_ITER,
"queue-flags:s" => \$queue_flags, "queue-flags:s" => \$queue_flags,
"jobs=i" => \$___JOBS, "jobs=i" => \$___JOBS,
"decoder-flags:s" => \$___DECODER_FLAGS, "decoder-flags=s" => \$___DECODER_FLAGS,
"lambdas=s" => \$___LAMBDA, "lambdas=s" => \$___LAMBDA,
"metric=s" => \$___METRIC, "metric=s" => \$___METRIC,
"semposbleu-weights:s" => \$___SEMPOSBLEU_WEIGHTS, "semposbleu-weights:s" => \$___SEMPOSBLEU_WEIGHTS,
@ -991,7 +991,7 @@ sub scan_config {
# in which field (counting from zero) is the filename to check? # in which field (counting from zero) is the filename to check?
my %where_is_filename = ( my %where_is_filename = (
"ttable-file" => 3, "ttable-file" => 4,
"generation-file" => 3, "generation-file" => 3,
"lmodel-file" => 3, "lmodel-file" => 3,
"distortion-file" => 3, "distortion-file" => 3,
@ -1000,7 +1000,7 @@ sub scan_config {
# by default, each line of each section means one lambda, but some sections # by default, each line of each section means one lambda, but some sections
# explicitly state a custom number of lambdas # explicitly state a custom number of lambdas
my %where_is_lambda_count = ( my %where_is_lambda_count = (
"ttable-file" => 2, "ttable-file" => 3,
"generation-file" => 2, "generation-file" => 2,
"distortion-file" => 2, "distortion-file" => 2,
); );