forked from GitHub/gf-rgl
better tree viz
This commit is contained in:
@@ -65,9 +65,9 @@ lincat
|
|||||||
V2A = TransVerb ; ----
|
V2A = TransVerb ; ----
|
||||||
V0 = Verb ;
|
V0 = Verb ;
|
||||||
|
|
||||||
---- TP = {s : Str ; b : Bool ; t : Tense ; a : Anteriority} ; --- the Str field is dummy
|
TP = {s : Str ; b : Bool ; t : Tense ; a : Anteriority} ; --- the Str field is dummy
|
||||||
---- Tense = {s : Str ; t : Tense} ;
|
Tense = {s : Str ; t : Tense} ;
|
||||||
---- Ant = {s : Str ; a : Anteriority} ;
|
Ant = {s : Str ; a : Anteriority} ;
|
||||||
|
|
||||||
PP = {s : Str} ;
|
PP = {s : Str} ;
|
||||||
Adv = {s : Str} ;
|
Adv = {s : Str} ;
|
||||||
@@ -76,8 +76,8 @@ lincat
|
|||||||
AdC = {s : Str} ;
|
AdC = {s : Str} ;
|
||||||
|
|
||||||
S = {s : Str} ;
|
S = {s : Str} ;
|
||||||
---- Cl = Clause ;
|
Cl = Clause ;
|
||||||
-- = {s : Order => Bool => SForm => Str} ;
|
-- = {s : SType => Bool => SForm => Str} ;
|
||||||
|
|
||||||
Slash = Sentence ** {s2 : Str ; c : Case} ;
|
Slash = Sentence ** {s2 : Str ; c : Case} ;
|
||||||
|
|
||||||
|
|||||||
@@ -73,24 +73,25 @@ lin
|
|||||||
|
|
||||||
---- PredAS = predAdjSent ;
|
---- PredAS = predAdjSent ;
|
||||||
---- PredV0 rain = predVerbClause (pronNounPhrase pronIt) rain (complVerb rain) ;
|
---- PredV0 rain = predVerbClause (pronNounPhrase pronIt) rain (complVerb rain) ;
|
||||||
{-
|
|
||||||
-- Partial saturation.
|
-- 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 ;
|
UseV2S x = x ;
|
||||||
UseV2Q x = x ;
|
UseV2Q x = x ;
|
||||||
UseA2S x = x ;
|
UseA2S x = x ;
|
||||||
UseA2V x = x ;
|
UseA2V x = x ;
|
||||||
|
|
||||||
UseCl tp cl = {s = tp.s ++ cl.s ! Dir ! tp.b ! VFinite tp.t tp.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} ;
|
---- 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} ;
|
---- 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} ;
|
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} ;
|
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} ;
|
ASimul = {s = [] ; a = Simul} ;
|
||||||
AAnter = {s = [] ; a = Anter} ;
|
AAnter = {s = [] ; a = Anter} ;
|
||||||
-}
|
|
||||||
-- Adverbs.
|
-- Adverbs.
|
||||||
|
|
||||||
---- AdjAdv a = ss (a.s ! AAttr ! AAdv) ; --- also APred?
|
---- AdjAdv a = ss (a.s ! AAttr ! AAdv) ; --- also APred?
|
||||||
|
|||||||
@@ -458,12 +458,31 @@ oper
|
|||||||
--
|
--
|
||||||
--3 Verb phrases
|
--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
|
-- Verb phrases are discontinuous: the two parts of a verb phrase are
|
||||||
-- (s) an inflected verb, (s2) a complement.
|
-- (s) an inflected verb, (s2) a complement.
|
||||||
-- For instance: "on" - "kaunis" ; "ei" - "ole kaunis" ; "sisältää" - "rikkiä".
|
-- For instance: "on" - "kaunis" ; "ei" - "ole kaunis" ; "sisältää" - "rikkiä".
|
||||||
-- Moreover, a subject case is needed, because of passive and 'have' verb
|
-- Moreover, a subject case is needed, because of passive and 'have' verb
|
||||||
-- phrases ("minä uin" ; "minut valitaan" ; "minua odotetaan" ; "minulla on jano").
|
-- phrases ("minä uin" ; "minut valitaan" ; "minua odotetaan" ; "minulla on jano").
|
||||||
|
|
||||||
|
oper
|
||||||
VerbPhrase = Verb ** {s2 : VForm => Str ; c : ComplCase} ;
|
VerbPhrase = Verb ** {s2 : VForm => Str ; c : ComplCase} ;
|
||||||
VerbGroup = {s,s2 : Bool => VForm => Str ; c : ComplCase} ;
|
VerbGroup = {s,s2 : Bool => VForm => Str ; c : ComplCase} ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user