(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:
Inari Listenmaa
2019-07-19 12:35:20 +03:00
parent 08cec84079
commit 8c11c9e372
2 changed files with 18 additions and 5 deletions
+3 -2
View File
@@ -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 ;