mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
better tree viz
This commit is contained in:
@@ -65,9 +65,9 @@ lincat
|
||||
V2A = TransVerb ; ----
|
||||
V0 = Verb ;
|
||||
|
||||
---- TP = {s : Str ; b : Bool ; t : Tense ; a : Anteriority} ; --- the Str field is dummy
|
||||
---- Tense = {s : Str ; t : Tense} ;
|
||||
---- Ant = {s : Str ; a : Anteriority} ;
|
||||
TP = {s : Str ; b : Bool ; t : Tense ; a : Anteriority} ; --- the Str field is dummy
|
||||
Tense = {s : Str ; t : Tense} ;
|
||||
Ant = {s : Str ; a : Anteriority} ;
|
||||
|
||||
PP = {s : Str} ;
|
||||
Adv = {s : Str} ;
|
||||
@@ -76,8 +76,8 @@ lincat
|
||||
AdC = {s : Str} ;
|
||||
|
||||
S = {s : Str} ;
|
||||
---- Cl = Clause ;
|
||||
-- = {s : Order => Bool => SForm => Str} ;
|
||||
Cl = Clause ;
|
||||
-- = {s : SType => Bool => SForm => Str} ;
|
||||
|
||||
Slash = Sentence ** {s2 : Str ; c : Case} ;
|
||||
|
||||
|
||||
@@ -73,24 +73,25 @@ lin
|
||||
|
||||
---- PredAS = predAdjSent ;
|
||||
---- PredV0 rain = predVerbClause (pronNounPhrase pronIt) rain (complVerb rain) ;
|
||||
{-
|
||||
|
||||
-- Partial saturation.
|
||||
|
||||
UseV2 = transAsVerb ;
|
||||
UseV2 v = v ;
|
||||
|
||||
ComplA2S = predAdjSent2 ;
|
||||
---- ComplA2S = predAdjSent2 ;
|
||||
|
||||
AdjPart = adjPastPart ;
|
||||
---- AdjPart = adjPastPart ;
|
||||
|
||||
---- UseV2V x = verb2aux x ** {isAux = False} ;
|
||||
|
||||
UseV2V x = verb2aux x ** {isAux = False} ;
|
||||
UseV2S x = x ;
|
||||
UseV2Q x = x ;
|
||||
UseA2S x = x ;
|
||||
UseA2V x = x ;
|
||||
|
||||
UseCl tp cl = {s = tp.s ++ cl.s ! Dir ! tp.b ! VFinite tp.t tp.a} ;
|
||||
UseQCl tp cl = {s = \\q => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! q} ;
|
||||
UseRCl tp cl = {s = \\a => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! a} ;
|
||||
UseCl tp cl = {s = tp.s ++ cl.s ! SDecl ! tp.b ! VFinite tp.t tp.a} ;
|
||||
---- UseQCl tp cl = {s = \\q => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! q} ;
|
||||
---- UseRCl tp cl = {s = \\a => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! a} ;
|
||||
|
||||
PosTP t a = {s = t.s ++ a.s ; b = True ; t = t.t ; a = a.a} ;
|
||||
NegTP t a = {s = t.s ++ a.s ; b = False ; t = t.t ; a = a.a} ;
|
||||
@@ -102,7 +103,7 @@ lin
|
||||
|
||||
ASimul = {s = [] ; a = Simul} ;
|
||||
AAnter = {s = [] ; a = Anter} ;
|
||||
-}
|
||||
|
||||
-- Adverbs.
|
||||
|
||||
---- AdjAdv a = ss (a.s ! AAttr ! AAdv) ; --- also APred?
|
||||
|
||||
@@ -458,12 +458,31 @@ oper
|
||||
--
|
||||
--3 Verb phrases
|
||||
--
|
||||
-- These are parameters for clauses and sentences.
|
||||
|
||||
param
|
||||
|
||||
Tense = Present | Past | Future | Conditional ;
|
||||
Anteriority = Simul | Anter ;
|
||||
|
||||
SForm =
|
||||
VFinite Tense Anteriority
|
||||
| VInfinit Anteriority
|
||||
| VPresPart
|
||||
;
|
||||
|
||||
SType = SDecl | SQuest ;
|
||||
|
||||
oper
|
||||
Clause : Type = {s : SType => Bool => SForm => Str} ;
|
||||
|
||||
-- Verb phrases are discontinuous: the two parts of a verb phrase are
|
||||
-- (s) an inflected verb, (s2) a complement.
|
||||
-- For instance: "on" - "kaunis" ; "ei" - "ole kaunis" ; "sisältää" - "rikkiä".
|
||||
-- Moreover, a subject case is needed, because of passive and 'have' verb
|
||||
-- phrases ("minä uin" ; "minut valitaan" ; "minua odotetaan" ; "minulla on jano").
|
||||
|
||||
oper
|
||||
VerbPhrase = Verb ** {s2 : VForm => Str ; c : ComplCase} ;
|
||||
VerbGroup = {s,s2 : Bool => VForm => Str ; c : ComplCase} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user