summaryrefslogtreecommitdiff
path: root/example/toy/toy.json
blob: 49135f3ac6acf37a2152e0ab8e3b830f5bc5e054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"weights":{"logp":2.0,"use_house":0.0,"use_shell":1.0},
"nodes":
[
{ "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":-1, "cat":"root", "span":[-1, -1] }
],
"edges":
[
{ "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} }
]
}