mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-06-28 04:16:30 -06:00
(Som) Add empty Str field to NP so every NP contributes with some string
Otherwise parsing sentences with pronoun objects gives metavariables.
This commit is contained in:
@@ -44,7 +44,8 @@ DetCN det cn = useN cn ** {
|
||||
-- : PN -> NP ;
|
||||
UsePN pn = pn ** {
|
||||
s = \\c => pn.s ;
|
||||
isPron = False
|
||||
isPron = False ;
|
||||
empty = [] ;
|
||||
} ;
|
||||
|
||||
-- : Pron -> NP ;
|
||||
@@ -73,7 +74,7 @@ DetCN det cn = useN cn ** {
|
||||
-- Determiners can form noun phrases directly.
|
||||
|
||||
-- : Det -> NP ;
|
||||
DetNP det = {
|
||||
DetNP det = emptyNP ** {
|
||||
s = det.sp ! Masc ; ---- Any way to decide for gender here?
|
||||
a = getAgr det.n Masc ;
|
||||
isPron = False ;
|
||||
|
||||
Reference in New Issue
Block a user