Semantics (Representing Meaning)

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Natural Language Processing Lecture 2: Semantics.
First-Order Logic (and beyond)
Syntax-Semantics Mapping Rajat Kumar Mohanty CFILT.
Language and Cognition Colombo, June 2011 Day 2 Introduction to Linguistic Theory, Part 4.
Albert Gatt LIN1180 – Semantics Lecture 10. Part 1 (from last week) Theories of presupposition: the semantics- pragmatics interface.
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
Linguistic Theory Lecture 8 Meaning and Grammar. A brief history In classical and traditional grammar not much distinction was made between grammar and.
Introduction to Semantics To be able to reason about the meanings of utterances, we need to have ways of representing the meanings of utterances. A formal.
CS 4705 Semantics: Representations and Analyses. What kinds of meaning do we want to capture? Categories/entities –IBM, Jane, a black cat, Pres. Bush.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Week 13a. QR CAS LX 522 Syntax I. Quantifiers We interpret Bill saw everyone as We interpret Bill saw everyone as For every person x, Bill saw x. For.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Type shifting and coercion Henriëtte de Swart November 2010.
Meaning and Language Part 1.
Syntax.
Sentence Structure Exercise.
Lecture 19 Ling 442. Exercises 1.Provide logical forms for the following: (a)Everything John does is crazy. (b)Most of what happened to Marcia is funny.
FIRST ORDER LOGIC Levent Tolga EREN.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
1 Semantics Interpretation Allen ’ s Chapter 9 J&M ’ s Chapter 15.
NLU: Frames Frame KR is a good way to represent common sense –can define stereotypical aspects of some domain we are interested in analyzing –sentences.
Introduction to English Syntax Level 1 Course Ron Kuzar Department of English Language and Literature University of Haifa Chapter 2 Sentences: From Lexicon.
Grammars.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Syntax Lecture 8: Verb Types 1. Introduction We have seen: – The subject starts off close to the verb, but moves to specifier of IP – The verb starts.
AI – CS289 Knowledge Representation Conceptual Graphs 25 th September 2006 Dr Bogdan L. Vrusias
ASPECTS OF LINGUISTIC COMPETENCE 4 SEPT 09, 2013 – DAY 6 Brain & Language LING NSCI Harry Howard Tulane University.
Dr. Monira Al-Mohizea MORPHOLOGY & SYNTAX WEEK 11.
The verb of a sentence expresses an action or simply states a fact. Verbs that simply state a fact are often called state of being verbs or verbs of existence.
SEMANTIC ANALYSIS WAES3303
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
NLP. Introduction to NLP Is language more than just a “bag of words”? Grammatical rules apply to categories and groups of words, not individual words.
Knowledge, Representation, and Reasoning CSC 244/444: Logical Foundations of Artificial Intelligence Henry Kautz.
Unit 5 : PREDICATES.
Lecture 7 Natural Language Determiners Ling 442. exercises 1. (a) is ambiguous. Explain the two interpretations. (a)Bill might have been killed. 2. Do.
Artificial Intelligence: Natural Language
Linguistic Essentials
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
LECTURE 2: SEMANTICS IN LINGUISTICS
Rules, Movement, Ambiguity
Natural Language Processing
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
1 Some English Constructions Transformational Framework October 2, 2012 Lecture 7.
Unit 1 Language Parts of Speech. Nouns A noun is a word that names a person, place, thing, or idea Common noun - general name Proper noun – specific name.
Parts of Speech Our First Unit in Grammar. What is a noun?
Meaning and Language Part 1. Plan We will talk about two different types of meaning, corresponding to two different types of objects: –Lexical Semantics:
Welcome to our Parent Workshop. Example questions.
MENTAL GRAMMAR Language and mind. First half of 20 th cent. – What the main goal of linguistics should be? Behaviorism – Bloomfield: goal of linguistics.
Expanding verb phrases
The Eight Parts of Speech Yes!! Awesome!! Finally!! English is so much fun!!
System and the axis of Choice  Systems are list of choices which are available in the grammar of a language.  It could be a list of things b/w which.
Lec. 10.  In this section we explain which constituents of a sentence are minimally required, and why. We first provide an informal discussion and then.
King Faisal University جامعة الملك فيصل Deanship of E-Learning and Distance Education عمادة التعلم الإلكتروني والتعليم عن بعد [ ] 1 King Faisal University.
Syntax Lecture 9: Verb Types 1.
Semantics (Representing Meaning)
Language, Logic, and Meaning
Chapter Eight Syntax.
Telegraphic speech: two- and three-word utterances
CSC 594 Topics in AI – Applied Natural Language Processing
Unit-4 Lexical Semantics M.B.Chandak, HoD CSE,
Conceptual Graphs Graph Structure
Chapter Eight Syntax.
Semantics Going beyond syntax.
Structure of a Lexicon Debasri Chakrabarti 13-May-19.
Syntax Lecture 12: Extended VP.
Presentation transcript:

Semantics (Representing Meaning) Allen’s Chapter 8 J&M’s Chapter 14

Logical Forms Logical form of a sentence is the context-independent meaning of the sentence “Meaning” has different usages: A warm engine means that the car has been used (implication) “Amble” means to walk slowly (definition) Meaning: context independent sense, versus Usage: context dependent aspects

Semantic Interpretation Logical Form: context-independent representation of meaning Semantic Interpretation: mapping a sentence to its logical form Contextual Interpretation: mapping the logical form to the final knowledge representation

Semantic Interpretation

Semantic Ambiguity Ambiguity is a serious obstacle for semantic interpretation A word is semantically ambiguous if it maps to more than one sense “Kid” is ambiguous between a baby goat and a human child “horse” is not ambiguous, though there are colts and mares

Test for semantic Ambiguity Certain syntactic constructs require identical class of objects I have two kids and George has three All senses involve some degree of vagueness I ran last year and George did too

Level of ambiguities The ambiguity might come from syntactic ambiguity Happy cats and dogs live on the farm Some may come from the scope of quantifiers Every boy loves a dog  d. Dog(d) &  b. Boy(b)  Loves(b, d)  b. Boy(b) &  d. Dog(d)  Loves(b, d) Quantifiers vary with respect to vagueness Many people saw the accident

The basic logical form language The primitive unit of meaning is the word sense These primitives are combined to form the meaning of more complex expressions Word senses serve as atoms or constants Abstract objects such as events and situations are represented by terms Relations and properties are represented by predicates

Examples: Fido is a dog is represented as Sue does not love Jack (DOG1 FIDO1) Sue does not love Jack (NOT (LOVE1 SUE1 JACK1)) I went home and had a drink A man entered the room. He walked over the table. ( x P(x) &  x Q(x)) Need for generalized quantifiers: All, some, more, many, a few, the, a , etc.

Common Qusntifiers

Generalized quantifiers All dogs bark and most people laughed (quantifier variable : restriction proposition body proposition) The logical form of Most dogs bark : (MOST d1 : (DOG1 d1) (BARK1 d1)) Most barking things are doges: (MOST d2 : (BARK1 d2) (DOG1 d2))

Generalized quantifiers (Cont.) The dog barks: (THE x : (DOG1 x) (BARKS1 x)) The happy dog barks: (THE x : (& (DOG1 x) (HAPPY x)) (BARKS1 x)) The dogs bark: (THE x : ((PLUR DOG1) x) (BARKS1 x))

Modal Operators Modal operators: to represent verbs such as believe and want, and for tense, and other modalities Modal operators look similar to logical operators, but have major differences: Terms within the scope of a modal operator may have an interpretation that differs from the logical one Let’s assume Jack is known as John to some people, If (JACK1 = JOHN22) Then (HAPPY1 JACK1) = (HAPPY1 JOHN22), But (BELIEVE1 SUE1 (HAPPY1 JACK1)) is not the same as (BELIEVE1 SUE1 (HAPPY1 JOHN22)) This is called failure of substitutivity in modal contexts

Modal Operators (Cont.) Modal (tense) operators: PAST, PRES, AND FUT (PRES (SEES1 JOHN1 FIDO1)) (PAST (SEES1 JOHN1 FIDO1)) (FUT (SEES1 JOHN1 FIDO1)) If JOHN1 = PRESIDENT1 at now, it may not be (PAST (SEES1 PRESIDENT1 FIDO1)) P and ~P can be both true in the past (at different times) (PAST (HAPPY1 JOHN1)) and (PAST (NOT (HAPPY1 JOHN1))) can be both true

Encoding ambiguity in the logical form A sentence may have multiple possible syntactical structures Each structure may have multiple logical forms Each word in the sentence may have multiple senses Simply generating all possible logical forms is not practical Certain ambiguities can be represented within the logical form (quasi logical form)

Encoding ambiguity in the logical form Anywhere an atomic sense is allowed, a set of possible atomic senses can be used The noun ball has at least two senses: BALL1, the object used in games, and BALL2, the social event Sue watched the ball is ambiguous (THE b1 : ({BALL1, BALL2} b1) (PAST (WATCH1 SUE1 b1))) , which abbreviates: (THE b1 : (BALL1 b1) (PAST (WATCH1 SUE1 b1))) (THE b1 : (BALL2 b1) (PAST (WATCH1 SUE1 b1)))

Ambiguity regarding scope of quantifiers Every boy loves a dog (LOVES1 <EVERY b1 (BOY1 b1)> <A d1 (DOG1 d1>) which abbreviates an ambiguity between: (EVERY b1 : (BOY1 b1) (A d1: (DOG1 d1) (LOVES1 b1 d1))) (A d1 : (DOG1 d1)(EVERY b1 : (BOY1 b1) (LOVES1 b1 d1))) A sentence with 4 quantifier would have 4! (24) possible ordering, and with 5 quantifier would have 5! (120) possible ordering

Ambiguity regarding scope of quantifiers A large number of constructs in natural languages are sensitive to scoping All generalized quantifier, including THE, are subject to scoping At every hotel, the receptionist was friendly

Ambiguity regarding scope of quantifiers Operators such as negation and tense are also scope sensitive Every boy didn’t run is ambiguous between (NOT (EVERY b1 : (BOY1 b1) (RUN1 b1))) (EVERY b1 : (BOY1 b1) (NOT (RUN1 b1))) Quasi logical form of the sentence is: (<NOT RUN1> <EVERY b1 BOY1>)

Proper names and Pronouns Proper names must be interpreted in context: name John refers to different people in different situations (NAME <variable> <name>), means that variable has the specified name John ran is represented as (<PAST RUN1> (NAME j1 “John”)) Pronouns are indexical and need a special function, too. (PRO <variable> <proposition>) Every man liked him (<PAST LIKE1> <EVERY m1 MAN1> (PRO m2 (HE1 m2))), where HE1 is the sense for he and him “He” is often written as (PRO m2 HE1)

Verbs and states in logical form John broke the window with the hammer The hammer broke the window The window broke The verb “break” has verb senses of different arity (<PAST BREAK1> (NAME j1 “John”) <THE w1 WINDOW1> <THE h1 HAMMER1>) (<PAST BREAK2> <THE h1 HAMMER1> <THE w1 WINDOW1> ) (<PAST BREAK3> <THE w1 WINDOW1>)

Events in logical form Introducing events into logical forms: John broke it ( e1 : BREAK1 e1 (NAME j1 “John”) (PRO i1 IT1)) John broke it with the hammer ( e1 : (& ( BREAK1 e1 (NAME j1 “John”) (PRO i1 IT1)) (INSTR e1 <THE h1 HAMMER1>))) Only one sense of verb break is needed

Case Grammars How are noun phrases related to verbs? Case Grammar claims: number of possible semantic relationships is small Sentences with different syntax but same meanings: identical case analyses John broke the window with a hammer. The hammer broke the window. The window broke.

Case and Thematic roles There is only a limited set of abstract semantic relationships that can hold between a verb and its arguments These are often called thematic or case roles John broke the window is represented as ( e1 : (& ( BREAK1 e1) (AGENT e1 (NAME j1 “John”)) (THEME e1 <THE w1 WINDOW1>))) General form: ( e : (& (Event-p e) (Relation1 e Obj1) … (Relationn e Objn))) Abbreviated as: (Event-p e [Relation1 Obj1] … [Relationn Objn])

Case and Thematic roles The quasi-logical form of John broke the window is: (<PAST BREAK1> e1 [AGENT (NAME j1 “John”)] [THEME <THE w1 WINDOW1>])

Different forms of representation Mary sees John is shown as: (PRES ( l1 (& (SEES1 l1) (AGENT l1 (NAME m1 “Mary”) (THEME l1 (NAME J1 “John”))))) Abbreviated form: (PRES (SEES1 l1 [AGENT (NAME m1 “Mary”)] [THEME (NAME J1 “John”)])) Without thematic roles: (PRES (SEES1 (NAME m1 “Mary”) (NAME J1 “John”)))

Determining Thematic Roles AGENT: instigator of the action (intention, volition, responsibility) Test: add a phrase like intentionally John intentionally broke the window. * The hammer intentionally broke the window Not all animate subjects are AGENTS * John intentionally died. * Mary remembered her birthday in order to get some presents.

Determining Thematic Roles THEME: entity undergoing a change or being acted upon for a transitive verb X, THEME is usually the answer to “what was Xed?” for an intransitive verb, THEME is used for subjects that are not AGENTs The clouds appeared over the horizon.

Speech Acts Different sentences have different purposes Each type of sentence indicates a different relation between the speaker and the receiver Each types is represented by an operator called a speech act (ASSERT (Proposition)) (Y/N-QUERY (Proposition)) (WH-QUERY (Proposition)) (COMMAND (Proposition))

Speech Acts (cont.) The man ate a peach Did the man eat a peach? (ASSERT (<PAST EAT> e1 [AGENT <THE m1 MAN1>] [THEME <A p1 PEACH>])) Did the man eat a peach? (Y/N-QUERY (<PAST EAT> e1 [AGENT <THE m1 MAN1>] [THEME <A p1 PEACH>])) Eat the peach (COMMAND (EAT e1 [THEME <THE p1 PEACH>]))

Wh questions A new quantifier WH is needed to represent wh-terms What : <WH p1 PHYSOBJ1> Which man : <WH m1 MAN1> Who : <WH p1 PERSON1> For how many and how much two more quantifiers HOW-MANY and HOW-MUCH are needed: What did the man eat? (WH-QUERY (<PAST EAT1> e1 [AGENT <THE m1 MAN1>] [THEME <WH w1 PHYSOBJ1>]))

Embedded sentences do not need any new notation The man who ate a peach left (ASSERT (<PAST LEAVE> e1 [AGENT <THE m1 (& (MAN1 m1) (<PAST EAT1> e2 [AGENT m1] [THEME <A p1 PEACH1>))>])