Logical Forms
- Prof. Sameer Singh
CS 295: STATISTICAL NLP WINTER 2017
February 16, 2017
Based on slides from Noah Smith, Dan Klein, Tom Kwiatkowski, and everyone else they copied from.
Logical Forms Prof. Sameer Singh CS 295: STATISTICAL NLP WINTER - - PowerPoint PPT Presentation
Logical Forms Prof. Sameer Singh CS 295: STATISTICAL NLP WINTER 2017 February 16, 2017 Based on slides from Noah Smith, Dan Klein, Tom Kwiatkowski, and everyone else they copied from. Outline Logical Semantics Combinatory Categorical Grammar
February 16, 2017
Based on slides from Noah Smith, Dan Klein, Tom Kwiatkowski, and everyone else they copied from.
CS 295: STATISTICAL NLP (WINTER 2017) 2
CS 295: STATISTICAL NLP (WINTER 2017) 3
CS 295: STATISTICAL NLP (WINTER 2017) 4
Meaning of Words
Meaning of Verbs
Still a gap between language and actionable representations
CS 295: STATISTICAL NLP (WINTER 2017) 5
What is a good Korean restaurant near UCI campus? Meaning Representation
CS 295: STATISTICAL NLP (WINTER 2017) 6
Domain Amir, Brook, Chen, … Gogi Grill, Eureka, Cha Tea, UCI, … Korean, American, Beverages, .. Properties Amir, Brook, Chen, … are humans Gogi Grill is good, Cha Tea has a long wait, Eureka is noisy, They are restaurants.. Relations Gogi serves Korean, Eureka serves American, Cha Tea serves Beverages, Amir likes Gogi, Chen likes Korean, … a, b, c, … gg, er, ct, uci, .. ko, am, be, … Humans = {a, b, c, …} Good = {gg} Noisy={er} Restaurant={gg,er,ct} … Serves = {(gg,ko),(er,am), (ct,be), …} Likes={(a,gg),(c,ko),..} … Is Eureka noisy? Does Cha Tea serve beverages? What does Amir like? er in Noisy? (ct,be) in Serves? list (a,?) in Likes
CS 295: STATISTICAL NLP (WINTER 2017) 7
Relations
Terms
Formula
then R(t1,..,tn) is a formula
CS 295: STATISTICAL NLP (WINTER 2017) 8
CS 295: STATISTICAL NLP (WINTER 2017) 9
Montague, 1970
The denotation of a natural language sentence is the set of conditions that must hold in the (model) world for the sentence to be true. This is called the logical form of the sentence. Everybody has something they don’t like.
CS 295: STATISTICAL NLP (WINTER 2017) 10
Montague, 1970
Abstraction Application
CS 295: STATISTICAL NLP (WINTER 2017) 11
Montague, 1970
CS 295: STATISTICAL NLP (WINTER 2017) 12
Montague, 1970
CS 295: STATISTICAL NLP (WINTER 2017) 13
CS 295: STATISTICAL NLP (WINTER 2017) 14
CS 295: STATISTICAL NLP (WINTER 2017) 15
CS 295: STATISTICAL NLP (WINTER 2017) 16
CS 295: STATISTICAL NLP (WINTER 2017) 17
Steedman, 2000
CS 295: STATISTICAL NLP (WINTER 2017) 18
Steedman, 2000
Bob ate a waffle. Amy ate a waffle.
CS 295: STATISTICAL NLP (WINTER 2017) 19
Steedman, 2000
Alice danced. Alice had been dancing when Bob sneezed.
CS 295: STATISTICAL NLP (WINTER 2017) 20
Steedman, 2000
Bob sings terribly.
CS 295: STATISTICAL NLP (WINTER 2017) 21
CS 295: STATISTICAL NLP (WINTER 2017) 22
Steedman, 2000
Syntax λ-Calculus
CS 295: STATISTICAL NLP (WINTER 2017) 23
Steedman, 2000
Instead of non-terminals, it has infinitely large set of categories or types Primitive Complex
CS 295: STATISTICAL NLP (WINTER 2017) 24
Steedman, 2000
Instead of rules, we have a small set of generic combinators.
CS 295: STATISTICAL NLP (WINTER 2017) 25
Steedman, 2000
Forward Backward
CS 295: STATISTICAL NLP (WINTER 2017) 26
Steedman, 2000
CS 295: STATISTICAL NLP (WINTER 2017) 27
Steedman, 2000
CS 295: STATISTICAL NLP (WINTER 2017) 28
Steedman, 2000
Forward Backward
CS 295: STATISTICAL NLP (WINTER 2017) 29
Steedman, 2000
Forward Backward
CS 295: STATISTICAL NLP (WINTER 2017) 30
Homework
Project
Summaries