diff options
| author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-28 08:25:29 +0000 | 
|---|---|---|
| committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-28 08:25:29 +0000 | 
| commit | 94aa07e6f1a149942e709b5f3e01b51071d99402 (patch) | |
| tree | a91f3c01238f6db2ca71d5f5504eea7c2b7db62d /vest | |
| parent | 81f79e8f25fc34c40fa0fcc919e11d080dc7aa76 (diff) | |
vest bleu_weight
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@448 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
| -rwxr-xr-x | vest/dist-vest.pl | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index baf60f8e..c677ff5d 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -57,10 +57,11 @@ my $noprimary;  my $maxsim=0;  my $oraclen=0;  my $oracleb=20; +my $bleu_weight=1;  my $dirargs='';  my $density_prune;  my $usefork; -my $cpbin=0; +my $cpbin=1;  # Process command-line options  Getopt::Long::Configure("no_auto_abbrev");  if (GetOptions( @@ -81,6 +82,7 @@ if (GetOptions(          "cpbin!" => \$cpbin,  	"rand-directions=i" => \$rand_directions,  	"random_directions=i" => \$rand_directions, +        "bleu_weight=s" => \$bleu_weight,          "no-primary!" => \$noprimary,          "max-similarity=s" => \$maxsim,          "oracle-directions=i" => \$oraclen, @@ -296,7 +298,8 @@ while (1){  		$icc++;          my $nop=$noprimary?"--no_primary":"";          my $targs=$oraclen ? "--decoder_translations='$runFile'":""; -		$cmd="$MAPINPUT -w $inweights -r $dir/hgs -s $devSize -d $rand_directions --max_similarity=$maxsim --oracle_directions=$oraclen --oracle_batch=$oracleb $targs $dirargs > $dir/agenda.$im1-$opt_iter"; +        my $bwargs=$bleu_weight!=1 ? "--bleu_weight=$bleu_weight":""; +		$cmd="$MAPINPUT -w $inweights -r $dir/hgs $bwargs -s $devSize -d $rand_directions --max_similarity=$maxsim --oracle_directions=$oraclen --oracle_batch=$oracleb $targs $dirargs > $dir/agenda.$im1-$opt_iter";  		print STDERR "COMMAND:\n$cmd\n";  		$result = system($cmd);  		unless ($result == 0){ | 
