Semantic Analysis and Semantic Roles Ling 571 Deep Processing - - PowerPoint PPT Presentation

semantic analysis and semantic roles
SMART_READER_LITE
LIVE PREVIEW

Semantic Analysis and Semantic Roles Ling 571 Deep Processing - - PowerPoint PPT Presentation

Semantic Analysis and Semantic Roles Ling 571 Deep Processing Techniques for NLP February 10, 2016 Roadmap Semantic Analysis Semantic attachments Extended example Quantifier scope Earley Parsing and Semantics


slide-1
SLIDE 1

Semantic Analysis and Semantic Roles

Ling 571 Deep Processing Techniques for NLP February 10, 2016

slide-2
SLIDE 2

Roadmap

— Semantic Analysis

— Semantic attachments

— Extended example

— Quantifier scope — Earley Parsing and Semantics

— Semantic role labeling (SRL):

— Motivation:

— Between deep semantics and slot-filling

— Thematic roles — Thematic role resources

— PropBank, FrameNet

— Automatic SRL approaches

slide-3
SLIDE 3

NP Attachments

— Noun à restaurant

{λx.Restaurant(x)}

— Nom à Noun

{ Noun.sem }

— Det à Every

{ }

— NP à Det Nom

{ Det.sem(Nom.sem) }

λP.λQ.∀xP(x) ⇒ Q(x)

λQ.∀xRestaurant(x) ⇒ Q(x)

slide-4
SLIDE 4

Simple VP Representation

— Verb à close

{ }

— VP à Verb

{ Verb.sem }

— S à NP VP

{ NP .sem(VP .sem) }

λx.∃eClosed(e)∧ClosedThing(e, x)

λQ.∀xRestaurant(x) ⇒ Q(x)(λy.∃eClosed(e)∧ClosedThing(e, y)) ∀xRestaurant(x) ⇒ ∃eClosed(e)∧ClosedThing(e, x)

slide-5
SLIDE 5

Extending Attachments

— ProperNoun à Maharani

— What should semantics look like in this style?

— Needs to produce correct form when applied to VP

.sem — As in “Maharani closed” è

— Correct form:λx.x(Maharani)

— Applies predicate to Maharani

∃eClosed(e)∧ClosedThing(e, Maharani)

slide-6
SLIDE 6

More Attachments

— Determiner — Det à a

{ }

— a restaurant — Transitive verb:

— VP à Verb NP

{ Verb.sem(NP .sem) }

— Verb à opened

λP.λQ.∃xP(x)∧Q(x)

λQ.∃xRestaurant(x)∧Q(x)

λw.λz.w(λx.∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, x))

slide-7
SLIDE 7

Strategy for Semantic Attachments

— General approach:

— Create complex lambda expressions with lexical items

— Introduce quantifiers, predicates, terms

— Percolate up semantics from child if non-branching — Apply semantics of one child to other through lambda

— Combine elements, but don’t introduce new

slide-8
SLIDE 8

Matthew opened a restaurant

— Proper_Noun à Matthew {λx.x(Matthew)) — VP à Verb NP {Verb.sem(NP

.sem)}

— ( )

λz.(λQ.∃yRestaurant(y)∧Q(y) (λx.∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, x)))

λQ.∃yRestaurant(y)∧Q(y)

λw.λz.w(λx.∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, x)) λz.∃yRestaurant(y)∧ ∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, y)

slide-9
SLIDE 9

Matthew opened a restaurant

— Proper_Noun à Matthew {λx.x(Matthew)} — S à NP VP {NP

.sem(VP .sem)}

— λx.x(Matthew)

(λz.∃yRestaurant(y)∧ ∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, y)) (λz.∃yRestaurant(y)∧ ∃eOpened(e)∧Opener(e,z)∧OpenedThing(e, y))(Matthew)

slide-10
SLIDE 10

Matthew opened a restaurant

(λz.∃yRestaurant(y)∧ ∃eOpened(e)∧Opener(e, z)∧OpenedThing(e, y))(Matthew) ∃yRestaurant(y)∧ ∃eOpened(e)∧Opener(e, Matthew)∧OpenedThing(e, y)

slide-11
SLIDE 11

Sample Attachments

slide-12
SLIDE 12

Semantics Learning

— Zettlemoyer & Collins, 2005, 2007, etc; Mooney

2007

— Given semantic representation and corpus of

parsed sentences — Learn mapping from sentences to logical form

— Structured perceptron — Applied to ATIS corpus sentences

— Similar approaches to: learning instructions from

computer manuals, game play from walkthroughs, robocup/soccer play from commentary

slide-13
SLIDE 13

Quantifier Scope

— Ambiguity:

— Every restaurant has a menu

— Readings:

— all have a menu; — all have same menu

— Only derived one — Potentially O(n!) scopings (n=# quantifiers)

— There are approaches to describe ambiguity

efficiently and recover all alternatives.

∀xRestaurant(x) ⇒ ∃y(Menu(y)∧(∃eHaving(e)∧Haver(e, x)∧Had(e, y))) ∃yMenu(y)∧∀x(Restaurant(x) ⇒ ∃eHaving(e)∧Haver(e, x)∧Had(e, y)))

slide-14
SLIDE 14

Earley Parsing with Semantics

— Implement semantic analysis

— In parallel with syntactic parsing

— Enabled by compositional approach

— Required modifications

— Augment grammar rules with semantic field — Augment chart states with meaning expression — Completer computes semantics

— Can also fail

— Blocks semantically invalid parses

— Can impose extra work

slide-15
SLIDE 15

Semantic Analysis

— Applies principle of compositionality

— Rule-to-rule hypothesis — Links semantic attachments to syntactic rules

— Incrementally ties semantics to parse processing — Lambda calculus meaning representations — Most complexity pushed into lexical items — Non-terminal rules largely lambda applications