forked from GitHub/gf-core
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
This commit is contained in:
@@ -43,4 +43,7 @@ fun
|
||||
|
||||
ComplV3 : V3 -> NP -> NP -> VP ;
|
||||
|
||||
RelV2 : RP -> NP -> V2 -> RCl ;
|
||||
QuestV2 : IP -> NP -> V2 -> QCl ;
|
||||
|
||||
}
|
||||
|
||||
@@ -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)) ;
|
||||
|
||||
}
|
||||
|
||||
@@ -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)) ;
|
||||
|
||||
}
|
||||
|
||||
28
examples/app/apertium.txt
Normal file
28
examples/app/apertium.txt
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user