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
commit47109aa0c10f9d1818759b588b7504b5073fc591 (patch)
tree6b5c4ca3c8c0e5fe22871f34d49b07259a5e3d57 /vest
parent76272dba984264776ca4d68d3a50a032c48aa606 (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 {