diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2015-05-13 13:22:25 +0300 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2015-05-13 13:22:25 +0300 |
commit | aad59265a4ad745e20e3af549b34232b5d3e3c15 (patch) | |
tree | bf91ba862006675838a0b032b6ba3f357f3f1135 /tests | |
parent | 99ca7ce3ae0d8059f4d6bf3e99cffca0e571ff05 (diff) |
testing of hg decoding, no sparse features
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mert.hgdecode-denseonly/command | 10 | ||||
-rw-r--r-- | tests/mert.hgdecode-denseonly/data/dense.weights | 31 | ||||
-rw-r--r-- | tests/mert.hgdecode-denseonly/data/hg.gz | bin | 0 -> 148523 bytes | |||
-rwxr-xr-x | tests/mert.hgdecode-denseonly/filter-stderr | 9 | ||||
-rwxr-xr-x | tests/mert.hgdecode-denseonly/filter-stdout | 8 | ||||
-rw-r--r-- | tests/mert.hgdecode-denseonly/truth/results.txt | 3 |
6 files changed, 61 insertions, 0 deletions
diff --git a/tests/mert.hgdecode-denseonly/command b/tests/mert.hgdecode-denseonly/command new file mode 100755 index 0000000..0b3c88d --- /dev/null +++ b/tests/mert.hgdecode-denseonly/command @@ -0,0 +1,10 @@ +#! /bin/sh -w + +bin=$1; shift +testdir=$1; shift +cd $testdir + +cmd="$bin/hgdecode --hypergraph data/hg.gz -d data/dense.weights" +#echo $cmd +$cmd + diff --git a/tests/mert.hgdecode-denseonly/data/dense.weights b/tests/mert.hgdecode-denseonly/data/dense.weights new file mode 100644 index 0000000..c598eb2 --- /dev/null +++ b/tests/mert.hgdecode-denseonly/data/dense.weights @@ -0,0 +1,31 @@ +OpSequenceModel0= 0.011187 +OpSequenceModel0= -0.002797 +OpSequenceModel0= 0.002797 +OpSequenceModel0= -0.000140 +OpSequenceModel0= 0.004195 +Distortion0= 0.041952 +PhrasePenalty0= 0.027968 +WordPenalty0= -0.139841 +UnknownWordPenalty0= 1.000000 +LM0= 0.069920 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +LexicalReordering0= 0.041952 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 +TranslationModel0= 0.027968 diff --git a/tests/mert.hgdecode-denseonly/data/hg.gz b/tests/mert.hgdecode-denseonly/data/hg.gz Binary files differnew file mode 100644 index 0000000..012f9ef --- /dev/null +++ b/tests/mert.hgdecode-denseonly/data/hg.gz diff --git a/tests/mert.hgdecode-denseonly/filter-stderr b/tests/mert.hgdecode-denseonly/filter-stderr new file mode 100755 index 0000000..0a7b4a3 --- /dev/null +++ b/tests/mert.hgdecode-denseonly/filter-stderr @@ -0,0 +1,9 @@ +#!/usr/bin/perl + +$x=0; +while (<>) { + chomp; + next if !/^WEIGHTS/; + $x++; + print "STDERR_$x=$_\n"; +} diff --git a/tests/mert.hgdecode-denseonly/filter-stdout b/tests/mert.hgdecode-denseonly/filter-stdout new file mode 100755 index 0000000..1212cc8 --- /dev/null +++ b/tests/mert.hgdecode-denseonly/filter-stdout @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +$x=0; +while (<>) { + chomp; + $x++; + print "STDOUT_$x=$_\n"; +} diff --git a/tests/mert.hgdecode-denseonly/truth/results.txt b/tests/mert.hgdecode-denseonly/truth/results.txt new file mode 100644 index 0000000..9c8355e --- /dev/null +++ b/tests/mert.hgdecode-denseonly/truth/results.txt @@ -0,0 +1,3 @@ +STDOUT_1=<s> the EU matters , but also the national matters management focus since mid @-@ September four ely @-@ centre . </s> +STDERR_1=WEIGHTS OpSequenceModel0_1 -80.062 OpSequenceModel0_2 2 OpSequenceModel0_3 2 OpSequenceModel0_4 3 Distortion0 -6 PhrasePenalty0 14 WordPenalty0 -20 UnknownWordPenalty0 -100 LM0 -126.616 LexicalReordering0_1 -5.2238 LexicalReordering0_2 -0.29515 LexicalReordering0_4 -0.470004 LexicalReordering0_5 -9.28267 LexicalReordering0_6 -0.470004 LexicalReordering0_8 -0.402678 TranslationModel0_1 -54.3119 TranslationModel0_2 -62.2619 TranslationModel0_3 -23.8782 TranslationModel0_4 -25.1626 TranslationModel0_5 12.9986 TranslationModel0_6 3.99958 TranslationModel0_7 1.99979 TranslationModel0_8 1.99979 TranslationModel0_12 0.999896 TranslationModel0_13 7.99917 WT_@-@~the 1 PL_s1 11 PL_t1 10 PL_1,1 10 WT_EU~OTHER 1 PL_t2 2 PL_1,2 1 PL_t3 2 PL_s2 3 PL_2,3 2 PL_2,2 1 WT_@-@~@-@ 1 WT_OTHER~OTHER 12 WT_OTHER~, 1 WT_OTHER~but 1 WT_myƶs~also 1 TWI_the 1 WT_OTHER~@-@ 1 WT_.~. 1 +TOTAL_WALLTIME ~ 0 |