mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 07:12:50 -06:00
working through translator/Extensions with some reorganization and generalizations
This commit is contained in:
@@ -21,6 +21,11 @@ fun
|
||||
ConjVPS : Conj -> [VPS] -> VPS ;
|
||||
PredVPS : NP -> VPS -> S ;
|
||||
|
||||
---- merge VPS and VPI
|
||||
---- MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS,
|
||||
---- VPIForm, VPIInf, VPIPresPart, MkVPI, BaseVPI, ConsVPI, ConjVPI, ComplVPIVV,
|
||||
|
||||
|
||||
-- generalizing Grammar
|
||||
|
||||
PassVPSlash : VPSlash -> VP ; -- be forced to sleep
|
||||
@@ -28,6 +33,9 @@ fun
|
||||
|
||||
ComplVV : VV -> Ant -> Pol -> VP -> VP ; -- want not to have slept
|
||||
|
||||
PredFrontVS : Temp -> NP -> VS -> S -> S ; -- I am here, she said -- no negation
|
||||
PredFrontVQ : Temp -> NP -> VQ -> QS -> S ; -- are you here, she asked -- no negation; direct order
|
||||
|
||||
---- merge?
|
||||
SlashV2V : V2V -> Ant -> Pol -> VP -> VPSlash ; -- force (her) not to have slept
|
||||
SlashVPIV2V : V2V -> Pol -> VPI -> VPSlash ; -- force (her) not to sleep and dream
|
||||
@@ -39,40 +47,18 @@ fun
|
||||
GenIP : IP -> IQuant ; -- whose
|
||||
GenRP : Num -> CN -> RP ; -- whose car(s)
|
||||
|
||||
---- should be covered by variants
|
||||
---- ComplBareVS : VS -> S -> VP ; -- know you go
|
||||
---- SlashBareV2S : V2S -> S -> VPSlash ; -- answer (to him) it is good
|
||||
---- ComplSlashPartLast : VPSlash -> NP -> VP ;
|
||||
CompoundCN : N -> CN -> CN ; -- control system / controls system / control-system
|
||||
|
||||
---- merge VPS and VPI
|
||||
---- MkVPS, BaseVPS, ConsVPS, ConjVPS, PredVPS,
|
||||
---- VPIForm, VPIInf, VPIPresPart, MkVPI, BaseVPI, ConsVPI, ConjVPI, ComplVPIVV,
|
||||
GerundCN : VP -> CN ; -- publishing of the document (can get a determiner)
|
||||
GerundNP : VP -> NP ; -- publishing the document (by nature definite)
|
||||
GerundAdv : VP -> Adv ; -- publishing the document (prepositionless adverb)
|
||||
|
||||
PresPartAP : VP -> AP ; -- sleeping (man), (man) sleeping in the car
|
||||
|
||||
---- merge these two? --- Sg/Pl CN CN CN --- four wheel drive, random number generator
|
||||
CompoundCN : Num -> N -> CN -> CN ;
|
||||
DashCN : N -> N -> N ;
|
||||
PastPartAP : VPSlash -> AP ; -- lost (opportunity) ; (opportunity) lost in space
|
||||
PastPartAgentAP : VPSlash -> NP -> AP ; -- (opportunity) lost by the company
|
||||
|
||||
---- merge ?
|
||||
---- NominalizeVPSlashNP : VPSlash -> NP -> NP ; -- publishing of the document
|
||||
---- EmbedPresPart : VP -> SC ; -- looking at Mary (is fun)
|
||||
GerundN : V -> N ; -- sleeping
|
||||
|
||||
---- merge ?
|
||||
---- PartVP : VP -> AP ; -- (man) looking at Mary
|
||||
GerundAP : V -> AP ; -- sleeping (man)
|
||||
|
||||
PastPartAP : V2 -> AP ; -- lost (opportunity) --- gen to VPSLash
|
||||
|
||||
---- why is this needed?
|
||||
OrdCompar : A -> Ord ; -- (my) better (side)
|
||||
|
||||
UseQuantPN : Quant -> PN -> NP; -- this John
|
||||
|
||||
SlashSlashV2V : V2V -> Ant -> Pol -> VPSlash -> VPSlash ; ---- what is this?
|
||||
|
||||
---- eliminate as topicalizations
|
||||
PredVPosv,PredVPovs : NP -> VP -> Cl ;
|
||||
UseQuantPN : Quant -> PN -> NP; -- this John
|
||||
|
||||
---- merge with IdRP?
|
||||
that_RP : RP ;
|
||||
@@ -95,5 +81,35 @@ fun
|
||||
CompS : S -> Comp ; -- (the fact is) that she sleeps
|
||||
CompQS : QS -> Comp ; -- (the question is) who sleeps
|
||||
CompVP : Ant -> Pol -> VP -> Comp ; -- (she is) to go
|
||||
|
||||
SlashSlashV2V : V2V -> Ant -> Pol -> VPSlash -> VPSlash ; -- induce them to sell (it) -- analogous to Verb.SlashVV
|
||||
|
||||
|
||||
}
|
||||
|
||||
{-
|
||||
-- changes from ParseEngAbs
|
||||
|
||||
ComplBareVS -> ComplVS -- as variant
|
||||
SlashBareV2S -> SlashV2S -- as variant
|
||||
ComplSlashPartLast -> ComplSlash -- as variant
|
||||
|
||||
CompoundCN Sg/Pl -> CompoundCN -- as variants
|
||||
DashCN -> CompoundCN -- as variant
|
||||
|
||||
GerundN -> GerundCN -- special case: now CN
|
||||
-> GerundNP -- an NP version without determiner
|
||||
-> GerundAdv -- an Adv version without determiner or preposition
|
||||
|
||||
GerundAP -> PresPartAP -- special case: now with a VP argument
|
||||
|
||||
PastPartAP -> PastPartAP -- now with VPSlash argument
|
||||
-> PastPartAgentAP -- VPSlash + by NP
|
||||
|
||||
OrdCompar -> UseComparA -- the only use in PTB reduces to this standard RGL function
|
||||
|
||||
PredVPosv -> PredFrontVS, PredFrontVQ -- restricted to the special case actually occurring in PTB
|
||||
PredVPovs -> -- inversion treated as variant: I am here, said she
|
||||
|
||||
|
||||
-}
|
||||
|
||||
Reference in New Issue
Block a user