mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 18:58:56 -06:00
updated uddeps.labels with ResourceDemo-specific functions, added relative clauses to ResourceDemo
This commit is contained in:
@@ -103,6 +103,12 @@ abstract ResourceDemo = Lexicon, Numeral, Grammar [
|
|||||||
QuestIComp,
|
QuestIComp,
|
||||||
CompIAdv,
|
CompIAdv,
|
||||||
|
|
||||||
|
UseRCl, -- Tense -> Pol -> RCl -> RS,
|
||||||
|
RelVP , -- RP -> VP -> QCl, -- who walks
|
||||||
|
RelSlash, -- RP -> ClSlash -> QCl, -- who does she walk with
|
||||||
|
RelCN, -- CN -> RS -> CN
|
||||||
|
IdRP, -- RP
|
||||||
|
|
||||||
SubjCl, -- Cl -> Subj -> S -> Cl, -- she walks because we run
|
SubjCl, -- Cl -> Subj -> S -> Cl, -- she walks because we run
|
||||||
|
|
||||||
PrepNP , -- Prep -> NP -> Adv, -- in the house
|
PrepNP , -- Prep -> NP -> Adv, -- in the house
|
||||||
@@ -156,10 +162,10 @@ fun
|
|||||||
possDet : Pron -> Det ;
|
possDet : Pron -> Det ;
|
||||||
numeralDet : Numeral -> Det ;
|
numeralDet : Numeral -> Det ;
|
||||||
i_Pron, youSg_Pron, he_Pron, she_Pron, we_Pron, youPl_Pron, they_Pron : Pron ;
|
i_Pron, youSg_Pron, he_Pron, she_Pron, we_Pron, youPl_Pron, they_Pron : Pron ;
|
||||||
SubjS : Subj -> S -> S -> S ; -- if she walks we run
|
RSubjS : Subj -> S -> S -> S ; -- if she walks we run
|
||||||
SlashV2 : NP -> V2 -> ClSlash ; -- she loves
|
SlashV2 : NP -> V2 -> ClSlash ; -- she loves
|
||||||
SlashPrep : Cl -> Prep -> ClSlash ; -- she walks with
|
SlashPrep : Cl -> Prep -> ClSlash ; -- she walks with
|
||||||
AdvCN : CN -> Prep -> NP -> CN ; -- man in the city
|
RAdvCN : CN -> Prep -> NP -> CN ; -- man in the city
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,8 @@ concrete ResourceDemoEng of ResourceDemo = LexiconEng, NumeralEng, GrammarEng [
|
|||||||
Utt, -- utterance (sentence or question) e.g. "does she walk"
|
Utt, -- utterance (sentence or question) e.g. "does she walk"
|
||||||
QS, -- question (fixed tense) e.g. "who doesn't walk"
|
QS, -- question (fixed tense) e.g. "who doesn't walk"
|
||||||
QCl, -- question clause (variable tense) e.g. "who walks"
|
QCl, -- question clause (variable tense) e.g. "who walks"
|
||||||
|
RS, -- relative (fixed tense) e.g. "that doesn't walk"
|
||||||
|
RCl, -- relative clause (variable tense) e.g. "that walks"
|
||||||
ClSlash, -- clause missing noun phrase e.g. "she walks with"
|
ClSlash, -- clause missing noun phrase e.g. "she walks with"
|
||||||
Adv, -- adverb e.g. "here"
|
Adv, -- adverb e.g. "here"
|
||||||
Prep, -- preposition (and/or case) e.g. "with"
|
Prep, -- preposition (and/or case) e.g. "with"
|
||||||
@@ -71,6 +73,7 @@ concrete ResourceDemoEng of ResourceDemo = LexiconEng, NumeralEng, GrammarEng [
|
|||||||
VQ, -- question-complement verb e.g. "wonder"
|
VQ, -- question-complement verb e.g. "wonder"
|
||||||
VV, -- verb-phrase-complement verb e.g. "want"
|
VV, -- verb-phrase-complement verb e.g. "want"
|
||||||
IP, -- interrogative pronoun e.g. "who"
|
IP, -- interrogative pronoun e.g. "who"
|
||||||
|
RP, -- relative pronoun e.g. "that"
|
||||||
PN, -- proper name e.g. "John"
|
PN, -- proper name e.g. "John"
|
||||||
Subj, -- subjunction e.g. "because"
|
Subj, -- subjunction e.g. "because"
|
||||||
IAdv, -- interrogative adverb e.g. "why"
|
IAdv, -- interrogative adverb e.g. "why"
|
||||||
@@ -107,6 +110,12 @@ concrete ResourceDemoEng of ResourceDemo = LexiconEng, NumeralEng, GrammarEng [
|
|||||||
QuestIComp,
|
QuestIComp,
|
||||||
CompIAdv,
|
CompIAdv,
|
||||||
|
|
||||||
|
UseRCl, -- Tense -> Pol -> RCl -> RS,
|
||||||
|
RelVP , -- RP -> VP -> QCl, -- who walks
|
||||||
|
RelSlash, -- RP -> ClSlash -> QCl, -- who does she walk with
|
||||||
|
RelCN, -- CN -> RS -> CN
|
||||||
|
IdRP, -- RP
|
||||||
|
|
||||||
SubjCl, -- Cl -> Subj -> S -> Cl, -- she walks because we run
|
SubjCl, -- Cl -> Subj -> S -> Cl, -- she walks because we run
|
||||||
|
|
||||||
PrepNP , -- Prep -> NP -> Adv, -- in the house
|
PrepNP , -- Prep -> NP -> Adv, -- in the house
|
||||||
@@ -161,8 +170,8 @@ lin
|
|||||||
those_Det = S.those_Det ;
|
those_Det = S.those_Det ;
|
||||||
possDet p = S.mkDet <p : Pron> ;
|
possDet p = S.mkDet <p : Pron> ;
|
||||||
numeralDet n = S.mkDet <n : Numeral> ;
|
numeralDet n = S.mkDet <n : Numeral> ;
|
||||||
SubjS subj a b = mkS (S.mkAdv <subj : Subj> <a : S>) b ;
|
RSubjS subj a b = mkS (S.mkAdv <subj : Subj> <a : S>) b ;
|
||||||
SlashV2 np v2 = mkClSlash np v2 ;
|
SlashV2 np v2 = mkClSlash np v2 ;
|
||||||
SlashPrep cl p = mkClSlash (lin Cl cl) <p : Prep> ;
|
SlashPrep cl p = mkClSlash (lin Cl cl) <p : Prep> ;
|
||||||
AdvCN cn p pp = mkCN <lin CN cn : CN> (mkAdv <p : Prep> <pp : NP>) ;
|
RAdvCN cn p pp = mkCN <lin CN cn : CN> (mkAdv <p : Prep> <pp : NP>) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,12 @@ PassAgentV2 head ncomp -- not sure
|
|||||||
RelV2 mark nsubj head
|
RelV2 mark nsubj head
|
||||||
QuestV2 dobj nsubj head
|
QuestV2 dobj nsubj head
|
||||||
|
|
||||||
|
ModCN amod head -- in ResourceDemo
|
||||||
|
RSubjS mark advcl head
|
||||||
|
SlashV2 nsubj head
|
||||||
|
RAdvCN head case nmod
|
||||||
|
SubjCl head mark advcl
|
||||||
|
|
||||||
A ADJ
|
A ADJ
|
||||||
A2 ADJ
|
A2 ADJ
|
||||||
AdA ADV
|
AdA ADV
|
||||||
|
|||||||
Reference in New Issue
Block a user