Unidirectional Derivation Semantics for Synchronous Tree-Adjoining - - PowerPoint PPT Presentation

unidirectional derivation semantics for synchronous tree
SMART_READER_LITE
LIVE PREVIEW

Unidirectional Derivation Semantics for Synchronous Tree-Adjoining - - PowerPoint PPT Presentation

Unidirectional Derivation Semantics for Synchronous Tree-Adjoining Grammars Matthias Bchse 1 and Andreas Maletti 2 and Heiko Vogler 1 1 Faculty of Computer Science 2 Institute for Natural Language Processing Technische Universitt Dresden


slide-1
SLIDE 1

Unidirectional Derivation Semantics for Synchronous Tree-Adjoining Grammars

Matthias Büchse1 and Andreas Maletti2 and Heiko Vogler1

1 Faculty of Computer Science

Technische Universität Dresden 01062 Dresden, Germany

2 Institute for Natural Language Processing

Universität Stuttgart 70569 Stuttgart, Germany maletti@ims.uni-stuttgart.de

Taipei — August 17, 2012

Andreas Maletti DLT 2012 1

slide-2
SLIDE 2

Tree-Adjoining Grammars

Motivation [JOSHI]

  • mildly context-sensitive formalism
  • local dependencies in rules

Andreas Maletti DLT 2012 2

slide-3
SLIDE 3

Tree-Adjoining Grammars

Motivation [JOSHI]

  • mildly context-sensitive formalism
  • local dependencies in rules
  • but global dependencies in derivation

Andreas Maletti DLT 2012 3

slide-4
SLIDE 4

Tree-Adjoining Grammars

Motivation [JOSHI]

  • mildly context-sensitive formalism
  • local dependencies in rules
  • but global dependencies in derivation

Applications

  • TAG for English [XTAG GROUP 2001]
  • TAG for German [KALLMEYER et al. 2010]

Andreas Maletti DLT 2012 4

slide-5
SLIDE 5

Tree-Adjoining Grammars

Definition (JOSHI et al. 1969)

Tree-adjoining grammar (TAG) has a finite set of

  • substitution rules
  • adjunction rules

Substitution rule (rules of a regular tree grammar):

NP NP

  • f

NP

Andreas Maletti DLT 2012 5

slide-6
SLIDE 6

Tree-Adjoining Grammars

S

Andreas Maletti DLT 2012 6

slide-7
SLIDE 7

Tree-Adjoining Grammars

S NP VP

Used substitution rule

S NP VP

Andreas Maletti DLT 2012 7

slide-8
SLIDE 8

Tree-Adjoining Grammars

S NP N children VP

Used substitution rule

NP N children

Andreas Maletti DLT 2012 8

slide-9
SLIDE 9

Tree-Adjoining Grammars

S NP N children VP V NP

Used substitution rule

VP V NP

Andreas Maletti DLT 2012 9

slide-10
SLIDE 10

Tree-Adjoining Grammars

S NP N children VP V like NP

Used substitution rule

V like

Andreas Maletti DLT 2012 10

slide-11
SLIDE 11

Tree-Adjoining Grammars

S NP N children VP V like NP N

Used substitution rule

NP N

Andreas Maletti DLT 2012 11

slide-12
SLIDE 12

Tree-Adjoining Grammars

S NP N children VP V like NP N candies

Used substitution rule

N candies

Andreas Maletti DLT 2012 12

slide-13
SLIDE 13

Tree-Adjoining Grammars

Definition (JOSHI et al. 1969)

Tree-adjoining grammar (TAG) has a finite set of

  • substitution rules
  • adjunction rules

Adjunction rule:

N ADJ

  • Andreas Maletti

DLT 2012 13

slide-14
SLIDE 14

Tree-Adjoining Grammars

S NP N children VP V like NP N candies

Used adjunction rule

N ADJ

  • Andreas Maletti

DLT 2012 14

slide-15
SLIDE 15

Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ

  • N

candies

Used adjunction rule

N ADJ

  • Andreas Maletti

DLT 2012 15

slide-16
SLIDE 16

Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ

  • N

candies

Used adjunction rule

N ADJ

  • Andreas Maletti

DLT 2012 16

slide-17
SLIDE 17

Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ N candies

Used adjunction rule

N ADJ

  • Andreas Maletti

DLT 2012 17

slide-18
SLIDE 18

Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ red N candies

Used adjunction rule

N ADJ

  • Used substitution rule

ADJ red

Andreas Maletti DLT 2012 18

slide-19
SLIDE 19

Synchronous Tree-Adjoining Grammars

Definition (SHIEBER and SCHABES 1990)

Synchronous tree-adjoining grammar (STAG) consists of two synchronized TAG Substitution rule:

NP NP

  • f

NP — NP NP NP

Andreas Maletti DLT 2012 19

slide-20
SLIDE 20

Synchronous Tree-Adjoining Grammars

Definition (SHIEBER and SCHABES 1990)

Synchronous tree-adjoining grammar (STAG) consists of two synchronized TAG Adjunction rule:

N ADJ

N

  • ADJ

Andreas Maletti DLT 2012 20

slide-21
SLIDE 21

Synchronous Tree-Adjoining Grammars

S S

Andreas Maletti DLT 2012 21

slide-22
SLIDE 22

Synchronous Tree-Adjoining Grammars

S NP VP S NP VP

Andreas Maletti DLT 2012 22

slide-23
SLIDE 23

Synchronous Tree-Adjoining Grammars

S NP N children VP S NP DET les N enfants VP

Andreas Maletti DLT 2012 23

slide-24
SLIDE 24

Synchronous Tree-Adjoining Grammars

S NP N children VP V NP S NP DET les N enfants VP V NP

Andreas Maletti DLT 2012 24

slide-25
SLIDE 25

Synchronous Tree-Adjoining Grammars

S NP N children VP V like NP S NP DET les N enfants VP V aiment NP

Andreas Maletti DLT 2012 25

slide-26
SLIDE 26

Synchronous Tree-Adjoining Grammars

S NP N children VP V like NP N S NP DET les N enfants VP V aiment NP DET les N

Andreas Maletti DLT 2012 26

slide-27
SLIDE 27

Synchronous Tree-Adjoining Grammars

S NP N children VP V like NP N candies S NP DET les N enfants VP V aiment NP DET les N bonbons

Andreas Maletti DLT 2012 27

slide-28
SLIDE 28

Synchronous Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ N candies S NP DET les N enfants VP V aiment NP DET les N N bonbons ADJ

Andreas Maletti DLT 2012 28

slide-29
SLIDE 29

Synchronous Tree-Adjoining Grammars

S NP N children VP V like NP N ADJ red N candies S NP DET les N enfants VP V aiment NP DET les N N bonbons ADJ rouges

Andreas Maletti DLT 2012 29

slide-30
SLIDE 30

Contents

1

Motivation

2

Synchronous Tree-Adjoining Grammars

3

Relating STAG and XTOP

4

Bimorphism Semantics

5

Summary

Andreas Maletti DLT 2012 30

slide-31
SLIDE 31

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ α β t

Andreas Maletti DLT 2012 31

slide-32
SLIDE 32

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ x1 x2 α σ x1 γ α β t tα0

1

Andreas Maletti DLT 2012 32

slide-33
SLIDE 33

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ α β t tα0

1

Andreas Maletti DLT 2012 33

slide-34
SLIDE 34

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ α β t tα0

1 = tx1/α0

Andreas Maletti DLT 2012 34

slide-35
SLIDE 35

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 x2 α t tα0

1 = tx1/α0

tγ(, β)1

2

Andreas Maletti DLT 2012 35

slide-36
SLIDE 36

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ

  • α

β t tα0

1 = tx1/α0

tγ(, β)1

2

Andreas Maletti DLT 2012 36

slide-37
SLIDE 37

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ

  • α

β t tα0

1 = tx1/α0

tγ(, β)1

2

Andreas Maletti DLT 2012 37

slide-38
SLIDE 38

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ α β t tα0

1 = tx1/α0

tγ(, β)1

2

Andreas Maletti DLT 2012 38

slide-39
SLIDE 39

Tree Substitution

Types

  • first-order: tu0

v replaces leaf at v in t by u

  • second-order: tu1

v replaces unary node at v in t by u

(with the subtree at v1 substituted into u) σ x1 x2 α σ α x2 α σ x1 γ α β t tα0

1 = tx1/α0

tγ(, β)1

2 = tx2/γ(, β)1

Andreas Maletti DLT 2012 39

slide-40
SLIDE 40

Monadic Doubly Ranked Alphabet

Definition

Alphabet Q with a mapping rk: Q → {0, 1}2

Andreas Maletti DLT 2012 40

slide-41
SLIDE 41

Monadic Doubly Ranked Alphabet

Definition

Alphabet Q with a mapping rk: Q → {0, 1}2

Notes

  • input and output rank rk1 and rk2
  • rank 0 → first-order substitution t· · ·0
  • rank 1 → second-order substitution t· · ·1

Andreas Maletti DLT 2012 41

slide-42
SLIDE 42

Monadic Doubly Ranked Alphabet

Definition

Alphabet Q with a mapping rk: Q → {0, 1}2

Notes

  • input and output rank rk1 and rk2
  • rank 0 → first-order substitution t· · ·0
  • rank 1 → second-order substitution t· · ·1
  • Q(i,j) = {q ∈ Q | rk(q) = (i, j)}

Andreas Maletti DLT 2012 42

slide-43
SLIDE 43

Synchronous Tree-Adjoining Grammar

Definition (BÜCHSE, NEDERHOF, VOGLER 2011)

(Q, Σ, q0, R) synchronous tree-adjoining grammar (STAG) if

  • Q monadic doubly-ranked alphabet

states

  • Σ alphabet

terminals

  • q0 ∈ Q(0,0)

initial state

  • R finite set of elements

rules

  • f the form q → ζζ′, q1 · · · qm

– ζ, ζ′ trees over Σ ∪ {x1, . . . , xm} ∪ {} – occurs according to rank of q in (ζ, ζ′) – xj occurs exactly once in ζ and ζ′ – rank of xj in (ζ, ζ′) equals rank of qj

Andreas Maletti DLT 2012 43

slide-44
SLIDE 44

Synchronous Tree-Adjoining Grammar

Example

(Q, Σ, q0, R) with q0 ∈ Q(0,0) and q ∈ Q(1,1) q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • q0 →
  • #

# , ε

  • q →
  • S

a x1 S b

  • c

d S a d x1 S b c

  • , q
  • q →
  • , ε
  • Andreas Maletti

DLT 2012 44

slide-45
SLIDE 45

Unidirectional Derivation Semantics

Definition

ξ1

ρ

⇒ ξ2 with ρ = q → ζζ′, q1 · · · qm if there are (i) minimal redex position v in ξ1 and (ii) trees t1, . . . , tm

1

  • ccurs in tj according to rk1(qj)

2 ξ1(v) = (q, ζθ1 · · · θm) with θj = xj/tjrk1(qj) 3 ξ2 = ξ1ζ′θ′ 1 · · · θ′ mrk2(q) v

with θ′

j =

  • xj/(qj, tj)0

if rk2(qj) = 0 xj/(qj, tj)()1

  • therwise

Andreas Maletti DLT 2012 45

slide-46
SLIDE 46

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

Example (Used rule)

q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • (ρ1)

Andreas Maletti DLT 2012 46

slide-47
SLIDE 47

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

Example (Used rule)

q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • (ρ1)

Andreas Maletti DLT 2012 47

slide-48
SLIDE 48

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

Example (Used rule)

q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • (ρ1)

Andreas Maletti DLT 2012 48

slide-49
SLIDE 49

Unidirectional Derivation Semantics

d

⇒ =

ρ1

⇒ ; · · · ;

ρn

⇒ with d = ρ1 · · · ρn

Definition

STAG G derivation-induces κG = {(s, t) | ∃d ∈ R∗ : (q0, s) d ⇒ t}

Andreas Maletti DLT 2012 49

slide-50
SLIDE 50

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

ρ3

S a d (q, ) S b c S # (q0, #) #

ρ4ρ2

= ⇒

S a d S b c S # # #

Example (Rules)

q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • (ρ1)

Andreas Maletti DLT 2012 50

slide-51
SLIDE 51

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

ρ3

S a d (q, ) S b c S # (q0, #) #

ρ4ρ2

= ⇒

S a d S b c S # # #

Example (Rules)

q →

  • S

a x1 S b

  • c

d S a d x1 S b c

  • , q
  • (ρ3)

Andreas Maletti DLT 2012 51

slide-52
SLIDE 52

Unidirectional Derivation Semantics

  • q0,

S a S b S # # # c d

  • ρ1

  • q,

S a S b

  • c

d

  • S

# (q0, #) #

ρ3

S a d (q, ) S b c S # (q0, #) #

ρ4ρ2

= ⇒

S a d S b c S # # #

Example (Rules)

q0 →

  • #

# , ε

  • (ρ4)

q →

  • , ε
  • (ρ2)

Andreas Maletti DLT 2012 52

slide-53
SLIDE 53

Contents

1

Motivation

2

Synchronous Tree-Adjoining Grammars

3

Relating STAG and XTOP

4

Bimorphism Semantics

5

Summary

Andreas Maletti DLT 2012 53

slide-54
SLIDE 54

Extended Top-down Tree Transducer

Definition

STAG (Q, Σ, q0, R) is a (linear and nondeleting) extended top-down tree transducer (XTOP) if Q = Q(0,0)

Andreas Maletti DLT 2012 54

slide-55
SLIDE 55

Explicit Substitution

Σ = Σ ∪ {·[·], } where

  • ·[·] binary substitution symbol
  • nullary substitution site symbol

Definition

Evaluation ·E : TΣ → TΣ∪{}

  • E =
  • σ(t1, . . . , tk)E = σ(tE

1 , . . . , tE k )

  • ·[·](t, u)E = tE[ ← uE]

Andreas Maletti DLT 2012 55

slide-56
SLIDE 56

XTOP using Explicit Substitution

Example

q0 →

  • ·[·]

x1 S # x2 # ·[·] x1 S # x2 #

, qq0

  • q0 →
  • #

# , ε

  • q →
  • S

a ·[·] x1 S b

  • c

d S a d ·[·] x1 S b c

  • , q
  • q →
  • , ε
  • Andreas Maletti

DLT 2012 56

slide-57
SLIDE 57

Definition

Tree t ∈ TΣ is well-behaved (under ·E) if

  • tE ∈ TΣ
  • tE

1 ∈ CΣ for every subtree of the form ·[·](t1, t2) in t

Andreas Maletti DLT 2012 57

slide-58
SLIDE 58

Definition

Tree t ∈ TΣ is well-behaved (under ·E) if

  • tE ∈ TΣ
  • tE

1 ∈ CΣ for every subtree of the form ·[·](t1, t2) in t

Lemma

Well-behaved trees form a regular tree language

Andreas Maletti DLT 2012 58

slide-59
SLIDE 59

Well-behaved XTOP

Example

q0 →

  • ·[·]

x1 S # x2 # ·[·] x1 S # x2 #

, qq0

  • q0 →
  • #

# , ε

  • q →
  • S

a ·[·] x1 S b

  • c

d S a d ·[·] x1 S b c

  • , q
  • q →
  • , ε
  • Andreas Maletti

DLT 2012 59

slide-60
SLIDE 60

Main Theorem

κG and κM: unidirectional derivation semantics

Theorem

For every STAG G there is a well-behaved XTOP M such that κG = (κM)E and vice versa

Andreas Maletti DLT 2012 60

slide-61
SLIDE 61

Contents

1

Motivation

2

Synchronous Tree-Adjoining Grammars

3

Relating STAG and XTOP

4

Bimorphism Semantics

5

Summary

Andreas Maletti DLT 2012 61

slide-62
SLIDE 62

Bimorphism Semantics

Note

The bimorphism semantics is

  • taken from [BÜCHSE, NEDERHOF, VOGLER 2011]
  • similar (and equivalent) to the synchronous derivation

semantics

  • written as τG

Theorem (Theorem 4 of [MALETTI 2007])

τM = κM for every XTOP M

Andreas Maletti DLT 2012 62

slide-63
SLIDE 63

Bimorphism Semantics

q0 q0

q0 →

  • x1

S # x2 # x1 S # x2 #

, qq0

  • (ρ1)

Andreas Maletti DLT 2012 63

slide-64
SLIDE 64

Bimorphism Semantics

q S # q0 # q S # q0 #

q →

  • S

a x1 S b

  • c

d S a d x1 S b c

  • , q
  • (ρ3)

Andreas Maletti DLT 2012 64

slide-65
SLIDE 65

Bimorphism Semantics

S a q S b S # q0 # c d S a d q S b c S # q0 #

q0 →

  • #

# , ε

  • (ρ4)

Andreas Maletti DLT 2012 65

slide-66
SLIDE 66

Bimorphism Semantics

S a q S b S # # # c d S a d q S b c S # # #

q →

  • , ε
  • (ρ2)

Andreas Maletti DLT 2012 66

slide-67
SLIDE 67

Bimorphism Semantics

S a S b S # # # c d S a d S b c S # # #

q →

  • , ε
  • (ρ2)

Andreas Maletti DLT 2012 67

slide-68
SLIDE 68

Main Theorem

τG and τM: bimorphism semantics

Theorem

For every STAG G there is a well-behaved XTOP M such that τG = (τM)E and vice versa

Andreas Maletti DLT 2012 68

slide-69
SLIDE 69

Contents

1

Motivation

2

Synchronous Tree-Adjoining Grammars

3

Relating STAG and XTOP

4

Bimorphism Semantics

5

Summary

Andreas Maletti DLT 2012 69

slide-70
SLIDE 70

Uniform STAG

Definition

STAG (Q, Σ, q0, R) uniform if

  • Q = Q(1,1) ∪ {q0}
  • q0 does not occur in the right-hand sides

Theorem

For every STAG G there is a uniform STAG G′ with τG = τG′

Andreas Maletti DLT 2012 70

slide-71
SLIDE 71

Summary

κG and κM: unidirectional derivation semantics τG and τM: bimorphism semantics

Corollary

For a tree transformation τ, the following are equivalent:

1 ∃ STAG G with τ = κG 2 ∃ well-behaved XTOP M with τ = (κM)E 3 ∃ well-behaved XTOP M with τ = (τM)E 4 ∃ STAG G with τ = τG 5 ∃ uniform STAG G with τ = τG

Andreas Maletti DLT 2012 71

slide-72
SLIDE 72

References

  • BÜCHSE, NEDERHOF, VOGLER: Tree parsing with synchronous

tree-adjoining grammars. In Parsing Technologies (IWPT 2011)

  • JOSHI, KOSARAJU, YAMADA: String adjunct grammars. In Switching and

Automata Theory (SWAT 1969)

  • KALLMEYER: A lexicalized tree-adjoining grammar for a fragment of

German focussing on syntax and semantics. Emmy-Noether group 2010

  • MALETTI: Compositions of extended top-down tree transducers.
  • Inform. Comput. 206(9–10), 2008
  • MALETTI: A tree transducer model for synchronous tree-adjoining
  • grammars. In Association for Computational Linguistics (ACL 2010)
  • SHIEBER, SCHABES: Synchronous tree-adjoining grammars.

In Computational Linguistics (CoLing 1990)

  • XTAG GROUP: A lexicalized tree adjoining grammar for English.
  • Techn. Report IRCS-01-03. University of Pennsylvania, 2001

Andreas Maletti DLT 2012 72