Combinatory Categorial Grammar (CCG) Categories Categories = types - - PowerPoint PPT Presentation

combinatory categorial grammar ccg categories
SMART_READER_LITE
LIVE PREVIEW

Combinatory Categorial Grammar (CCG) Categories Categories = types - - PowerPoint PPT Presentation

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


slide-1
SLIDE 1

Combinatory Categorial Grammar (CCG)

slide-2
SLIDE 2

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

slide-3
SLIDE 3

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

slide-4
SLIDE 4

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

slide-5
SLIDE 5

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

slide-6
SLIDE 6

CCG Derivation: CFG Derivation:

Examples from Prof. Julia Hockenmaier

slide-7
SLIDE 7

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

slide-8
SLIDE 8

Combinatory Rules 4 : Coordination

 X conj X  X  Alternatively, we can express coordination by defining

conjunctions as functions as follows:

 and := (X\X) / X

slide-9
SLIDE 9

Coordination with CCG

Examples from Prof. Mark Steedman

slide-10
SLIDE 10

Coordination with CCG

 Application

 forward application: x/y y  x  backward application: y x\y  x

slide-11
SLIDE 11

Coordination with CCG

 Application

 forward application: x/y y  x  backward application: y x\y  x

slide-12
SLIDE 12

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

slide-13
SLIDE 13

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

slide-14
SLIDE 14

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

slide-15
SLIDE 15

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

slide-16
SLIDE 16

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)

slide-17
SLIDE 17

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

slide-18
SLIDE 18

Combinatory Rules 3 : Type-Raising

slide-19
SLIDE 19

Tree Adjoining Grammar (TAG)

Some slides are from Prof. Julia Hockenmaier

slide-20
SLIDE 20

TAG rule 1: Substitution

slide-21
SLIDE 21

TAG rule 2: Adjunction

slide-22
SLIDE 22

The effect of adjunction

slide-23
SLIDE 23

Example: TAG Lexicon

slide-24
SLIDE 24

Example: TAG Derivation

slide-25
SLIDE 25

Example: TAG Derivation

slide-26
SLIDE 26

Example: TAG Derivation

slide-27
SLIDE 27

Cross-serial Dependencies

 Dutch and Swiss-German  Comparison to regular grammar and CFG?

slide-28
SLIDE 28