(Hun) Fix a few small bugs with discontinous APs

This commit is contained in:
Inari Listenmaa
2020-04-17 19:35:06 +02:00
parent f3726e9c0e
commit 70326b853a
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,9 @@ lin
let xCont : AP = x ** {s = \\n => x.s ! n ++ x.compar} ; let xCont : AP = x ** {s = \\n => x.s ! n ++ x.compar} ;
yCont : AP = y ** {s = \\n => y.s ! n ++ y.compar} ; yCont : AP = y ** {s = \\n => y.s ! n ++ y.compar} ;
in twoTable Number xCont yCont ; in twoTable Number xCont yCont ;
ConsAP = consrTable Number comma ; ConsAP a as =
let aCont : AP = a ** {s = \\n => a.s ! n ++ a.compar} ;
in consrTable Number comma aCont as ;
ConjAP co as = conjunctDistrTable Number co as ** {compar = []} ; ConjAP co as = conjunctDistrTable Number co as ** {compar = []} ;
-- Noun phrases -- Noun phrases

View File

@@ -169,7 +169,7 @@ concrete NounHun of Noun = CatHun ** open ResHun, Prelude, Coordination in {
-- : AP -> CN -> CN -- : AP -> CN -> CN
AdjCN ap cn = cn ** { AdjCN ap cn = cn ** {
s = \\n,c => ap.s ! Sg ++ cn.s ! n ! c s = \\n,c => ap.s ! Sg ++ cn.s ! n ! c ++ ap.compar
} ; } ;
-- : CN -> RS -> CN ; -- : CN -> RS -> CN ;