40 likes | 236 Views
Unification example: a grammar. 1/3. Rule {Satz} S -> NP VP (PP): <S subj> = <NP> <S pred> = <VP> <S adj> = <PP> <NP head num> = <VP head num> <NP head pers> = <VP head pers>. ;Kongruenz zwischen Subjekt und finitem Verb Rule {NP} NP -> Name / Pron / Det (AP) N (PP):
E N D
Unification example: a grammar 1/3 • Rule {Satz} • S -> NP VP (PP): • <S subj> = <NP> • <S pred> = <VP> • <S adj> = <PP> • <NP head num> = <VP head num> • <NP head pers> = <VP head pers>. ;Kongruenz zwischen Subjekt und finitem Verb • Rule {NP} • NP -> Name / Pron / Det (AP) N (PP): • <NP head> = <Name> • <NP head> = <Pron> • <NP head> = <N> • <NP spec> = <Det> • <NP adj> = <AP> • <NP adj2> = <PP> • <Det num> = <N num>. ; Spezifikator-Kopf-Kongruenz • Rule {VP intransitiv} • VP -> V: • <VP head> = <V> • <V subcat> = i. • Rule {VP transitiv} • VP -> V NP: • <VP head> = <V> • <V subcat> = t • <VP obj> = <NP>. psg2.grm + psg2.lex
Unification example: a grammar 2/3 • Rule {VP transitiv mit PP} • VP -> V NP PP: • <VP head> = <V> • <V subcat> = tp • <VP obj> = <NP> • <VP pobj> = <PP>. • Rule {VP ditransitiv} • VP -> V NP_1 NP_2: • <VP head> = <V> • <V subcat> = t2 • <VP obj> = <NP_2> • <VP obj2> = <NP_1>. • Rule {VP mit PP} • VP -> V PP: • <VP head> = <V> • <V subcat> = p • <VP pobj> = <PP>. • Rule {VP mit Vc} • VP -> V {NP / AP / PP}: • <VP head> = <V> • <V subcat> = c • <VP predcomp> = <NP> • <VP predcomp> = <AP> • <VP predcomp> = <PP>. • Rule {AP} • AP -> (Adv) A: • <AP head> = <A> • <AP spec> = <Adv>. • Rule {PP} • PP -> P NP: • <PP head> = <P> • <PP obj> = <NP>.
Unification example: a grammar 3/3 • Parameter: Attribute order is cat subcat lex subj pred spec adj head adj2 obj2 obj pobj predcomp. • Let V be [cat: V]. • Let Vi be V [subcat: i]. • Let Vt be V [subcat: t]. • Let Vtp be V [subcat: tp]. • Let Vt2 be V [subcat: t2]. • Let Vp be V [subcat: p]. • Let Vc be V [subcat: c]. • Let N be [num: !sg pers: 3]. • Let sg be [num: sg]. • Let pl be [num: pl]. • Let Det be [num: !sg]. • Let sg/pl be {[sg] [pl]}. • Let 1sg be sg [pers: 1]. • Let 2sg be sg [pers: 2]. • Let 3sg be sg [pers: 3]. • Let 1pl be pl [pers: 1]. • Let 2pl be pl [pers: 2]. • Let 3pl be pl [pers: 3]. • Let 2sg/pl be {[2sg] [pl]}. ;are, were • Let 1sg/2sg/pl be {[1sg] [2sg] [pl]}. ;Präsens regelmäßig: sing • Let 1sg/3sg be {[1sg] [3sg]}. ;was • Let 2per be sg/pl [pers: 2] ;you
Unification example • S: • [ cat: S • subj: [ cat: NP • spec: [ cat: Det • lex: the • num: pl ] • head: [ cat: N • lex: girls • num: pl • pers: 3 ] ] • pred: [ cat: VP • head: [ cat: V • subcat:t2 • lex: gave • num: pl • pers: 3 ] • obj2: [ cat: NP • spec: [ cat: Det • lex: the • num: sg ] • head: [ cat: N • lex: boy • num: sg • pers: 3 ] • adj2: [ cat: PP • head: [ cat: P • lex: in ] • obj: [ cat: NP • spec: [ cat: Det • lex: the • num: sg ] • head: [ cat: N • lex: village • num: sg • pers: 3 ] ] ] ] • obj: [ cat: NP • spec: [ cat: Det • lex: a • num: sg ] • head: [ cat: N • lex: present • num: sg • pers: 3 ] ] ] ]