mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-30 19:18:34 -06:00
1. updated types in ../abstract/*'.gf to replace NP,Det,Quant,Predep,Prep,DAP by
their primed versions 2. implemented all linearizations to use the primed categories This allows linearization with prep+defart's, but parsing gives metavariables in parses (DetQuant ? NumSg) and (DetQuantOrd ? NumSg ord) for prep+defart. Todo: make Quant.s and NP. depend on PronType = isCat | isPron | isPronDefArt. Without SlashV2VNP', compiles in 84 sec and gives 3,6M VerbGer.gfo, 2,3M SentenceGer.gfo. Uses |Prep'|=12 instead of |Prep|=18, |NP'|=72 instead of |NP|=54
This commit is contained in:
@@ -27,6 +27,16 @@ oper
|
||||
s = \\c => usePrepC c (\k -> name.s ! k) ;
|
||||
a = agrP3 Sg
|
||||
} ;
|
||||
nameNounPhrase' : Gender -> {s : Case => Str} -> {s : Case => Str * Str;
|
||||
a : Agr ;
|
||||
w : Weight' ;
|
||||
ext,rc : Str} =
|
||||
\g,name -> {
|
||||
s = \\c => <[],name.s ! c> ;
|
||||
a = agrgP3 g Sg ;
|
||||
ext,rc = [] ;
|
||||
w = WHeavy' -- ok?
|
||||
} ;
|
||||
|
||||
detLikeAdj : Bool -> Number -> Str ->
|
||||
{s,sp : Gender => PCase => Str ; n : Number ; a : Adjf ; isDef : Bool} = \isDef,n,dies ->
|
||||
|
||||
Reference in New Issue
Block a user