Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/moses-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-08-05 19:36:28 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-05 19:36:28 +0400
commitfc6affbb0eca8359258fe64cf02977e5158b8159 (patch)
tree5c04debdf22cae39078d1facedd294922edccce7 /tests
parent8ad97eee0ccaa66d6bf7c544d342b217fe3c83db (diff)
defer partial-translation tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/phrase.continue-partial-translation.oldformat/filter-stderr.pl22
-rwxr-xr-xtests/phrase.continue-partial-translation.oldformat/filter-stdout.pl7
-rw-r--r--tests/phrase.continue-partial-translation.oldformat/moses.ini51
-rw-r--r--tests/phrase.continue-partial-translation.oldformat/to-translate.txt6
-rw-r--r--tests/phrase.continue-partial-translation.oldformat/truth/results.txt13
-rwxr-xr-xtests/phrase.continue-partial-translation/filter-stderr.pl22
-rwxr-xr-xtests/phrase.continue-partial-translation/filter-stdout.pl7
-rw-r--r--tests/phrase.continue-partial-translation/moses.ini34
-rw-r--r--tests/phrase.continue-partial-translation/to-translate.txt6
-rw-r--r--tests/phrase.continue-partial-translation/truth/results.txt13
10 files changed, 0 insertions, 181 deletions
diff --git a/tests/phrase.continue-partial-translation.oldformat/filter-stderr.pl b/tests/phrase.continue-partial-translation.oldformat/filter-stderr.pl
deleted file mode 100755
index 2f6e176..0000000
--- a/tests/phrase.continue-partial-translation.oldformat/filter-stderr.pl
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/perl
-
-BEGIN { use Cwd qw/ abs_path /; use File::Basename; $script_dir = dirname(abs_path($0)); push @INC, "$script_dir/../perllib"; }
-use RegTestUtils;
-
-$x=0;
-while (<>) {
- chomp;
-
- if (/^Finished loading LanguageModels/) {
- my $time = RegTestUtils::readTime($_);
- print "LMLOAD_TIME ~ $time\n";
- }
- if (/^Finished loading phrase tables/) {
- my $time = RegTestUtils::readTime($_);
- print "PTLOAD_TIME ~ $time\n";
- }
- next unless /^BEST TRANSLATION:/;
- my $pscore = RegTestUtils::readHypoScore($_);
- $x++;
- print "SCORE_$x = $pscore\n";
-}
diff --git a/tests/phrase.continue-partial-translation.oldformat/filter-stdout.pl b/tests/phrase.continue-partial-translation.oldformat/filter-stdout.pl
deleted file mode 100755
index 476ddf6..0000000
--- a/tests/phrase.continue-partial-translation.oldformat/filter-stdout.pl
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/perl
-$x=0;
-while (<>) {
- chomp;
- $x++;
- print "TRANSLATION_$x=$_\n";
-}
diff --git a/tests/phrase.continue-partial-translation.oldformat/moses.ini b/tests/phrase.continue-partial-translation.oldformat/moses.ini
deleted file mode 100644
index 86e99bb..0000000
--- a/tests/phrase.continue-partial-translation.oldformat/moses.ini
+++ /dev/null
@@ -1,51 +0,0 @@
-# moses.ini for regression test
-
-[ttable-file]
-0 0 0 5 ${MODEL_PATH}/basic-surface-only/phrase-table.gz
-
-# language model
-[lmodel-file]
-8 0 3 ${LM_PATH}/europarl.en.srilm.gz
-# limit on how many phrase translations e for each phrase f are loaded
-[ttable-limit]
-#ttable element load limit 0 = all elements loaded
-20
-
-# distortion (reordering) weight
-[weight-d]
-0.141806519223522
-
-# language model weight
-[weight-l]
-1.42658800199951
-
-# translation model weight (phrase translation, lexical weighting)
-[weight-t]
-0.00402447059454402
-0.0685647475075862
-0.294089113124688
-0.0328320356515851
--0.0426081987467227
-
-# word penalty
-[weight-w]
--0.273416114951401
-
-[distortion-limit]
-4
-
-[beam-threshold]
-0.03
-
-[input-factors]
-0
-
-[mapping]
-T 0
-
-
-[continue-partial-translation]
-1
-
-[verbose]
-2
diff --git a/tests/phrase.continue-partial-translation.oldformat/to-translate.txt b/tests/phrase.continue-partial-translation.oldformat/to-translate.txt
deleted file mode 100644
index 9283512..0000000
--- a/tests/phrase.continue-partial-translation.oldformat/to-translate.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-das
-keep ||| 00000 ||| das
-keep ||| 10000 ||| behalten das
-test ||| 0000 ||| raz dva tri ctyri
-two ||| 0100 ||| raz dva tri ctyri
-three ||| 0010 ||| raz dva tri ctyri
diff --git a/tests/phrase.continue-partial-translation.oldformat/truth/results.txt b/tests/phrase.continue-partial-translation.oldformat/truth/results.txt
deleted file mode 100644
index d9d3626..0000000
--- a/tests/phrase.continue-partial-translation.oldformat/truth/results.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-TRANSLATION_1='
-TRANSLATION_2=keep the
-TRANSLATION_3=keep the
-TRANSLATION_4=test raz dva tri ctyri
-TRANSLATION_5=two raz tri ctyri
-TRANSLATION_6=three raz dva ctyri
-SCORE_1 = -17.279
-SCORE_2 = -19.343
-SCORE_3 = -19.343
-SCORE_4 = -1731.443
-SCORE_5 = -1303.374
-SCORE_6 = -1303.374
-TOTAL_WALLTIME ~ 8
diff --git a/tests/phrase.continue-partial-translation/filter-stderr.pl b/tests/phrase.continue-partial-translation/filter-stderr.pl
deleted file mode 100755
index 2f6e176..0000000
--- a/tests/phrase.continue-partial-translation/filter-stderr.pl
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/perl
-
-BEGIN { use Cwd qw/ abs_path /; use File::Basename; $script_dir = dirname(abs_path($0)); push @INC, "$script_dir/../perllib"; }
-use RegTestUtils;
-
-$x=0;
-while (<>) {
- chomp;
-
- if (/^Finished loading LanguageModels/) {
- my $time = RegTestUtils::readTime($_);
- print "LMLOAD_TIME ~ $time\n";
- }
- if (/^Finished loading phrase tables/) {
- my $time = RegTestUtils::readTime($_);
- print "PTLOAD_TIME ~ $time\n";
- }
- next unless /^BEST TRANSLATION:/;
- my $pscore = RegTestUtils::readHypoScore($_);
- $x++;
- print "SCORE_$x = $pscore\n";
-}
diff --git a/tests/phrase.continue-partial-translation/filter-stdout.pl b/tests/phrase.continue-partial-translation/filter-stdout.pl
deleted file mode 100755
index 476ddf6..0000000
--- a/tests/phrase.continue-partial-translation/filter-stdout.pl
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/perl
-$x=0;
-while (<>) {
- chomp;
- $x++;
- print "TRANSLATION_$x=$_\n";
-}
diff --git a/tests/phrase.continue-partial-translation/moses.ini b/tests/phrase.continue-partial-translation/moses.ini
deleted file mode 100644
index 621e327..0000000
--- a/tests/phrase.continue-partial-translation/moses.ini
+++ /dev/null
@@ -1,34 +0,0 @@
-# moses.ini for regression test
-[distortion-limit]
-4
-
-[beam-threshold]
-0.03
-
-[input-factors]
-0
-
-[mapping]
-T 0
-
-
-[continue-partial-translation]
-1
-
-[verbose]
-2
-
-
-[feature]
-KENLM factor=0 order=3 num-features=1 lazyken=0 path=${LM_PATH}/europarl.en.srilm.gz
-Distortion
-WordPenalty
-UnknownWordPenalty
-PhraseDictionaryMemory input-factor=0 output-factor=0 path=${MODEL_PATH}/basic-surface-only/phrase-table.gz num-features=5 table-limit=20
-
-[weight]
-WordPenalty0= -0.273416
-KENLM0= 1.42659
-Distortion0= 0.141807
-PhraseDictionaryMemory0= 0.00402447 0.0685648 0.294089 0.032832 -0.0426082
-
diff --git a/tests/phrase.continue-partial-translation/to-translate.txt b/tests/phrase.continue-partial-translation/to-translate.txt
deleted file mode 100644
index 9283512..0000000
--- a/tests/phrase.continue-partial-translation/to-translate.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-das
-keep ||| 00000 ||| das
-keep ||| 10000 ||| behalten das
-test ||| 0000 ||| raz dva tri ctyri
-two ||| 0100 ||| raz dva tri ctyri
-three ||| 0010 ||| raz dva tri ctyri
diff --git a/tests/phrase.continue-partial-translation/truth/results.txt b/tests/phrase.continue-partial-translation/truth/results.txt
deleted file mode 100644
index d9d3626..0000000
--- a/tests/phrase.continue-partial-translation/truth/results.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-TRANSLATION_1='
-TRANSLATION_2=keep the
-TRANSLATION_3=keep the
-TRANSLATION_4=test raz dva tri ctyri
-TRANSLATION_5=two raz tri ctyri
-TRANSLATION_6=three raz dva ctyri
-SCORE_1 = -17.279
-SCORE_2 = -19.343
-SCORE_3 = -19.343
-SCORE_4 = -1731.443
-SCORE_5 = -1303.374
-SCORE_6 = -1303.374
-TOTAL_WALLTIME ~ 8