summaryrefslogtreecommitdiff
path: root/grammar
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-05-02 17:59:32 +0200
committerPatrick Simianer <p@simianer.de>2014-05-02 17:59:32 +0200
commit1503ee164c9f7fc84388f38c014747067a339f36 (patch)
tree4759b139e4346c46a503a00c7443b2af0feaf653 /grammar
parent2ff2b2a3446f0b1583b77bc5dd926473f95199f6 (diff)
first more or less functional version
Diffstat (limited to 'grammar')
-rw-r--r--grammar9
1 files changed, 9 insertions, 0 deletions
diff --git a/grammar b/grammar
new file mode 100644
index 0000000..fd4d01c
--- /dev/null
+++ b/grammar
@@ -0,0 +1,9 @@
+[S] ||| [NP,1] [VP,2] ||| [1] [2] ||| logp=0
+[NP] ||| ich ||| i ||| logp=-0.5 use_i=1.0
+[NP] ||| ein [NN,1] ||| a [1] ||| logp=0 use_a=1.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 use_small=1.0
+[JJ] ||| kleines ||| little ||| logp=0 use_little=1.0
+[VP] ||| [V,1] [NP,2] ||| [1] [2] ||| logp=0
+[V] ||| sah ||| saw ||| logp=-0.25 use_saw=1.0