summaryrefslogtreecommitdiff
path: root/dtrain/test/toy_example
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
committerPatrick Simianer <p@simianer.de>2011-09-24 23:46:49 +0200
commit521e8c49ad529f17f63eca1726ba8e2f564ac290 (patch)
treec424d8a4aa1ffa9c3ef74cf6b7f1ab91ce8f948e /dtrain/test/toy_example
parentc021d22e98844f1408b8ffb30f3c8e9a3c671899 (diff)
cleaning up
Diffstat (limited to 'dtrain/test/toy_example')
-rw-r--r--dtrain/test/toy_example/cdec.ini2
-rw-r--r--dtrain/test/toy_example/dtrain.ini8
-rw-r--r--dtrain/test/toy_example/in2
3 files changed, 12 insertions, 0 deletions
diff --git a/dtrain/test/toy_example/cdec.ini b/dtrain/test/toy_example/cdec.ini
new file mode 100644
index 00000000..98b02d44
--- /dev/null
+++ b/dtrain/test/toy_example/cdec.ini
@@ -0,0 +1,2 @@
+formalism=scfg
+add_pass_through_rules=true
diff --git a/dtrain/test/toy_example/dtrain.ini b/dtrain/test/toy_example/dtrain.ini
new file mode 100644
index 00000000..0cc222e1
--- /dev/null
+++ b/dtrain/test/toy_example/dtrain.ini
@@ -0,0 +1,8 @@
+decoder_config=test/toy_example/cdec.ini
+kbest=4
+ngrams=3
+epochs=2
+input=test/toy_example/toy.in
+scorer=bleu
+output=-
+wprint=logp use_shell use_house PassThrough
diff --git a/dtrain/test/toy_example/in b/dtrain/test/toy_example/in
new file mode 100644
index 00000000..63f97158
--- /dev/null
+++ b/dtrain/test/toy_example/in
@@ -0,0 +1,2 @@
+0 ich sah ein kleines haus i saw a little house [S] ||| [NP,1] [VP,2] ||| [1] [2] ||| logp=0 __NEXT_RULE__ [NP] ||| ich ||| i ||| logp=0 __NEXT_RULE__ [NP] ||| ein [NN,1] ||| a [1] ||| logp=0 __NEXT_RULE__ [NN] ||| [JJ,1] haus ||| [1] house ||| logp=0 use_house=1 __NEXT_RULE__ [NN] ||| [JJ,1] haus ||| [1] shell ||| logp=0 use_shell=1 __NEXT_RULE__ [JJ] ||| kleines ||| small ||| logp=0 __NEXT_RULE__ [JJ] ||| kleines ||| little ||| logp=0 __NEXT_RULE__ [JJ] ||| grosses ||| big ||| logp=0 __NEXT_RULE__ [JJ] ||| grosses ||| large ||| logp=0 __NEXT_RULE__ [VP] ||| [V,1] [NP,2] ||| [1] [2] ||| logp=0 __NEXT_RULE__ [V] ||| sah ||| saw ||| logp=0 __NEXT_RULE__ [V] ||| fand ||| found ||| logp=0
+1 ich fand ein grosses haus i found a large house [S] ||| [NP,1] [VP,2] ||| [1] [2] ||| logp=0 __NEXT_RULE__ [NP] ||| ich ||| i ||| logp=0 __NEXT_RULE__ [NP] ||| ein [NN,1] ||| a [1] ||| logp=0 __NEXT_RULE__ [NN] ||| [JJ,1] haus ||| [1] house ||| logp=0 use_house=1 __NEXT_RULE__ [NN] ||| [JJ,1] haus ||| [1] shell ||| logp=0 use_shell=1 __NEXT_RULE__ [JJ] ||| kleines ||| small ||| logp=0 __NEXT_RULE__ [JJ] ||| kleines ||| little ||| logp=0 __NEXT_RULE__ [JJ] ||| grosses ||| big ||| logp=0 __NEXT_RULE__ [JJ] ||| grosses ||| large ||| logp=0 __NEXT_RULE__ [VP] ||| [V,1] [NP,2] ||| [1] [2] ||| logp=0 __NEXT_RULE__ [V] ||| sah ||| saw ||| logp=0 __NEXT_RULE__ [V] ||| fand ||| found ||| logp=0