forked from GitHub/gf-core
added ParseEng/ParseEngAbs which is the grammar used for parsing PennTreebank
This commit is contained in:
46
lib/src/english/ParseEngAbs.gf
Normal file
46
lib/src/english/ParseEngAbs.gf
Normal file
@@ -0,0 +1,46 @@
|
||||
abstract PennTreebank =
|
||||
Tense,
|
||||
Cat,
|
||||
Noun,
|
||||
Adjective,
|
||||
Numeral,
|
||||
Symbol,
|
||||
Conjunction,
|
||||
Verb - [SlashV2V, PassV2],
|
||||
Adverb,
|
||||
Phrase,
|
||||
Sentence,
|
||||
Relative,
|
||||
Idiom [VP, ProgrVP],
|
||||
Extra [NP, Quant, VPSlash, VP, GenNP, PassVPSlash],
|
||||
DictEngAbs ** {
|
||||
|
||||
fun CompoundCN : Num -> N -> CN -> CN ;
|
||||
DashCN : N -> N -> N ;
|
||||
GerundN : V -> N ;
|
||||
GerundAP : V -> AP ;
|
||||
PastPartAP : V2 -> AP ;
|
||||
myself_NP : NP ;
|
||||
yourselfSg_NP : NP ;
|
||||
himself_NP : NP ;
|
||||
herself_NP : NP ;
|
||||
itself_NP : NP ;
|
||||
ourself_NP : NP ;
|
||||
yourselfPl_NP : NP ;
|
||||
themself_NP : NP ;
|
||||
OrdCompar : A -> Ord ;
|
||||
|
||||
PositAdVAdj : A -> AdV ;
|
||||
|
||||
UseQuantPN : Quant -> PN -> NP;
|
||||
|
||||
SlashV2V : V2V -> Pol -> VP -> VPSlash ;
|
||||
|
||||
ComplPredVP : NP -> VP -> Cl ;
|
||||
|
||||
that_RP, no_RP : RP ;
|
||||
|
||||
CompS : S -> Comp ;
|
||||
CompVP : VP -> Comp ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user