diff options
author | Patrick Simianer <p@simianer.de> | 2014-06-18 08:28:36 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-06-18 08:28:36 +0200 |
commit | d92209e3ec223a380c7ad540622caa15712c490c (patch) | |
tree | 91f985fc2d9726a4d1e9f7c86e17cbf7dd2b6ee6 /example/toy | |
parent | ae3bc3e1870d009c4d54c55416ebb4b7c07a483f (diff) |
better integration, chart.to_json
Diffstat (limited to 'example/toy')
-rw-r--r-- | example/toy/toy.json | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/example/toy/toy.json b/example/toy/toy.json index 2c05fb0..49135f3 100644 --- a/example/toy/toy.json +++ b/example/toy/toy.json @@ -1,5 +1,5 @@ { -"weights":{ "logp":2.0, "use_shell":1.0 }, +"weights":{"logp":2.0,"use_house":0.0,"use_shell":1.0}, "nodes": [ { "id":0, "cat":"NP", "span":[0,1] }, @@ -13,16 +13,16 @@ ], "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,0] haus ||| [JJ,1] shell |||", "tails":[2], "f":{"logp":0.0, "use_shell":1.0} }, -{ "head":3, "rule":"[NN] ||| [JJ,0] haus ||| [JJ,1] house |||", "tails":[2], "f":{"logp":0.0, "use_house":1.0} }, -{ "head":4, "rule":"[NP] ||| ein [NN,0] ||| a [NN,1] |||", "tails":[3], "f":{"logp":0.0, "use_a":1.0} }, -{ "head":5, "rule":"[VP] ||| [V,0] [NP,1] ||| [V,1] [NP,2] |||", "tails":[1, 4], "f":{"logp":0.0} }, -{ "head":6, "rule":"[S] ||| [NP,0] [VP,1] ||| [NP,1] [VP,2] |||", "tails":[0, 5], "f":{"logp":0.0} } +{ "head":0, "rule":"[NP] ||| ich ||| i |||", "tails":[-1], "f":{"":0.0,"logp":-0.5,"use_i":1.0} }, +{ "head":1, "rule":"[V] ||| sah ||| saw |||", "tails":[-1], "f":{"":0.0,"logp":-0.25,"use_saw":1.0} }, +{ "head":2, "rule":"[JJ] ||| kleines ||| small |||", "tails":[-1], "f":{"":0.0,"logp":0.0,"use_small":1.0} }, +{ "head":2, "rule":"[JJ] ||| kleines ||| little |||", "tails":[-1], "f":{"":0.0,"logp":0.0,"use_little":1.0} }, +{ "head":3, "rule":"[NN] ||| kleines haus ||| small house |||", "tails":[-1], "f":{"":0.0,"logp":0.0,"use_house":1.0} }, +{ "head":3, "rule":"[NN] ||| kleines haus ||| little house |||", "tails":[-1], "f":{"":0.0,"logp":0.0,"use_house":1.0} }, +{ "head":3, "rule":"[NN] ||| JJ,0] haus ||| [JJ,1] shell |||", "tails":[2], "f":{"":0.0,"logp":0.0,"use_shell":1.0} }, +{ "head":3, "rule":"[NN] ||| JJ,0] haus ||| [JJ,1] house |||", "tails":[2], "f":{"":0.0,"logp":0.0,"use_house":1.0} }, +{ "head":4, "rule":"[NP] ||| ein NN,0] ||| a [NN,1] |||", "tails":[3], "f":{"":0.0,"logp":0.0,"use_a":1.0} }, +{ "head":5, "rule":"[VP] ||| V,0] NP,1] ||| [V,1] [NP,2] |||", "tails":[1, 4], "f":{"":0.0,"logp":0.0} }, +{ "head":6, "rule":"[S] ||| NP,0] VP,1] ||| [NP,1] [VP,2] |||", "tails":[0, 5], "f":{"":0.0,"logp":0.0} } ] } |