AMR dependency parsing with a typed semantic algebra
Jonas Groschwitz*^, Matthias Lindemann*, Meaghan Fowlie*, Mark Johnson^, Alexander Koller* *Saarland University ^Macquarie University ACL 2018 Melbourne, Australia July 17
AMR dependency parsing with a typed semantic algebra Jonas - - PowerPoint PPT Presentation
AMR dependency parsing with a typed semantic algebra Jonas Groschwitz*^, Matthias Lindemann*, Meaghan Fowlie*, Mark Johnson^, Alexander Koller* *Saarland University ^Macquarie University ACL 2018 Melbourne, Australia July 17
Jonas Groschwitz*^, Matthias Lindemann*, Meaghan Fowlie*, Mark Johnson^, Alexander Koller* *Saarland University ^Macquarie University ACL 2018 Melbourne, Australia July 17
2
Matthias Lindemann Saarland University Meaghan Fowlie Saarland University Mark Johnson Macquarie University Alexander Koller Saarland University
3
witch cast spell
ARG0 ARG1 A R G ARG1
try
The witch tried to cast a spell
Banarescu et al. 2013
4
witch cast spell
ARG0 ARG1 A R G ARG1
try
The witch tried to cast a spell
Parsing Banarescu et al. 2013
5
6
witch cast spell try witch cast spell
ARG0 ARG1 A R G ARG1
try
Step 1: Predict nodes Step 2: Predict edges
The witch tried to cast a spell
7
witch cast spell
ARG0 ARG1 A R G ARG1
try
7
Noun Transitive verb Control verb cast
ARG0 ARG1 A R G ARG1
try spell witch
8
Principle of compositionality: the meaning of a complex expression is determined by the meanings of its constituent expressions and the rules used to combine them.
The witch tried to cast a spell
witch
ARG1 A R G
S O
cast spell
ARG0 A R G 1
S O[S]
try
⊥ ⊥ ⊥
APPO APPS APPO
8
Principle of compositionality: the meaning of a complex expression is determined by the meanings of its constituent expressions and the rules used to combine them.
The witch tried to cast a spell
witch
ARG1 A R G
S O
cast spell
ARG0 A R G 1
S O[S]
try
APPO APPS APPO
8
Principle of compositionality: the meaning of a complex expression is determined by the meanings of its constituent expressions and the rules used to combine them.
The witch tried to cast a spell
witch
ARG1 A R G
S O
cast spell
ARG0 A R G 1
S O[S]
try
APPO APPS APPO
9
The witch tried to cast a spell
witch cast spell try
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAPPO
APPS APPO
9
The witch tried to cast a spell
difficult
witch cast spell try
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAPPO
APPS APPO
9
The witch tried to cast a spell
easy (easier) equivalent
witch cast spell try
dependencies!
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAppO AppS AppO
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAPPO
APPS APPO
9
The witch tried to cast a spell
easy (easier) equivalent
witch cast spell try
Part 1 Part 2 dependencies!
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAppO AppS AppO
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAPPO
APPS APPO
10
witch
cast spell try
A R G 1 A R G
S O cast
*HR algebra, Courcelle & Engelfriet 2012
10
witch
cast spell try
A R G 1 A R G
S O cast
*HR algebra, Courcelle & Engelfriet 2012
10
witch
cast spell try
A R G 1 A R G
S O cast
*HR algebra, Courcelle & Engelfriet 2012
head spell argument
ARG1 A R G
cast S spell
AppO
11
cast
ARG1 A R G
cast S spell Has type [S]
witch
cast spell try
11
ARG0 A R G 1
try S O[S] Object must have type [S] cast
ARG1 A R G
cast S spell Has type [S]
witch
cast spell try
11
ARG0 A R G 1
try S O[S] Object must have type [S] Matching sources automatically merge cast spell
ARG0 ARG1 A R G ARG1
try S
AppO
cast
ARG1 A R G
cast S spell Has type [S]
witch
cast spell try
12
witch cast spell
ARG0 ARG1 A R G ARG1
try cast spell
ARG0 ARG1 A R G ARG1
try S witch
witch
cast spell try
AppS
The witch tried to cast a spell
13
A R G 1 A R G
S O cast
AppO
ARG0
S sleep
ARG0
sleep
A R G 1 A R G
S cast
*cast to sleep
Has type [S]
13
A R G 1 A R G
S O cast
AppO
ARG0
S sleep
ARG0
sleep
A R G 1 A R G
S cast
*cast to sleep
Object must have type [ ] Has type [S]
14
witch
ARG0 A R G 1
try S
ARG0 A R G 1
try S O[S] Object must have type [S]
AppO
Has type [ ] witch
*tried to witch
witch
cast spell try
15
dependencies define operations, but not their order
The witch cast a spell
witch
ARG1 ARG0S O cast spell
AppS AppO
15
dependencies define operations, but not their order
The witch cast a spell
witch
ARG1 ARG0S O cast spell
AppS AppO
here: order does not matter
16
The witch tried to cast a spell
witch
ARG1 ARG0S O cast spell
ARG0 ARG1S O[S] try
AppO AppS AppO
here: need APPO before APPS to get reentrancies
16
The witch tried to cast a spell
witch
ARG1 ARG0S O cast spell
ARG0 ARG1S O[S] try
AppO AppS AppO
here: need APPO before APPS to get reentrancies
➡ use type system to determine operation order
16
The witch tried to cast a spell
witch
ARG1 ARG0S O cast spell
ARG0 ARG1S O[S] try
AppO AppS AppO
Building instructions for an AMR that we know how to predict
17
The witch tried to cast a spell
easy (easier) equivalent
witch
cast spell try
Part 1 Part 2
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAPPO
APPS APPO
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAppO AppS AppO
18
The witch tried to cast a spell
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] tryAppO AppS AppO
witch
A R G 1 ARG0 S O castspell
A R G ARG1 S O[S] try⊥
AppO AppS
19
E.g. Lewis et al. (2014) for CCG The witch tried … spell w0 w1 w2 wn P0 P1 P2 Pn … bidirectional LSTM probability distribution
word embeddings
ARG0 A R G 1
S O[S]
try
train to predict
20
Kiperwasser & Goldberg (2016) for syntactic dependencies The witch tried … spell w0 w1 w2 wn P2 1 → … bidirectional LSTM probability distribution over operations word embeddings train to predict
AppS
tried witch
21
witch cast spell
ARG1 A R G
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
AMR Corpus Required training data
The witch cast a spell
21
witch cast spell
ARG1 A R G
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
AMR Corpus Required training data
The witch cast a spell
witch
A R G 1 ARG0cast S O
spell
Heuristics
The witch cast a spell
21
witch cast spell
ARG1 A R G
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
AMR Corpus Required training data
The witch cast a spell
witch
A R G 1 ARG0cast S O
spell
Heuristics
The witch cast a spell
determine
22
Find the best well-typed dependency tree
22
Find the best well-typed dependency tree
22
Find the best well-typed dependency tree
22
➡ Approximate decoders
Find the best well-typed dependency tree
23
A: Fixed tree
The witch cast a spell
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
23
A: Fixed tree
The witch cast a spell
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
23
A: Fixed tree
The witch cast a spell
The witch cast a spell
witch
A R G 1 ARG0 cast S Ospell
AppO AppS
B: Projective: can only combine adjacent constituents "CKY parsing with types as nonterminals"
24
25
witch cast spell try witch cast spell
ARG0 ARG1 A R G ARG1
try
Step 1: Predict nodes Step 2: Predict edges
26
Model Method Smatch score JAMR (Flanigan et al. 2016) graph decoder 67 Foland & Martin 2017 graph decoder 70.7 van Noord & Bos 2017 neural seq2seq 68.5 Lyu & Titov (ACL 2018) graph decoder 73.7 Our baseline graph decoder 66.1 Our projective decoder 70.2 Our fixed tree decoder 70.2
Dataset: LDC2015E86
27
Tivov 2018)
27
Tivov 2018)
we thank you
ARG1 ARG0