mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
output bleu for multi-bleu hack
This commit is contained in:
parent
d006c6ef8c
commit
2acb590394
@ -20,6 +20,9 @@ $TYPE{"bolt-bleu-c"} = "BLEU-c";
|
||||
$TYPE{"bolt-ter"} = "TER";
|
||||
$TYPE{"bolt-ter-c"} = "TER-c";
|
||||
|
||||
$TYPE{"multi-bleu-detok"} = "BLEU";
|
||||
$TYPE{"multi-bleu-c-detok"}= "BLEU-c";
|
||||
|
||||
my %SCORE;
|
||||
my %AVERAGE;
|
||||
foreach (@ARGV) {
|
||||
@ -59,7 +62,8 @@ sub process {
|
||||
elsif ($type eq 'ibm-bleu' || $type eq 'ibm-bleu-c') {
|
||||
$SCORE{$set} .= &extract_ibm_bleu($file,$type)." ";
|
||||
}
|
||||
elsif ($type eq 'multi-bleu' || $type eq 'multi-bleu-c') {
|
||||
elsif ($type eq 'multi-bleu' || $type eq 'multi-bleu-c'
|
||||
|| $type eq 'multi-bleu-detok' || $type eq 'multi-bleu-c-detok') {
|
||||
$SCORE{$set} .= &extract_multi_bleu($file,$type)." ";
|
||||
}
|
||||
elsif ($type eq 'meteor') {
|
||||
|
Loading…
Reference in New Issue
Block a user