mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
cleanup regression files - consistent file extension, delete old ini files
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1344 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
b6945f91bc
commit
d48e71cb57
@ -5,7 +5,7 @@
|
||||
use strict;
|
||||
my ($results, $truth) = @ARGV;
|
||||
|
||||
my ($report, $pass, $fail) = compare_results("$results/results.dat", "$truth/results.dat");
|
||||
my ($report, $pass, $fail) = compare_results("$results/results.txt", "$truth/results.txt");
|
||||
open OUT, ">$results/Summary";
|
||||
print OUT $report;
|
||||
print $report;
|
||||
|
@ -48,7 +48,7 @@ if (!-d $results_dir) {
|
||||
##########
|
||||
|
||||
my $conf = "$test_dir/moses.ini";
|
||||
my $input = "$test_dir/to-translate";
|
||||
my $input = "$test_dir/to-translate.txt";
|
||||
|
||||
die "Cannot locate executable called $decoder\n" unless (-x $decoder);
|
||||
die "Cannot find $conf\n" unless (-f $conf);
|
||||
@ -85,17 +85,17 @@ if ($error) {
|
||||
exit 3;
|
||||
}
|
||||
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-stdout.pl $results/run.stdout > $results/results.dat");
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-stdout.pl $results/run.stdout > $results/results.txt");
|
||||
warn "filter-stdout failed!" if ($ec > 0 || $sig);
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-stderr.pl $results/run.stderr >> $results/results.dat");
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-stderr.pl $results/run.stderr >> $results/results.txt");
|
||||
warn "filter-stderr failed!" if ($ec > 0 || $sig);
|
||||
|
||||
if($NBEST > 0){
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-nbest.pl $results/run.nbest >> $results/results.dat");
|
||||
($o, $ec, $sig) = run_command("$test_dir/filter-nbest.pl $results/run.nbest >> $results/results.txt");
|
||||
warn "filter-nbest failed!" if ($ec > 0 || $sig);
|
||||
}
|
||||
|
||||
open OUT, ">>$results/results.dat";
|
||||
open OUT, ">>$results/results.txt";
|
||||
print OUT "TOTAL_WALLTIME ~ $elapsed\n";
|
||||
close OUT;
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
damit|PROADV 1.0
|
||||
ist|VSFIN 1.0 war|VSFIN 1.0 sei|VSFIN 1.0
|
||||
der|ART 1.0 die|ART 1.0 das|ART 1.0
|
||||
arbeitsplan|NN 1.0
|
||||
|
||||
damit|PROADV 1.0 dies|PROADV 1.0
|
||||
ist|VSFIN 1.0 war|VSFIN 1.0 sei|VSFIN 1.0 ist|VVFIN 1.0 war|VVFIN 1.0 sei|VVFIN 1.0
|
||||
der|ART 1.0 die|ART 1.0 das|ART 1.0 der|DT 1.0 die|DT 1.0 das|DT 1.0
|
||||
arbeitsplan|NN 1.0
|
||||
|
@ -1,10 +0,0 @@
|
||||
damit|PROADV 0.0
|
||||
ist|VSFIN 0.0 war|VSFIN 0.0 sei|VSFIN 0.0
|
||||
der|ART 0.0 die|ART 0.0 das|ART 0.0
|
||||
arbeitsplan|NN 0.0
|
||||
|
||||
damit|PROADV 0.0 dies|PROADV 0.0
|
||||
ist|VSFIN 0.0 war|VSFIN 0.0 sei|VSFIN 0.0 ist|VVFIN 0.0 war|VVFIN 0.0 sei|VVFIN 0.0
|
||||
der|ART 0.0 die|ART 0.0 das|ART 0.0 der|DT 0.0 die|DT 0.0 das|DT 0.0
|
||||
arbeitsplan|NN 0.0
|
||||
|
@ -1,63 +0,0 @@
|
||||
#########################
|
||||
### MOSES CONFIG FILE ###
|
||||
#########################
|
||||
|
||||
# input factors
|
||||
[input-factors]
|
||||
0
|
||||
1
|
||||
|
||||
# mapping steps
|
||||
[mapping]
|
||||
T 0
|
||||
G 0
|
||||
T 1
|
||||
|
||||
# translation tables: source-factors, target-factors, number of scores, file
|
||||
[ttable-file]
|
||||
0 0 5 /export/ws06osmt/regression-testing/models/multi-factor/phrase-table.0-0.gz
|
||||
1 1 5 /export/ws06osmt/regression-testing/models/multi-factor/phrase-table.1-1.gz
|
||||
|
||||
# generation models: source-factors, target-factors
|
||||
[generation-file]
|
||||
0 1 2 /export/ws06osmt/regression-testing/models/multi-factor/generation.0-1.gz
|
||||
|
||||
# language models: 0, factors, type, file
|
||||
[lmodel-file]
|
||||
0 0 3 /export/ws06osmt/models/lm/europarl.en.srilm.gz
|
||||
|
||||
# limit on how many phrase translations e for each phrase f are loaded
|
||||
# 0 = all elements loaded
|
||||
[ttable-limit]
|
||||
20
|
||||
0
|
||||
|
||||
# distortion (reordering) weight
|
||||
[weight-d]
|
||||
0.6
|
||||
|
||||
# language model weights
|
||||
[weight-l]
|
||||
0.5
|
||||
|
||||
# translation model weights
|
||||
[weight-t]
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
0.2
|
||||
|
||||
# generation model weights
|
||||
[weight-generation]
|
||||
0.3
|
||||
0
|
||||
|
||||
# word penalty
|
||||
[weight-w]
|
||||
-1
|
Loading…
Reference in New Issue
Block a user