summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-28 08:33:20 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-28 08:33:20 +0000
commit94f4d7d321d43a37e8bfb10c25db8459dbe12de8 (patch)
tree81e08404adc779cfaa9e36191b9b52ee8845c151 /vest
parent7cfe224bb89f72d0298cf4d491c3a871a13964f4 (diff)
vest: pass refs to generate when using oracle; expect gzipped decoder output
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@450 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rwxr-xr-xvest/dist-vest.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl
index c677ff5d..338ebb13 100755
--- a/vest/dist-vest.pl
+++ b/vest/dist-vest.pl
@@ -130,7 +130,7 @@ if ($metric =~ /^ter$|^aer$/i) {
$DIR_FLAG = '';
}
-my $refs_comma_sep = get_comma_sep_refs($refFiles);
+my $refs_comma_sep = get_comma_sep_refs('r',$refFiles);
unless ($dir){
$dir = "vest";
@@ -297,7 +297,7 @@ while (1){
print STDERR `date`;
$icc++;
my $nop=$noprimary?"--no_primary":"";
- my $targs=$oraclen ? "--decoder_translations='$runFile'":"";
+ my $targs=$oraclen ? "--decoder_translations='$runFile.gz' ".get_comma_sep_refs('-references',$refFiles):"";
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";
@@ -473,11 +473,11 @@ sub get_lines {
}
sub get_comma_sep_refs {
- my ($p) = @_;
+ my ($r,$p) = @_;
my $o = `echo $p`;
chomp $o;
my @files = split /\s+/, $o;
- return "-r " . join(' -r ', @files);
+ return "-$r " . join(' -$r ', @files);
}
sub read_weights_file {