A Tree Transducer Model for Synchronous Tree-Adjoining Grammars - - PowerPoint PPT Presentation

a tree transducer model for synchronous tree adjoining
SMART_READER_LITE
LIVE PREVIEW

A Tree Transducer Model for Synchronous Tree-Adjoining Grammars - - PowerPoint PPT Presentation

A Tree Transducer Model for Synchronous Tree-Adjoining Grammars Andreas Maletti Universitat Rovira i Virgili Tarragona, Spain andreas.maletti@urv.cat Uppsala, Sweden July 13, 2010 A Tree Transducer Model for STAG A. Maletti 1


slide-1
SLIDE 1

A Tree Transducer Model for Synchronous Tree-Adjoining Grammars

Andreas Maletti

Universitat Rovira i Virgili Tarragona, Spain andreas.maletti@urv.cat

Uppsala, Sweden — July 13, 2010

A Tree Transducer Model for STAG

  • A. Maletti

· 1

slide-2
SLIDE 2

Synchronous Tree Substitution Grammar

S S

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-3
SLIDE 3

Synchronous Tree Substitution Grammar

S S CONJ wa S

Used rule

S — S CONJ wa S

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-4
SLIDE 4

Synchronous Tree Substitution Grammar

S NP 1 VP V NP 2 S CONJ wa S V NP 1 NP 2

Used rule

S NP VP V NP — S V NP NP

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-5
SLIDE 5

Synchronous Tree Substitution Grammar

S NP 1 VP V saw NP 2 S CONJ wa S V ra’aa NP 1 NP 2

Used rule

V saw — V ra’aa

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-6
SLIDE 6

Synchronous Tree Substitution Grammar

S NP DT the N VP V saw NP S CONJ wa S V ra’aa NP N NP

Used rule

NP DT the N — NP N

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-7
SLIDE 7

Synchronous Tree Substitution Grammar

S NP DT the N boy VP V saw NP S CONJ wa S V ra’aa NP N atefl NP

Used rule

N boy — N atefl

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-8
SLIDE 8

Synchronous Tree Substitution Grammar

S NP DT the N boy VP V saw NP DT the N S CONJ wa S V ra’aa NP N atefl NP N

Used rule

NP DT the N — NP N

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-9
SLIDE 9

Synchronous Tree Substitution Grammar

S NP DT the N boy VP V saw NP DT the N door S CONJ wa S V ra’aa NP N atefl NP N albab

Used rule

N door — N albab

A Tree Transducer Model for STAG

  • A. Maletti

· 2

slide-10
SLIDE 10

Synchronous Tree Substitution Grammar (cont’d)

Advantages

simple and natural model easy to train (from linguistic resources) symmetric

Implementation

extended top-down tree transducer in TIBURON [MAY, KNIGHT ’06]

A Tree Transducer Model for STAG

  • A. Maletti

· 3

slide-11
SLIDE 11

Synchronous Tree Substitution Grammar (cont’d)

Synchronous tree substitution grammar rule: S NP 1 VP V NP 2

w

— S V NP 1 NP 2 Corresponding extended top-down tree transducer rule: qS S x1 VP x2 x3

w

− → S qV x2 qNP x1 qNP x3

A Tree Transducer Model for STAG

  • A. Maletti

· 4

slide-12
SLIDE 12

Synchronous Tree-Adjoining Grammar

S S

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-13
SLIDE 13

Synchronous Tree-Adjoining Grammar

S NP VP S NP VP

Used substitution rule

S NP VP — S NP VP

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-14
SLIDE 14

Synchronous Tree-Adjoining Grammar

S NP 1 VP V NP 2 S NP 1 VP V NP 2

Used substitution rule

VP V NP — VP V NP

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-15
SLIDE 15

Synchronous Tree-Adjoining Grammar

S NP 1 VP V likes NP 2 S NP 1 VP V aime NP 2

Used substitution rule

V likes — V aime

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-16
SLIDE 16

Synchronous Tree-Adjoining Grammar

S NP VP V likes NP N S NP VP V aime NP DT les N

Used substitution rule

NP N — NP DT les N

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-17
SLIDE 17

Synchronous Tree-Adjoining Grammar

S NP VP V likes NP N candies S NP VP V aime NP DT les N bonbons

Used substitution rule

N candies — N bonbons

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-18
SLIDE 18

Synchronous Tree-Adjoining Grammar

S NP VP V likes NP N ADJ N candies S NP VP V aime NP DT les N N bonbons ADJ

Used adjunction rule

N ADJ N⋆ — N N⋆ ADJ

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-19
SLIDE 19

Synchronous Tree-Adjoining Grammar

S NP VP V likes NP N ADJ red N candies S NP VP V aime NP DT les N N bonbons ADJ rouges

Used substitution rule

ADJ red — ADJ rouges

A Tree Transducer Model for STAG

  • A. Maletti

· 5

slide-20
SLIDE 20

Main Question

Theorem

Every STSG is an STAG.

Question

Are they further related?

A Tree Transducer Model for STAG

  • A. Maletti

· 6

slide-21
SLIDE 21

Roadmap

1

Motivation

2

Explicit Substitution

3

Synchronous Tree-Adjoining Grammar

4

Main Result

5

Application

A Tree Transducer Model for STAG

  • A. Maletti

· 7

slide-22
SLIDE 22

First-Order Substitution

Definition

t[v1 ← t1, . . . , vk ← tk] denotes the result obtained by replacing (in parallel) all occurrences of leaves labelled vi in t by ti.

Example

S NP VP V saw NP NP DT the N S NP DT the N VP V saw NP DT the N t u t[NP ← u]

A Tree Transducer Model for STAG

  • A. Maletti

· 8

slide-23
SLIDE 23

Second-Order Substitution

Example

·[NP ← ·] S NP VP V saw NP NP DT the N

Explicit substitution

keep an explicit representation of substitutions in tree any number of substitutions allowed at any level

A Tree Transducer Model for STAG

  • A. Maletti

· 9

slide-24
SLIDE 24

Second-Order Substitution

Example

·[NP ← ·] S NP VP V saw NP NP DT the N

Evaluation

eval(·[x ← ·](t, u)) = eval(t)[x ← eval(u)] eval(σ(t1, . . . , tk)) = σ(eval(t1), . . . , eval(tk))

A Tree Transducer Model for STAG

  • A. Maletti

· 9

slide-25
SLIDE 25

Second-Order Substitution

Example

·[NP ← ·] S NP VP V saw NP NP DT the N

Evaluation

S NP DT the N VP V saw NP DT the N

Evaluation

eval(·[x ← ·](t, u)) = eval(t)[x ← eval(u)] eval(σ(t1, . . . , tk)) = σ(eval(t1), . . . , eval(tk))

A Tree Transducer Model for STAG

  • A. Maletti

· 9

slide-26
SLIDE 26

Roadmap

1

Motivation

2

Explicit Substitution

3

Synchronous Tree-Adjoining Grammar

4

Main Result

5

Application

A Tree Transducer Model for STAG

  • A. Maletti

· 10

slide-27
SLIDE 27

Tree-Adjoining Grammar

Intuition

A TAG has two types of rules: substitution rules (as in TSG) adjunction rules

Example (Adjunction)

NP DT les N bonbons N N⋆ ADJ rouges NP DT les N N bonbons ADJ rouges derived tree auxiliary tree adjunction

A Tree Transducer Model for STAG

  • A. Maletti

· 11

slide-28
SLIDE 28

Tree-Adjoining Grammar (cont’d)

Simplifications (see [SHIEBER ’06])

no substitution rules adjunction mandatory (if possible) each adjunction spot used at most once root nodes of auxiliary trees are never adjunction spots

Definition

A TAG is a finite set of derived trees (initial trees) and auxiliary trees (those containing a starred node)

A Tree Transducer Model for STAG

  • A. Maletti

· 12

slide-29
SLIDE 29

Tree-Adjoining Grammar (cont’d)

Simplifications (see [SHIEBER ’06])

no substitution rules adjunction mandatory (if possible) each adjunction spot used at most once root nodes of auxiliary trees are never adjunction spots

Definition

A TAG is a finite set of derived trees (initial trees) and auxiliary trees (those containing a starred node)

A Tree Transducer Model for STAG

  • A. Maletti

· 12

slide-30
SLIDE 30

Tree-Adjoining Grammar (cont’d)

Example

S T c S a S S⋆ a initial tree auxiliary tree S b S S⋆ b S S⋆ auxiliary tree auxiliary tree

Derivation

S T c ⇒ S a S S T c a ⇒ S a S b S S S T c a b ⇒ S a S b S S S S T c a b

String language

{wcw | w ∈ {a, b}∗}

A Tree Transducer Model for STAG

  • A. Maletti

· 13

slide-31
SLIDE 31

Synchronous Tree-Adjoining Grammar

Example

S T c — S T c S S a S⋆ a — S a S S⋆ a initial tree pair auxiliary tree pair S S⋆ — S S⋆ S S b S⋆ b — S b S S⋆ b auxiliary tree pair auxiliary tree pair

A Tree Transducer Model for STAG

  • A. Maletti

· 14

slide-32
SLIDE 32

Synchronous Tree-Adjoining Grammar (cont’d)

Example

S T c — S T c S S a S T c a — S a S S T c a S S S b S a S T c a b — S a S b S S S T c a b

String translation

{(wcwR, wcw) | w ∈ {a, b}∗}

A Tree Transducer Model for STAG

  • A. Maletti

· 15

slide-33
SLIDE 33

Roadmap

1

Motivation

2

Explicit Substitution

3

Synchronous Tree-Adjoining Grammar

4

Main Result

5

Application

A Tree Transducer Model for STAG

  • A. Maletti

· 16

slide-34
SLIDE 34

Simulation

Question

Can we simulate an STAG by some STSG?

A Tree Transducer Model for STAG

  • A. Maletti

· 17

slide-35
SLIDE 35

Simulation of Adjunction

Example (TAG)

S T c S a S S⋆ a initial tree auxiliary tree S b S S⋆ b S S⋆ auxiliary tree auxiliary tree

Correspondence (TSG)

·[S⋆ ← ·] S S T c S a ·[S⋆ ← ·] S S S⋆ a S b ·[S⋆ ← ·] S S S⋆ b S S⋆

A Tree Transducer Model for STAG

  • A. Maletti

· 18

slide-36
SLIDE 36

Simulation of Adjunction (cont’d)

Example

·[S⋆ ← ·] S S T c ⇒ ·[S⋆ ← ·] S a ·[S⋆ ← ·] S S S⋆ a S T c ⇒ ·[S⋆ ← ·] S a ·[S⋆ ← ·] S b ·[S⋆ ← ·] S S S⋆ b S S⋆ a S T c ⇒ ·[S⋆ ← ·] S a ·[S⋆ ← ·] S b ·[S⋆ ← ·] S S⋆ S S⋆ b S S⋆ a S T c

A Tree Transducer Model for STAG

  • A. Maletti

· 19

slide-37
SLIDE 37

Simulation of Adjunction (cont’d)

TSG result

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b ·[S⋆ ← ·] S S⋆ S S⋆ b S S⋆ a S T c

Evaluation

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b S S S⋆ b S S⋆ a S T c

Note

coincides with the result obtained by TAG

A Tree Transducer Model for STAG

  • A. Maletti

· 20

slide-38
SLIDE 38

Simulation of Adjunction (cont’d)

TSG result

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b ·[S⋆ ← ·] S S⋆ S S⋆ b S S⋆ a S T c

Evaluation

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b S S S⋆ b S S⋆ a S T c ·[S⋆ ← ·] S a S b S S S S⋆ a b S T c

Note

coincides with the result obtained by TAG

A Tree Transducer Model for STAG

  • A. Maletti

· 20

slide-39
SLIDE 39

Simulation of Adjunction (cont’d)

TSG result

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b ·[S⋆ ← ·] S S⋆ S S⋆ b S S⋆ a S T c

Evaluation

·[S⋆ ← ·] S a ·[S⋆ ← ·] S b S S S⋆ b S S⋆ a S T c ·[S⋆ ← ·] S a S b S S S S⋆ a b S T c S a S b S S S S T c a b

Note

coincides with the result obtained by TAG

A Tree Transducer Model for STAG

  • A. Maletti

· 20

slide-40
SLIDE 40

Main Result

Theorem

For every TAG G there exists a TSG G′ such that L(G) = {eval(t) | t ∈ L(G′)}

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-41
SLIDE 41

Main Result

Theorem

For every TAG G there exists a TSG G′ such that L(G) = {eval(t) | t ∈ L(G′)}

Theorem

For every STAG G there exists a STSG G′ such that T(G) = {(eval(t), eval(u)) | (t, u) ∈ T(G′)}

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-42
SLIDE 42

Main Result

Theorem

For every STAG G there exists a STSG G′ such that T(G) = {(eval(t), eval(u)) | (t, u) ∈ T(G′)}

Proof.

HOM HOM eval eval STSG STAG EMB EMB

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-43
SLIDE 43

Main Result

Theorem

For every STAG G there exists a STSG G′ such that T(G) = {(eval(t), eval(u)) | (t, u) ∈ T(G′)}

Proof.

HOM HOM eval eval STSG STAG EMB EMB

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-44
SLIDE 44

Main Result

Theorem

For every STAG G there exists a STSG G′ such that T(G) = {(eval(t), eval(u)) | (t, u) ∈ T(G′)}

Proof.

HOM HOM eval eval STSG STAG EMB EMB

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-45
SLIDE 45

Main Result

Theorem

For every STAG G there exists a STSG G′ such that T(G) = {(eval(t), eval(u)) | (t, u) ∈ T(G′)}

Proof.

HOM HOM eval eval STSG STAG EMB EMB

A Tree Transducer Model for STAG

  • A. Maletti

· 21

slide-46
SLIDE 46

Roadmap

1

Motivation

2

Explicit Substitution

3

Synchronous Tree-Adjoining Grammar

4

Main Result

5

Application

A Tree Transducer Model for STAG

  • A. Maletti

· 22

slide-47
SLIDE 47

Application

Overview

run an STAG in TIBURON (which can run STSGs) translate STSG algorithms to STAGs (factorization, etc.) integrate explicit substitution into semantics separate “context-free” and “context-sensitive” behavior

A Tree Transducer Model for STAG

  • A. Maletti

· 23

slide-48
SLIDE 48

References

ARNOLD, DAUCHET: Morphismes et bimorphismes d’arbres.

  • Theoret. Comput. Sci. 20. 1982

CHIANG, KNIGHT: An introduction to synchronous grammars. Tutorial at ACL. 2006 ENGELFRIET, VOGLER: Macro tree transducers. J. Comput. Syst.

  • Sci. 31. 1985

MAY, KNIGHT: TIBURON — a weighted tree automata toolkit. In CIAA, LNCS 4094. 2006 NEDERHOF: Weighted parsing of trees. In IWPT. 2009 SHIEBER, SCHABES: Synchronous tree-adjoining grammars. Computational Linguistics 3. 1990 SHIEBER: Unifying synchronous tree adjoining grammars and tree transducers via bimorphisms. In EACL. 2006

Thank you for your attention!

A Tree Transducer Model for STAG

  • A. Maletti

· 24