summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2016-06-02 06:29:35 +0000
committeraarne <aarne@chalmers.se>2016-06-02 06:29:35 +0000
commita6303fd8d1b22541750a290def444898dea92c94 (patch)
tree4862c8828ecd398b1c2c093f3e769a3917cb2ba3 /examples
parent194368dfd501a354053c58c58b7a19e4024130fa (diff)
tokenized apertium text to test with ; RelV2 and QuestV2 in App (Eng and Swe for the moment) with 20% loss of parsing speed but improved quality
Diffstat (limited to 'examples')
-rw-r--r--examples/app/App.gf3
-rw-r--r--examples/app/AppEng.gf3
-rw-r--r--examples/app/AppSwe.gf3
-rw-r--r--examples/app/apertium.txt28
4 files changed, 37 insertions, 0 deletions
diff --git a/examples/app/App.gf b/examples/app/App.gf
index 6414d0744..570607bc8 100644
--- a/examples/app/App.gf
+++ b/examples/app/App.gf
@@ -43,4 +43,7 @@ fun
ComplV3 : V3 -> NP -> NP -> VP ;
+ RelV2 : RP -> NP -> V2 -> RCl ;
+ QuestV2 : IP -> NP -> V2 -> QCl ;
+
}
diff --git a/examples/app/AppEng.gf b/examples/app/AppEng.gf
index 10e84f9a8..12e5624e8 100644
--- a/examples/app/AppEng.gf
+++ b/examples/app/AppEng.gf
@@ -50,4 +50,7 @@ ComplV2 v np = mkVP v np ;
PassV2 v2 = passiveVP v2 ;
+RelV2 rp np v2 = mkRCl rp (mkClSlash np (mkVPSlash v2)) ;
+QuestV2 ip np v2 = mkQCl ip (mkClSlash np (mkVPSlash v2)) ;
+
}
diff --git a/examples/app/AppSwe.gf b/examples/app/AppSwe.gf
index 591f55f41..ee48f1462 100644
--- a/examples/app/AppSwe.gf
+++ b/examples/app/AppSwe.gf
@@ -50,4 +50,7 @@ ComplV2 v np = mkVP v np ;
PassV2 v2 = SyntaxSwe.passiveVP v2 ;
+RelV2 rp np v2 = mkRCl rp (mkClSlash np (mkVPSlash v2)) ;
+QuestV2 ip np v2 = mkQCl ip (mkClSlash np (mkVPSlash v2)) ;
+
}
diff --git a/examples/app/apertium.txt b/examples/app/apertium.txt
new file mode 100644
index 000000000..19ca87163
--- /dev/null
+++ b/examples/app/apertium.txt
@@ -0,0 +1,28 @@
+James and Mary are in the garden
+the weather is nice today
+it is very warm
+but yesterday it was very cold
+they could not play outside then
+James and Mary love to play
+they always play together in the garden in front of the big house
+James is a little boy and he is six years old
+the little girl is his sister
+she is five years old
+James has a small dog
+the dog is also in the garden now
+the dog likes to play with the two children
+the dog is very happy now
+does Mary also have a dog
+no , Mary does not have a dog
+she has a cat
+but the cat is in the house
+the cat is sleeping
+their mother is inside the house with the cat
+she looks through the window and sees James and Mary playing
+James quickly runs to a big old tree
+he is hiding from Mary
+do you know why
+Mary is sitting and has her hands in front of her eyes
+she can't see anything and she is counting
+why does she do that
+and what is James doing near the tree