Compositional Semantics. Jacob Andreas

Similar documents
Natural Language Processing

A picture of the grammar. Sense and Reference. A picture of the grammar. A revised picture. Foundations of Semantics LING 130 James Pustejovsky

Phil 004. Week 4 Chapter 3 Clarity of an Argument

Meaning 1. Semantics is concerned with the literal meaning of sentences of a language.

Dynamic Semantics! (Part 1: Not Actually Dynamic Semantics) Brian Morris, William Rose

Interpreting quotations

Barack Obama: Son Of Promise, Child Of Hope By Bryan Collier, Nikki Grimes READ ONLINE

She doesn t like playing the guitar.

! Japanese: a wh-in-situ language. ! Taroo-ga [ DP. ! Taroo-ga [ CP. ! Wh-words don t move. Islands don t matter.

Tell me more about yourself

QUESTIONS AND LOGICAL ANALYSIS OF NATURAL LANGUAGE: THE CASE OF TRANSPARENT INTENSIONAL LOGIC MICHAL PELIŠ

P eo ple and. Lesson 1. 1 Read and write. 2 Write questions. Answer Yes, I do or No, I don t. 3 Write about the professions.

Lecture 7. Scope and Anaphora. October 27, 2008 Hana Filip 1

Quiz 4 Practice. I. Writing Narrative Essay. Write a few sentences to accurately answer these questions.

SETTING A PURPOSE As you read, pay attention to the points the author makes about scary tales. Would most people agree with her ideas?

CAS LX 522 Syntax I. Islands. Wh-islands. Phases. Complex Noun Phrase islands. Adjunct islands

We will explain how illustrations contribute to a story.

CHAPTER I INTRODUCTION

Scalable Semantic Parsing with Partial Ontologies ACL 2015

Excelsior College OWL National Day on Writing October 20, Doug Downs Montana State University

High Interest Reading Great Inventions

Symbolization and Truth-Functional Connectives in SL

LITERAL UNDERSTANDING Skill 1 Recalling Information

CONNECTION CARD CONNECTION CARD

SECTION 1 - GRAMMAR SKILLS

Lingua Inglese 3. Lecture 5. Searle s Classification of Speech Acts. Representatives: the speaker is committed in

NON-FICTION EDUCATORS GUIDE

Nissim Francez: Proof-theoretic Semantics College Publications, London, 2015, xx+415 pages

Eleventh Grade Language Arts Curriculum Pacing Guide

Wonderful words for writing! What words would make our August writing more interesting? Bucket List. What is on your August bucket list?

Pragmatics: How do we speak appropriately and politely?

The Visual Denotations of Sentences. Julia Hockenmaier with Peter Young and Micah Hodosh University of Illinois

Song Lessons Understanding and Using English Grammar, 3rd Edition. A lesson about adjective, adverb, and noun clauses (Chapters 12, 13, 17)

Pronouns and possessive adjectives

Characterizing quotation

Revised Curriculum Guide 2013

Lecture 13: Chapter 10: Semantics

Objective of This Book

Upper Intermediate AK

Semantics and Generative Grammar. Conversational Implicature: The Basics of the Gricean Theory 1

My time. Unit Read and listen. Lesson 1. There's NOTHING to do! I'm so bored... That's OK. You can use these. They're my brother's.

Grammar. have got. Have I got? Has he got? Have they got?

Table of Contents. Introduction Capitalization

Written Document Guidelines for PDR and CDR. EGR 107 Spring 2016 Lecture 4

CHAPTER 2 REVIEW OF RELATED LITERATURE. advantages the related studies is to provide insight into the statistical methods

Creative Writing. Contestant Name. Judge s signature

Pattern and Grammar in Music. Can we Analyze Music like Language? Musical Notation Db Eb Gb Ab Bb Db etc. C# D# F# G# A# C# etc.

CS 562: STATISTICAL NATURAL LANGUAGE PROCESSING

Gustar and Verbs Like Gustar 3/28/18

LESSON 7: ADVERBS. In the last lesson, you learned about adjectives. Adjectives are a kind of modifier. They modify nouns and pronouns.

A Growing Sense of Nationhood 1

Broken Arrow Public Schools 3 rd Grade Literary Terms and Elements

Formalising arguments

DOWNLOAD OR READ : THOUGHT AND REALITY IN HEGELS SYSTEM PDF EBOOK EPUB MOBI

Some Basic Concepts. Highlights of Chapter 1, 2, 3.

On Meaning. language to establish several definitions. We then examine the theories of meaning

Module 1 Our World. Ge Ready. Brixham Youth Club Come and join us! 1 Look at the information about a Youth Club. Write the words for activities.

Grammar Mistakes. Reference Flip Book. Grammar Mistake #1. Grammar Mistake #2. Cut along the dotted lines to create your mini flip.

Entry Exam BMS English

The English Primary Group Salmiya School. Year 5 Home Learning Revision Pack Week 11 26th - 30th November 2017

Consider the following quote: What does the quote mean? Be prepared to share your thoughts.

Key. (1) went (2) was cooking (3) ran (4) looked (5) was listening. (6) knew (7) were telling (8) told (9) knew (10) was lying

Bellringer: March 17

The future perfect GRAMMAR

(The) most in Dutch: Definiteness and Specificity. Koen Roelandt CRISSP, KU Leuven HUBrussel

Formal Grammars for Computational Musical Analysis The Blues and the Abstract Truth

Shurley Grammar Level 6 Chapter 8 Answer Key

PPP Lesson Plan Example Project Topic: Participial adjectives. Time: 60 mins

Which word from vocab list 16 do you see yourself. using in conversation in writing or reading? Why?

Lesson 11: Office Equipment (20-25 minutes)

Broken Arrow Public Schools 4 th Grade Literary Terms and Elements

PAT GUSTIN HOW NOT TO GET LOST IN TRANSLATION

R CONTROLLED VOWELS (ER, IR, UR)

Sentences: Subjects & Predicates

*Due: directly before you take this exam

Simple present tense vs. present continuous tense

Same and Different. Think and Discuss

4-1. Gerunds and Infinitives

1a Teens Time: A video call

Present perfect and simple past. LEVEL NUMBER LANGUAGE Beginner A2_2043G_EN English

Peter Possum s Playful Trick Review 9 Drawing Conclusions Main Idea

READING Why Do People Read?

Contents Starter Unit 1 Unit 2 Unit 3 Review 1 Cross-curricular 1: Math Unit 4 Unit 5 Unit 6 Review 2 Cross-curricular 2: Language Arts Unit 7

1 Lesson 11: Antiderivatives of Elementary Functions

A: (1) Didier and Peter French? B: No, they (2). They re from Canada, so. C: (3) your phone number ? D: No, it (4). That s my old number.

Translating for Legal Evidence

What s Emma doing? Vocabulary Weather. Presentation 3 Warm up Look at Poppy s world on page 93 and answer. 0 Language focus. Grammar.

Sentence Processing. BCS 152 October

Human Number Line. Introduction to Negative Numbers

CHAPTER I INTRODUCTION. Translation has many definitions, every expert has their own perspective.

1 HW1 is due now. 2 HW2 & HW3 are due next Tuesday. 3 We are trying to find space to hold the sections. 4 Our TA (Theo Korzukhin) has an office hour

Understanding English Grammar: A Linguistic Introduction

NZQA Support Material Contents. Unit standard 17361, version 4 Read recounts (ESOL)

Exceptional Children 3-5. Terms will be identified during the school year. Assessment and Data

Primary and Secondary Sources of information

CHAPTER II A BRIEF DESCRIPTION OF ELLIPTIC CONSTRUCTION. In this chapter, the writer would like to discuss about elliptic contruction or elliptical

Gerunds: Subject and Object Prof Marcelo Pereira de Leão

Semantics Journaling Assignment

Teaching Resources for The Story Smashup Webcast

A new neighborhood. Lesson. Learning Objectives : After studying this lesson, you should be able to

Transcription:

Compositional Semantics Jacob Andreas

Problem 1 Each of the three girls has a platypus. Each of the three girls climbed the mountain. How many platypuses? How many mountains? 2

Problem 1 Each of the three girls has a platypus. 3

Problem 1 Each of the three girls climbed the mountain. 4

Problem 2 name type coastal There are 128 cities Columbia city no in South Carolina. Cooper river yes Charleston city yes 5

Problem 3 Barack Obama was the 44th President of the United States. Obama was born on August 4 in Honolulu, Hawaii. In late August 1961, Obama's mother moved with him to the University of Washington in Seattle for a year Is Barack Obama from the United States? 6

Compositional semantics It s not enough to have structured representations of syntax: We also need structured representations of meaning. 7

Compositional semantics It s not enough to have structured representations of syntax: We also need structured representations of meaning. Today: How do we get from language to meaning? 8

PART I What is meaning?

Meaning in formal languages a + b = 17 10

Meaning in formal languages a + b = 17 11

Meaning in formal languages a + b = 17 a =? b =? 12

Meanings are sets of valid assignments a + b = 17 {a=0, b=0} {a=3, b=10} {a=5, b=12} {a=17, b=0} {a=10, b=7} {a=5, b=5} 13

Meanings are sets of valid assignments a + b = 17 {a=0, b=0} {a=17, b=0} {a=3, b=10} {a=10, b=7} {a=5, b=12} {a=5, b=5} 14

Meanings are sets of valid assignments a + 3 = 20 - b {a=0, b=0} {a=17, b=0} {a=3, b=10} {a=10, b=7} {a=5, b=12} {a=5, b=5} 15

Meanings are functions that judge validity a + b = 17 {a=5, b=12} 16

Meanings are functions that judge validity a + b = 17 {a=3, b=10} 17

Lessons from math a + b = 17 The meaning of a statement is the set of possible worlds consistent with that statement. Here, a possible world is an assignment of values to variables. {a=3, b=10} 18

Meaning in natural languages Pat Sal. 19

Representing possible worlds Individuals Pat Sal Properties whale sad Relations loves contains 20

Example world Sam Pat Sal Lou 21

Example world loves Sam scared worried Pat contains Sal Lou shark happy 22

Different example world loves sad Sam sad Pat loves loves Sal Lou sad sad 23

Representing possible worlds Individuals Pat Sal Properties whale={lou}, sad={pat,sal} Relations ={(Pat,Sal),(Sal,Sam)} 24

25 Pat Sal. worried Pat Sal Sam Lou loves happy scared shark worried Pat Sal Sam Lou loves contains loves scared shark worried Pat Sal Sam Lou contains happy scared human worried Pat Sal Sam Lou contains loves happy scared dog Interpretations of sentences

26 Lou is a shark. worried Pat Sal Sam Lou loves happy scared shark worried Pat Sal Sam Lou loves contains loves scared shark worried Pat Sal Sam Lou contains happy scared human worried Pat Sal Sam Lou contains loves happy scared dog Interpretations of sentences

Interpretations of sentences Sam is inside Lou, a shark. loves loves Sam scared Sam scared worried Pat worried Pat loves contains Sal Lou shark Sal Lou shark happy Sam scared loves worried Pat Sal happy contains Lou human worried Pat Sal Sam scared contains Lou dog happy 27

KEY IDEA The meaning of a sentence is the set of possible worlds it picks out.

PART II How is meaning constructed?

Explicit representation is too hard Pat Sal. loves loves Sam scared Sam scared worried Pat worried Pat loves contains Sal Lou shark Sal Lou shark happy Sam scared loves worried Pat Sal happy contains Lou human worried Pat Sal Sam scared contains Lou dog happy 30

Meanings as functions Pat Sal loves Sam scared worried Pat Sal Lou whale happy 31

Meanings as logical statements Pat Sal (Pat, Sal) loves Sam scared worried Pat Sal Lou whale happy 32

Expressing functions with logic Pat Sal (Pat, Sal) 33

Meanings as logical statements Lou is a shark shark(lou) 34

Meanings as logical statements Sam is inside Lou, a shark 35

Meanings as logical statements Sam is inside Lou, a shark shark(lou) contains(lou, Sam) 36

Meanings as logical statements Nobody Lou 37

Meanings as logical statements Nobody Lou x. (x, Lou) 38

Meanings as logical statements Everyone who knows Sal is happy 39

Meanings as logical statements Everyone who knows Sal is happy x. knows(x, Sal) happy(x) 40

KEY IDEA Collections of possible worlds can be compactly represented with logical forms.

Compositionality of meaning Pat Sal (Pat, Sal) Lou is a shark shark(lou) Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Nobody Lou x. (x, Lou) 42

Compositionality of meaning Pat Sal (Pat, Sal) Lou is a shark shark(lou) Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Nobody Lou x. (x, Lou) 43

Compositionality of meaning Pat Sal (Pat, Sal) Lou is a shark shark(lou) Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Nobody Lou x. (x, Lou) 44

Compositionality of meaning A Sal le gusta Pat (Pat, Sal) Lou es un tiburón shark(lou) Sam está dentro de Lou, un tiburón shark(lou) contains(lou, Sam) A nadie le gusta Lou x. (x, Lou) 45

Compositionality of meaning a12 b5 c67 a8 (Pat, Sal) a12 b5 c0 a0 shark(lou) a12 b16 c12 c12 shark(lou) contains(lou, Sam) a53 x. (x, Lou) 46

KEY IDEA Pieces of logical forms correspond to pieces of language

Building a lexicon Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Pat: Pat Sal: Sal Sam: Sam Lou: Lou 48

Building a lexicon Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Pat: Pat Sal: Sal Sam: Sam Lou: Lou shark: λx.whale(x) Sal: Sal Sam: Sam Lou: Lou 49

Building a lexicon Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Pat: Pat Sal: Sal Sam: Sam Lou: Lou shark: λx.shark(x) Sal: Sal Sam: Sam Lou: Lou 50

Building a lexicon Sam is inside Lou, a shark shark(lou) contains(lou, Sam) Pat: Pat Sal: Sal Sam: Sam Lou: Lou shark: λx.shark(x) : λyx.(x, y) nobody: λf. x. f(x) Lou:... Lou 51

What do we do now? Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) 52

What do we do now? Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) 53

What do we do now? Ax.letter(x)? Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) 54

What do we do now? letter(λf.ax.f(x))? Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) 55

What do we do now???? Ax.letter(x)? Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) 56

What do we do now?????? Pat sent Lou urgently. Pat λyzx.sent(x,y,z) Lou??? 57

Semantic types Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) {Obj,Obj,Obj} Object Object Object Object Bool Bool Bool Bool 58

Semantic types & syntax Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP,NP,NP NP NP NP NP S S S S 59

Semantic types & syntax Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S NP) NP) NP NP S (S NP) S NP 60

Categorial grammar Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S\NP)/NP)/NP NP NP/(S/NP) S/NP 61

Parsing with a categorial grammar Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S\NP)/NP)/NP NP NP/(S/NP) S/NP Ax.letter(x) NP 62

Parsing with a categorial grammar Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S\NP)/NP)/NP NP NP/(S/NP) S/NP λzx.sent(x,lou,z) (S\NP)/NP Ax.letter(x) NP 63

Parsing with a categorial grammar Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S\NP)/NP)/NP NP NP/(S/NP) S/NP λzx.sent(x,lou,z) (S\NP)/NP Ax.letter(x) NP λx.sent(x,lou,ax.letter(x)) S\NP 64

Parsing with a categorial grammar Pat sent Lou a letter Pat λyzx.sent(x,y,z) Lou λf.ax.f(x) λx.letter(x) NP ((S\NP)/NP)/NP NP NP/(S/NP) S/NP λzx.sent(x,lou,z) (S\NP)/NP Ax.letter(x) NP λx.sent(x,lou,ax.letter(x)) S\NP sent(pat,lou,ax.letter(x)) S 65

Semantics Synax! Pat sent Lou a letter 66

Semantics Synax! Pat sent Lou a letter 67

KEY IDEA Types in logic correspond to grammatical categories in language

Problem 1 Each of the three girls has a platypus. Each of the three girls climbed the mountain. x.girl(x) y.platypus(y) has(x, y) y.mountain(y) x.girl(x) climbed(x, y) 69

Problem 2 There are 128 cities in South Carolina name type coastal Columbia city no Cooper river yes Charleston city yes 70

Problem 2 There are 128 cities in South Carolina name type coastal Columbia city no Cooper river yes same(128, Charleston city yes count x. city(x) in(x, SouthCarolina) 71

Problem 3 Barack Obama was the 44th President of the United States. Obama was born on August 4 in Honolulu, Hawaii. In late August 1961, Obama's mother moved with him to the University of Washington in Seattle for a year Is Barack Obama from the United States? 72

Problem 3 Barack Obama was the 44th President of the United born(obama, Hawaii, August 4) States. Obama was born on August 4 in Honolulu, Hawaii. In late August 1961, Obama's mother moved with him to the University of Washington in Seattle for a year Is Barack from(obama, from United the United States) States? 73

Problem 3 Barack Obama was the 44th President of the United born(obama, Hawaii, August 4) States. Obama was born on August 4 in Honolulu, Hawaii. In late August 1961, Obama's mother moved with born(x, y, z) from(x, y) him to the University of Washington in Seattle for a year from(x, y) in(y, z) from(x, z) in(hawaii, United States) Is Barack from(obama, from United the United States) States? 74

KEY IDEA The meaning of a sentence is the set of possible worlds it picks out.

KEY IDEA Collections of possible worlds can be compactly represented with logical forms.

KEY IDEA Pieces of logical forms correspond to pieces of language

KEY IDEA Types in logic correspond to grammatical categories in language

BONUS ROUND What s missing?

Saying what we mean Q: How do you like my cooking? 80

Saying what we mean Q: How do you like my cooking? A: It s extremely interesting. 81

Saying what we mean Q: How do you like my cooking? A: It s extremely interesting. Q: Do you know what time it is? 82

Saying what we mean Q: How do you like my cooking? A: It s extremely interesting. Q: Do you know what time it is? A: Yes, I do. 83

Belief & possibility Sal might have seen a unicorn. Pat thinks Sal saw a unicorn. Pat wants to find a unicorn. 84

KEY IDEA Not all meaning is literal!

BONUS ROUND Historical Notes

Alfred Tarski Richard Montague

Learn more ling121: Logical Semantics Ted Briscoe s lecture notes: https://www.cl.cam.ac.uk/teaching/1011/l107/semantics.pdf Mark Steedman, The Syntactic Process 88