summaryrefslogtreecommitdiff
path: root/example/toy
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-09-20 16:26:28 +0100
committerPatrick Simianer <p@simianer.de>2014-09-20 16:26:28 +0100
commitb38cea6008d0fc5fc484df1bbe3f952aea61cf2d (patch)
tree9310ac75c42891246f8b60d56805d133672597f2 /example/toy
parent8949948243cb709e65ec172b3014c9e6a3181ed3 (diff)
example
Diffstat (limited to 'example/toy')
-rw-r--r--example/toy/cdec.ini5
-rw-r--r--example/toy/toy-cdec.json33
-rw-r--r--example/toy/toy-test.json45
-rw-r--r--example/toy/toy.json28
4 files changed, 0 insertions, 111 deletions
diff --git a/example/toy/cdec.ini b/example/toy/cdec.ini
deleted file mode 100644
index f12de54..0000000
--- a/example/toy/cdec.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-formalism=scfg
-intersection_strategy=full
-grammar=grammar
-#grammar=grammar-test
-#add_pass_through_rules=true
diff --git a/example/toy/toy-cdec.json b/example/toy/toy-cdec.json
deleted file mode 100644
index c58c249..0000000
--- a/example/toy/toy-cdec.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
-"weights":{
-"logp":2.0, "use_shell":1.0
-},
-"nodes":
-[
-{ "id":-1, "cat":"root", "span":[-1,-1] },
-{ "id":0, "cat":"NP", "span":[0,1] },
-{ "id":1, "cat":"V", "span":[1,2] },
-{ "id":2, "cat":"JJ", "span":[3,4] },
-{ "id":3, "cat":"NN", "span":[3,5] },
-{ "id":4, "cat":"NP", "span":[2,5] },
-{ "id":5, "cat":"VP", "span":[1,5] },
-{ "id":6, "cat":"S", "span":[0,5] },
-{ "id":7, "cat":"Goal", "span":[0,5] }
-],
-"edges":
-[
-{"head":0, "rule":"[NP] ||| ich ||| i ||| logp=-0.5 use_i=1.0", "tails":[ -1 ], "f":{"logp":-0.5, "use_i":1.0}, "weight":0.367879441171 },
-{"head":1, "rule":"[V] ||| sah ||| saw ||| logp=-0.25 use_saw=1.0", "tails":[ -1 ], "f":{"logp":-0.25, "use_saw":1.0}, "weight":0.606530659713 },
-{"head":2, "rule":"[JJ] ||| kleines ||| small ||| logp=0.0 use_small=1.0", "tails":[ -1 ], "f":{"logp":0.0, "use_small":1.0}, "weight":1.0 },
-{"head":2, "rule":"[JJ] ||| kleines ||| little ||| logp=0.0 use_little=1.0", "tails":[ -1 ], "f":{"logp":0.0, "use_little":1.0}, "weight":1.0 },
-{"head":3, "rule":"[NN] ||| kleines haus ||| small house ||| logp=0.0 use_house=1.0", "tails":[ -1 ], "f":{"logp":0.0, "use_house":1.0}, "weight":1.0 },
-{"head":3, "rule":"[NN] ||| kleines haus ||| little house ||| logp=0.0 use_house=1.0", "tails":[ -1 ], "f":{"logp":0.0, "use_house":1.0}, "weight":1.0 },
-{"head":3, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] house ||| logp=0.0 use_house=1.0", "tails":[ 2 ], "f":{"logp":0.0, "use_house":1.0}, "weight":1.0 },
-{"head":3, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] shell ||| logp=0.0 use_shell=1.0", "tails":[ 2 ], "f":{"logp":0.0, "use_shell":1.0}, "weight":2.71828182846 },
-{"head":4, "rule":"[NP] ||| ein [NN,1] ||| a [NN,1] ||| logp=0.0 use_a=1.0", "tails":[ 3 ], "f":{"logp":0.0, "use_a":1.0}, "weight":1.0 },
-{"head":5, "rule":"[VP] ||| [V,1] [NP,2] ||| [V,1] [NP,2] ||| logp=0.0", "tails":[ 1,4 ], "f":{"logp":0.0}, "weight":1.0 },
-{"head":6, "rule":"[S] ||| [NP,1] [VP,2] ||| [VP,1] [NP,2] ||| logp=0.0", "tails":[ 0,5 ], "f":{"logp":0.0}, "weight":1.0 },
-{"head":7, "rule":"[Goal] ||| [S,1] ||| [S,1] ||| ", "tails":[ 6 ], "f":{}, "weight":1.0 }
-]
-}
-
diff --git a/example/toy/toy-test.json b/example/toy/toy-test.json
deleted file mode 100644
index 979ed05..0000000
--- a/example/toy/toy-test.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-"weights":{"logp":2.0,"use_house":0.0,"use_shell":1.0},
-"nodes":
-[
-{ "id":-1, "cat":"root", "span":[-1,-1] },
-{ "id":0, "cat":"NP", "span":[0,1] },
-{ "id":1, "cat":"V", "span":[1,2] },
-{ "id":2, "cat":"JJ", "span":[3,4] },
-{ "id":3, "cat":"I", "span":[4,5] },
-{ "id":4, "cat":"Z", "span":[4,5] },
-{ "id":5, "cat":"NN", "span":[3,5] },
-{ "id":6, "cat":"H", "span":[3,5] },
-{ "id":7, "cat":"JJ", "span":[3,5] },
-{ "id":8, "cat":"NP", "span":[2,5] },
-{ "id":9, "cat":"S", "span":[0,4] },
-{ "id":10, "cat":"VP", "span":[1,5] },
-{ "id":11, "cat":"S", "span":[0,5] },
-{ "id":12, "cat":"Q", "span":[0,5] },
-{ "id":13, "cat":"C", "span":[0,5] },
-{ "id":14, "cat":"B", "span":[0,5] }
-],
-"edges":
-[
-{ "head":0, "rule":"[NP] ||| ich ||| i", "tails":[-1], "f":{"logp":-0.5,"use_i":1.0} },
-{ "head":1, "rule":"[V] ||| sah ||| saw", "tails":[-1], "f":{"logp":-0.25,"use_saw":1.0} },
-{ "head":2, "rule":"[JJ] ||| kleines ||| small", "tails":[-1], "f":{"logp":0.0,"use_small":1.0} },
-{ "head":2, "rule":"[JJ] ||| kleines ||| little", "tails":[-1], "f":{"logp":0.0,"use_little":1.0} },
-{ "head":3, "rule":"[I] ||| haus ||| house", "tails":[-1], "f":{"logp":0.0} },
-{ "head":4, "rule":"[Z] ||| [I,1] ||| [I,1]", "tails":[3], "f":{"logp":0.0} },
-{ "head":5, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] shell", "tails":[2], "f":{"logp":0.0,"use_shell":1.0} },
-{ "head":5, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] house", "tails":[2], "f":{"logp":0.0,"use_house":1.0} },
-{ "head":6, "rule":"[H] ||| kleines [Z,1] ||| small [1]", "tails":[4], "f":{"logp":0.0} },
-{ "head":7, "rule":"[JJ] ||| [H,1] ||| [H,1]", "tails":[6], "f":{"logp":0.0} },
-{ "head":8, "rule":"[NP] ||| ein [NN,1] ||| a [NN,1]", "tails":[5], "f":{"logp":0.0,"use_a":1.0} },
-{ "head":9, "rule":"[S] ||| ich sah ein [JJ,1] ||| i saw a [JJ,1]", "tails":[2], "f":{"logp":0.0} },
-{ "head":10, "rule":"[VP] ||| [V,1] [NP,2] ||| [V,1] [NP,2]", "tails":[1, 8], "f":{"logp":0.0} },
-{ "head":11, "rule":"[S] ||| ich sah ein kleines haus ||| i saw a small house", "tails":[-1], "f":{"logp":0.0} },
-{ "head":12, "rule":"[Q] ||| [NP,1] [VP,2] ||| [NP,1] [VP,2]", "tails":[0, 10], "f":{"logp":0.0} },
-{ "head":11, "rule":"[S] ||| ich sah ein [JJ,1] ||| i saw a [JJ,1]", "tails":[7], "f":{"logp":0.0} },
-{ "head":11, "rule":"[S] ||| ich [V,1] ein [JJ,2] haus ||| i [V,1] a [JJ,2]", "tails":[1, 2], "f":{"logp":0.0} },
-{ "head":13, "rule":"[C] ||| [Q,1] ||| [Q,1]", "tails":[12], "f":{"logp":0.0} },
-{ "head":14, "rule":"[B] ||| [C,1] ||| [C,1]", "tails":[13], "f":{"logp":0.0} },
-{ "head":11, "rule":"[S] ||| [B,1] ||| [B,1]", "tails":[14], "f":{"logp":0.0} }
-]
-}
diff --git a/example/toy/toy.json b/example/toy/toy.json
deleted file mode 100644
index c1b5c55..0000000
--- a/example/toy/toy.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
-"weights":{"logp":2.0,"use_house":0.0,"use_shell":1.0},
-"nodes":
-[
-{ "id":-1, "cat":"root", "span":[-1,-1] },
-{ "id":0, "cat":"NP", "span":[0,1] },
-{ "id":1, "cat":"V", "span":[1,2] },
-{ "id":2, "cat":"JJ", "span":[3,4] },
-{ "id":3, "cat":"NN", "span":[3,5] },
-{ "id":4, "cat":"NP", "span":[2,5] },
-{ "id":5, "cat":"VP", "span":[1,5] },
-{ "id":6, "cat":"S", "span":[0,5] }
-],
-"edges":
-[
-{ "head":0, "rule":"[NP] ||| ich ||| i", "tails":[-1], "f":{"logp":-0.5,"use_i":1.0} },
-{ "head":1, "rule":"[V] ||| sah ||| saw", "tails":[-1], "f":{"logp":-0.25,"use_saw":1.0} },
-{ "head":2, "rule":"[JJ] ||| kleines ||| small", "tails":[-1], "f":{"logp":0.0,"use_small":1.0} },
-{ "head":2, "rule":"[JJ] ||| kleines ||| little", "tails":[-1], "f":{"logp":0.0,"use_little":1.0} },
-{ "head":3, "rule":"[NN] ||| kleines haus ||| small house", "tails":[-1], "f":{"logp":0.0,"use_house":1.0} },
-{ "head":3, "rule":"[NN] ||| kleines haus ||| little house", "tails":[-1], "f":{"logp":0.0,"use_house":1.0} },
-{ "head":3, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] shell", "tails":[2], "f":{"logp":0.0,"use_shell":1.0} },
-{ "head":3, "rule":"[NN] ||| [JJ,1] haus ||| [JJ,1] house", "tails":[2], "f":{"logp":0.0,"use_house":1.0} },
-{ "head":4, "rule":"[NP] ||| ein [NN,1] ||| a [NN,1]", "tails":[3], "f":{"logp":0.0,"use_a":1.0} },
-{ "head":5, "rule":"[VP] ||| [V,1] [NP,2] ||| [V,1] [NP,2]", "tails":[1, 4], "f":{"logp":0.0} },
-{ "head":6, "rule":"[S] ||| [NP,1] [VP,2] ||| [NP,1] [VP,2]", "tails":[0, 5], "f":{"logp":0.0} }
-]
-}