Commit Graph

11 Commits

Author SHA1 Message Date
Hans Leiss 787f9d10e8 The files for GrammarGer and AllGer (but not Construction, Documentation, Markup)
are edited to allow for glued Prep+DefArt, using new categories NP',Det',Quant',
Predet',DAP'.

The previous NP.s : Case => Str*Str allows parsing

   "in dem Meer" = in_Prep ++ (np.s ! Case).p1
   "im Meer"     = in_Prep ++ (np.s ! Case).p2,

but since only one of the strings of (np.s!Case) is used, the tree
contains a metavariable like ?2 (the grammar is "erasing"). (Similarly, if we used
NP.s : Case => Str and NP.s2 : Case => Str.)

To get rid of the metavariables, we have to choose BY A PARAMETER, say

    NP.s : droppedDefArt? => Case => Str

Using np.a = Ag g n p, the preposition can select between preposition
alone or preposition with definite article (glued or not), via

    Prep = {s : GenNum => Str ; s2 :Str ; c : Case ; isPrep : PrepType }

The combination is done in appPrepNP' and appPrep'. This is
independent of the number of glued Prep+DefArt. But LangGer compiles
now in 200s using 30% memory (without SlashV2VNP). Can AppPrepNP' (and
insertObjNP') be simplified?
2022-08-11 21:07:03 +02:00
Hans Leiss 8eee3df739 Modifications of Prep\', Predet\', Quant\', Det\', NP\' to remove PCase and use NP.s : Agr => Str * Str instead 2022-07-19 18:27:56 +02:00
Aarne Ranta 38dac3de60 restored c field in Ger.UttAP - yet another suppression previously undetected 2018-02-08 21:16:43 +01:00
aarne f216cfe923 missing parts in PhraseGer.UttCN added 2016-06-05 10:59:01 +00:00
aarne 7e1102c3a1 discontinuous Ger AP part in UttAP 2015-07-27 09:18:14 +00:00
aarne 8bbb2a1277 restoring the discontinuous Ger NP parts in some linearizations 2015-07-27 09:14:10 +00:00
aarne f64eb3acbf mkInterj in some languages; 'make Parse' in lib/src builds Parse8.pgf 2013-12-02 13:34:07 +00:00
aarne e6dfb602aa German preposition contractions 2010-05-26 09:37:17 +00:00
aarne 78244926f1 new Utt constructors for AP, Card 2010-03-28 20:13:15 +00:00
aarne 816dc6c31f Phrase.UttCN added and implemented for Eng,Fre,Ger 2009-12-17 21:54:11 +00:00
aarne a1fdeb6704 next-lib renamed to lib, lib to old-lib 2009-06-22 15:39:08 +00:00