mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-21 08:07:14 +03:00
regression tests had to adjusted to changes in verbose handling
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@801 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
f084e13a1c
commit
1d7bf5f8c2
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -50,3 +50,7 @@
|
||||
[mapping]
|
||||
T 0
|
||||
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -5,9 +5,9 @@ TRANSLATION_4=parliament wants the in two ways .
|
||||
TRANSLATION_5=only then will the european institutions to its mandate .
|
||||
LMLOAD_TIME ~ 10.00
|
||||
PTLOAD_TIME ~ 10.00
|
||||
SCORE_1 = -14.84
|
||||
SCORE_2 = -33.76
|
||||
SCORE_3 = -40.24
|
||||
SCORE_4 = -6.00
|
||||
SCORE_5 = -7.02
|
||||
SCORE_1 = -14.843
|
||||
SCORE_2 = -33.757
|
||||
SCORE_3 = -40.241
|
||||
SCORE_4 = -5.9953
|
||||
SCORE_5 = -7.0155
|
||||
TOTAL_WALLTIME ~ 23
|
||||
|
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -43,3 +43,7 @@
|
||||
[mapping]
|
||||
T 0
|
||||
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -54,3 +54,7 @@ T 0
|
||||
|
||||
[weight-i]
|
||||
1.0
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -3,7 +3,7 @@ TRANSLATION_2=this is the order of business
|
||||
TRANSLATION_3=that is the order of business
|
||||
LMLOAD_TIME ~ 10.00
|
||||
PTLOAD_TIME ~ 10.00
|
||||
SCORE_1 = -2.97
|
||||
SCORE_2 = -2.56
|
||||
SCORE_3 = -2.97
|
||||
SCORE_1 = -2.9661
|
||||
SCORE_2 = -2.5648
|
||||
SCORE_3 = -2.9661
|
||||
TOTAL_WALLTIME ~ 11
|
||||
|
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -61,3 +61,8 @@ T 1
|
||||
# word penalty
|
||||
[weight-w]
|
||||
-1
|
||||
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
TRANSLATION_1=there are various different opinions .
|
||||
LMLOAD_TIME ~ 10.00
|
||||
PTLOAD_TIME ~ 10.00
|
||||
SCORE_1 = -13.73
|
||||
SCORE_1 = -13.734
|
||||
TOTAL_WALLTIME ~ 11
|
||||
|
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -69,3 +69,7 @@ yes
|
||||
##word-drop penalty
|
||||
#[weight-e]
|
||||
#2.718
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -15,7 +15,7 @@ while (<>) {
|
||||
my $time = RegTestUtils::readTime($_);
|
||||
print "PTLOAD_TIME ~ $time\n";
|
||||
}
|
||||
next unless /^BEST HYPO:/;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
my $pscore = RegTestUtils::readHypoScore($_);
|
||||
$x++;
|
||||
print "SCORE_$x = $pscore\n";
|
||||
|
@ -61,3 +61,7 @@ T 1
|
||||
# word penalty
|
||||
[weight-w]
|
||||
-1
|
||||
|
||||
[verbose]
|
||||
2
|
||||
|
||||
|
@ -21,8 +21,8 @@ while (<>) {
|
||||
}
|
||||
}
|
||||
|
||||
next unless /^BEST HYPO:/;
|
||||
s/^BEST HYPO:\s*//;
|
||||
next unless /^BEST TRANSLATION:/;
|
||||
s/^BEST TRANSLATION:\s*//;
|
||||
s/\s*\[111+.*$//;
|
||||
$x++;
|
||||
print "TRANSLATION_$x = $_\n";
|
||||
|
Loading…
Reference in New Issue
Block a user