mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-09-19 08:46:04 -06:00
added conjunction of complements
This commit is contained in:
@@ -63,6 +63,7 @@ concrete ExtendRus of Extend =
|
|||||||
lincat
|
lincat
|
||||||
VPS = {s : Mood => Agr => Str} ;
|
VPS = {s : Mood => Agr => Str} ;
|
||||||
[VPS] = {s1,s2 : Mood => Agr => Str} ;
|
[VPS] = {s1,s2 : Mood => Agr => Str} ;
|
||||||
|
[Comp] = {s1,s2 : AgrTable ; cop : CopulaType} ;
|
||||||
RNP = {s : Agr => Str} ;
|
RNP = {s : Agr => Str} ;
|
||||||
RNPList = {s1,s2 : Agr => Str} ;
|
RNPList = {s1,s2 : Agr => Str} ;
|
||||||
|
|
||||||
@@ -326,6 +327,24 @@ lin
|
|||||||
ConsVPS = consrTable2 Mood Agr comma ;
|
ConsVPS = consrTable2 Mood Agr comma ;
|
||||||
ConjVPS = conjunctDistrTable2 Mood Agr ;
|
ConjVPS = conjunctDistrTable2 Mood Agr ;
|
||||||
|
|
||||||
|
BaseComp x y = {
|
||||||
|
s1 = \\a => x.adv ++ x.s ! a ;
|
||||||
|
s2 = \\a => y.adv ++ y.s ! a ;
|
||||||
|
cop = x.cop
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ConsComp x xs = {
|
||||||
|
s1 = \\a => x.adv ++ x.s ! a ++ comma ++ xs.s1 ! a ;
|
||||||
|
s2 = xs.s2 ;
|
||||||
|
cop = x.cop
|
||||||
|
} ;
|
||||||
|
|
||||||
|
ConjComp conj xs = {
|
||||||
|
s = \\a => conj.s1 ++ xs.s1 ! a ++ conj.s2 ++ xs.s2 ! a ;
|
||||||
|
adv = [] ;
|
||||||
|
cop = xs.cop
|
||||||
|
} ;
|
||||||
|
|
||||||
-- : NP -> VPS -> S ;
|
-- : NP -> VPS -> S ;
|
||||||
PredVPS np vps = {
|
PredVPS np vps = {
|
||||||
s = \\m => np.s ! Nom ++ vps.s ! m ! np.a
|
s = \\m => np.s ! Nom ++ vps.s ! m ! np.a
|
||||||
|
|||||||
Reference in New Issue
Block a user