summaryrefslogtreecommitdiff
path: root/dtrain/test/cdec_toy
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
commit5e1ab3481551607f1c2a10027049044cd41f78ab (patch)
treeb89cc3587f2e5d34f14f4b977f8a0909f62fe8e1 /dtrain/test/cdec_toy
parent5584f300821e20369c25343222cd0e8faa393523 (diff)
cleaning up
Diffstat (limited to 'dtrain/test/cdec_toy')
-rw-r--r--dtrain/test/cdec_toy/cdec.ini3
-rw-r--r--dtrain/test/cdec_toy/grammar12
-rw-r--r--dtrain/test/cdec_toy/in1
-rw-r--r--dtrain/test/cdec_toy/weights2
4 files changed, 18 insertions, 0 deletions
diff --git a/dtrain/test/cdec_toy/cdec.ini b/dtrain/test/cdec_toy/cdec.ini
new file mode 100644
index 00000000..3a6bab68
--- /dev/null
+++ b/dtrain/test/cdec_toy/cdec.ini
@@ -0,0 +1,3 @@
+formalism=scfg
+grammar=../dtrain/test/toy_cdec/grammar
+add_pass_through_rules=true
diff --git a/dtrain/test/cdec_toy/grammar b/dtrain/test/cdec_toy/grammar
new file mode 100644
index 00000000..aeed75ef
--- /dev/null
+++ b/dtrain/test/cdec_toy/grammar
@@ -0,0 +1,12 @@
+[S] ||| [NP,1] [VP,2] ||| [1] [2] ||| logp=0
+[NP] ||| ich ||| i ||| logp=0
+[NP] ||| ein [NN,1] ||| a [1] ||| logp=0
+[NN] ||| [JJ,1] haus ||| [1] house ||| logp=0 use_house=1
+[NN] ||| [JJ,1] haus ||| [1] shell ||| logp=0 use_shell=1
+[JJ] ||| kleines ||| small ||| logp=0
+[JJ] ||| kleines ||| little ||| logp=0
+[JJ] ||| grosses ||| big ||| logp=0
+[JJ] ||| grosses ||| large ||| logp=0
+[VP] ||| [V,1] [NP,2] ||| [1] [2] ||| logp=0
+[V] ||| sah ||| saw ||| logp=0
+[V] ||| fand ||| found ||| logp=0
diff --git a/dtrain/test/cdec_toy/in b/dtrain/test/cdec_toy/in
new file mode 100644
index 00000000..e6df9275
--- /dev/null
+++ b/dtrain/test/cdec_toy/in
@@ -0,0 +1 @@
+ich sah ein kleines haus
diff --git a/dtrain/test/cdec_toy/weights b/dtrain/test/cdec_toy/weights
new file mode 100644
index 00000000..10d7ed83
--- /dev/null
+++ b/dtrain/test/cdec_toy/weights
@@ -0,0 +1,2 @@
+logp 1
+use_shell 1