From 7e965fce5245a79c2c8736b3f996198d09602b3b Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 3 Jun 2014 17:11:43 +0200 Subject: getting serious --- example/toy/grammar | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example/toy/grammar (limited to 'example/toy/grammar') diff --git a/example/toy/grammar b/example/toy/grammar new file mode 100644 index 0000000..81d41c7 --- /dev/null +++ b/example/toy/grammar @@ -0,0 +1,11 @@ +[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] ||| kleines haus ||| small house ||| logp=0 use_house=1 +[NN] ||| kleines haus ||| little house ||| logp=0 use_house=1 +[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 -- cgit v1.2.3