Hoorcollege 6 en 7 semantic parsing Flashcards

1
Q

Semantic parsing

A

How do the meaning of words go together to make the meaning of a setence
* Semantic parsing as ML problem
Not good at compositionality, which is what semantics is all about

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

AM dependency trees

A

*turns problem into parsing + supertagging
* supertagging: use NN to guess best graph fragments for each word

To get correct AMR:
* Need functor-argument structure
* Don’t need order*

BILSTM
* 2 recursive neural networks (one in each direction)
LSTM
* Long Short-Term Memory” Recursive Neural Network: a kind of RNN that’s good at remembering info for a long time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Dependency parsing with a BiLSTM

A

Use word encodings from the supertagging BiLSTM to train another BiLSTM to predict AM-algebra operations between words

What we get from the NN:
* Supertagger: For a word in the sentence:
a prob distribution over graph constants (plus none)
* Edge model: For 2 words in the sentence:
a prob distribution over AM operations (plus none)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Type system

A

graphs have types, which consist of:
● open slots
● the type that each open slot wants the graph that fills it to have

  • Intransitiveverb: [S]
  • No open slots: []
  • Transitive verb: [S, O]
  • Control verb: [S, O[S]]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

AM Dependency parsing

A

Evaluation by finding best well-typed AM dependency tree and evaluating it to a graph is
slow because type system makes parsing NP-complete and two approximate unpruned
chart parsers still slow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Transition-based parsing

A

Transitioned-based parsing is faster than chart parsing: draw all outgoing edges of node,
determine graph constant, recursively continue with all children
* top down parsing
* no projectivity constraints
* Run-time is O(n^2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Lexical types and term types

A
  • Lexical type: type of the graph constant.
  • Term type:
    type of graph that the subtree evaluates to.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Theoretical guarantees

A
  • Soundness: Every derived AM dependency tree is well-typed.
  • Completeness: All well-typed AM dependency trees can be derived.
  • No dead ends: Every parser configuration can be completed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly