From a71041194a4420164145c01e4c8973e30319b574 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 9 Jul 2010 18:43:50 +0000 Subject: dist-vest.pl -o 20 -m 1 for no-state tuning git-svn-id: https://ws10smt.googlecode.com/svn/trunk@207 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/dist-vest.pl | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'vest') diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index cee21014..f8f79ee5 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -70,7 +70,8 @@ if (GetOptions( "metric=s" => \$metric, "source-file=s" => \$srcFile, "weights=s" => \$initialWeights, - "workdir=s" => \$dir + "workdir=s" => \$dir, + "opt-iterations=i" => \$optimization_iters, ) == 0 || @ARGV!=1 || $help) { print_help(); exit; @@ -102,7 +103,7 @@ if ($metric =~ /^ter$|^aer$/i) { my $refs_comma_sep = get_comma_sep_refs($refFiles); -unless ($dir){ +unless ($dir){ $dir = "vest"; } unless ($dir =~ /^\//){ # convert relative path to absolute path @@ -127,7 +128,7 @@ sub cleanup { exit 1; }; $SIG{INT} = "cleanup"; -$SIG{TERM} = "cleanup"; +$SIG{TERM} = "cleanup"; $SIG{HUP} = "cleanup"; my $decoderBase = `basename $decoder`; chomp $decoderBase; @@ -221,7 +222,7 @@ while (1){ print STDERR "\nREACHED STOPPING CRITERION: Maximum iterations\n"; last; } - + # run optimizer print STDERR `date`; my $mergeLog="$logdir/prune-merge.log.$iteration"; @@ -496,12 +497,12 @@ sub print_help { Usage: $executable [options] - $executable [options] - Runs a complete MERT optimization and test set decoding, using + $executable [options] + Runs a complete MERT optimization and test set decoding, using the decoder configuration in ini file. Note that many of the - options have default values that are inferred automatically + options have default values that are inferred automatically based on certain conventions. For details, refer to descriptions - of the options --decoder, --weights, and --workdir. + of the options --decoder, --weights, and --workdir. Options: @@ -514,19 +515,19 @@ Options: --help Print this message and exit. - --iteration + --iteration Starting iteration number. If not specified, defaults to 1. - --max-iterations + --max-iterations Maximum number of iterations to run. If not specified, defaults to 10. --pmem Amount of physical memory requested for parallel decoding jobs. - --ref-files - Dev set ref files. This option takes only a single string argument. - To use multiple files (including file globbing), this argument should + --ref-files + Dev set ref files. This option takes only a single string argument. + To use multiple files (including file globbing), this argument should be quoted. --metric @@ -541,19 +542,19 @@ Options: MERT will attempt to optimize along all of the principle directions, set this parameter to explore other directions. Defaults to 5. - --source-file + --source-file Dev set source file. - --weights + --weights A file specifying initial feature weights. The format is FeatureName_1 value1 FeatureName_2 value2 - --workdir + --workdir Directory for intermediate and output files. If not specified, the - name is derived from the ini filename. Assuming that the ini + name is derived from the ini filename. Assuming that the ini filename begins with the decoder name and ends with ini, the default - name of the working directory is inferred from the middle part of + name of the working directory is inferred from the middle part of the filename. E.g. an ini file named decoder.foo.ini would have a default working directory name foo. -- cgit v1.2.3