combinatory categorial grammar (ccg)

28
Combinatory Categorial Grammar (CCG)

Upload: others

Post on 03-Feb-2022

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Combinatory Categorial Grammar (CCG)

Combinatory Categorial Grammar (CCG)

TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAAAAAAAAA

Page 2: Combinatory Categorial Grammar (CCG)

Categories

Categories = types

Primitive categories

N, NP, S, PP, etc

Functions

a combination of primitive categories

S/NP, (S/NP) / (S/NP), etc

V, VP, Adverb, PP, etc

Page 3: Combinatory Categorial Grammar (CCG)

Combinatory Rules

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z forward crossing composition: x/y y\z x\z backward crossing composition: x\y y/z x/z

Type-raising forward type-raising: x y / (y\x)

backward type-raising: x y \ (y/x)

Coordination <&> x conj x x

Page 4: Combinatory Categorial Grammar (CCG)

Combinatory Rules 1 : Application Forward application “>”

X/Y Y X

(S\NP) / NP NP S\NP

Backward application “<“

Y X\Y X

NP S\NP S

Page 5: Combinatory Categorial Grammar (CCG)

Function likes := (S\NP) / NP

A transitive verb is a function from NPs into predicate S. That is, it accepts two NPs as arguments and results in S.

VP or intransitive verb: S\NP

Transitive verb: (S\NP) / NP

Adverb: (S\NP) \ (S\NP)

PP: ((S\NP) \ (S\NP)) / NP

(NP\NP) / NP

Page 6: Combinatory Categorial Grammar (CCG)

CCG Derivation:

CFG Derivation:

Examples from Prof. Julia Hockenmaier

Page 7: Combinatory Categorial Grammar (CCG)

Combinatory Rules

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z forward crossing composition: x/y y\z x\z backward crossing composition: x\y y/z x/z

Type-raising forward type-raising: x y / (y\x)

backward type-raising: x y \ (y/x)

Coordination <&> x conj x x

Page 8: Combinatory Categorial Grammar (CCG)

Combinatory Rules 4 : Coordination X conj X X

Alternatively, we can express coordination by defining conjunctions as functions as follows:

and := (X\X) / X

Page 9: Combinatory Categorial Grammar (CCG)

Coordination with CCG

Examples from Prof. Mark Steedman

Page 10: Combinatory Categorial Grammar (CCG)

Coordination with CCG

Application

forward application: x/y y x

backward application: y x\y x

Page 11: Combinatory Categorial Grammar (CCG)

Coordination with CCG

Application

forward application: x/y y x

backward application: y x\y x

Page 12: Combinatory Categorial Grammar (CCG)

Combinatory Rules

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z forward crossing composition: x/y y\z x\z backward crossing composition: x\y y/z x/z

Type-raising forward type-raising: x y / (y\x)

backward type-raising: x y \ (y/x)

Coordination <&> x conj x x

Page 13: Combinatory Categorial Grammar (CCG)

Coordination with CCG

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z

forward crossing composition: x/y y\z x\z

backward crossing composition: x\y y/z x/z

Page 14: Combinatory Categorial Grammar (CCG)

Coordination with CCG

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z

forward crossing composition: x/y y\z x\z

backward crossing composition: x\y y/z x/z

Page 15: Combinatory Categorial Grammar (CCG)

Combinatory Rules

Application forward application: x/y y x

backward application: y x\y x

Composition forward composition: x/y y/z x/z

backward composition: x\y y\z x\z forward crossing composition: x/y y\z x\z backward crossing composition: x\y y/z x/z

Type-raising forward type-raising: x y / (y\x)

backward type-raising: x y \ (y/x)

Coordination <&> x conj x x

Page 16: Combinatory Categorial Grammar (CCG)

Combinatory Rules 3 : Type-Raising Turns an argument into a function

Forward type-raising: X T / (T\X)

Backward type-raising: X T \ (T/X)

For instance…

Subject type-raising: NP S / (S \ NP)

Object type-raising: NP (S\NP) \ ((S\NP) / NP)

Page 17: Combinatory Categorial Grammar (CCG)

Combinatory Rules 3 : Type-Raising

Application forward application: x/y y x

backward application: y x\y x

Type-raising forward type-raising: x y / (y\x)

backward type-raising: x y \ (y/x)

Subject type-raising: NP S / (S \ NP)

Object type-raising: NP (S\NP) \ ((S\NP) / NP)

Coordination <&> x conj x x

Page 18: Combinatory Categorial Grammar (CCG)

Combinatory Rules 3 : Type-Raising

Page 19: Combinatory Categorial Grammar (CCG)

Tree Adjoining Grammar (TAG)

TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAAAAAAAAAAA

Some slides are from Prof. Julia Hockenmaier

Page 20: Combinatory Categorial Grammar (CCG)

TAG rule 1: Substitution

Page 21: Combinatory Categorial Grammar (CCG)

TAG rule 2: Adjunction

Page 22: Combinatory Categorial Grammar (CCG)

The effect of adjunction

Page 23: Combinatory Categorial Grammar (CCG)

Example: TAG Lexicon

Page 24: Combinatory Categorial Grammar (CCG)

Example: TAG Derivation

Page 25: Combinatory Categorial Grammar (CCG)

Example: TAG Derivation

Page 26: Combinatory Categorial Grammar (CCG)

Example: TAG Derivation

Page 27: Combinatory Categorial Grammar (CCG)

Cross-serial Dependencies

Dutch and Swiss-German

Comparison to regular grammar and CFG?

Page 28: Combinatory Categorial Grammar (CCG)