November 2006Semantics I1 Natural Language Processing Semantics I What is semantics for? Role of FOL Montague Approach.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

Problems of syntax-semantics interface ESSLLI 02 Trento.
Computational Semantics Aljoscha Burchardt, Alexander Koller, Stephan Walter, Universität des Saarlandes,
October 2004CSA4050: Semantics III1 CSA4050: Advanced Topics in NLP Semantics III Quantified Sentences.
Natural Language Processing Lecture 2: Semantics.
CSA2050: DCG I1 CSA2050 Introduction to Computational Linguistics Lecture 8 Definite Clause Grammars.
ICE1341 Programming Languages Spring 2005 Lecture #6 Lecture #6 In-Young Ko iko.AT. icu.ac.kr iko.AT. icu.ac.kr Information and Communications University.
First-Order Logic (and beyond)
07/05/2005CSA2050: DCG31 CSA2050 Introduction to Computational Linguistics Lecture DCG3 Handling Subcategorisation Handling Relative Clauses.
CSA4050: Advanced Topics in NLP Semantics IV Partial Execution Proper Noun Adjective.
Semantics (Representing Meaning)
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
CSA2050: DCG IV1 CSA2050: Definite Clause Grammars IV Handling Gaps II Semantic Issues.
SEMANTICS.
0 Montague Grammar EECS Fall 2004 Amy Kao. 1 Montague Grammar Maps syntactic structure with semantic structure Uses formal language to describe.
Statistical NLP: Lecture 3
CAS LX 502 8a. Formal semantics Truth and meaning The basis of formal semantics: knowing the meaning of a sentence is knowing under what conditions.
Knowledge Representation Methods
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
CS 4705 Lecture 17 Semantic Analysis: Syntax-Driven Semantics.
Let remember from the previous lesson what is Knowledge representation
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
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.
October 2004csa4050: Semantics II1 CSA4050: Advanced Topics in NLP Semantics II The Lambda Calculus Semantic Representation Encoding in Prolog.
October 2004CSA4050 Advanced Techniques in NLP 1 CSA4050: Advanced Topics in NLP Semantics 6 Semantics of Questions and Assertions involving Quantification.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
Atomic Sentences Chapter 1 Language, Proof and Logic.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
1 Natural Language Processing Lecture Notes 11 Chapter 15 (part 1)
Semantic Analysis CMSC Natural Language Processing May 8, 2003.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
October 2004CSA4050: Semantics III1 CSA4050: Advanced Topics in NLP Semantics III Quantified Sentences.
Computing Science, University of Aberdeen1 CS4025: Logic-Based Semantics l Compositionality in practice l Producing logic-based meaning representations.
Lecture 7 Natural Language Determiners Ling 442. exercises 1. (a) is ambiguous. Explain the two interpretations. (a)Bill might have been killed. 2. Do.
Computational Semantics Day 5: Inference Aljoscha.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
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
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Rules, Movement, Ambiguity
Artificial Intelligence: Natural Language
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Propositional Logic Predicate Logic
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
(SYNTAX-DRIVEN) SEMANTICS Yılmaz Kılıçaslan. Outline  Semiotic Triangle –Syntax –Semantics –Pragmatics  (Syntax-driven) Semantics –Semantics via languages.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Propositional Logic: Logical Agents (Part I)
Semantics (Representing Meaning)
Natural Language Processing
Language, Logic, and Meaning
1st-order Predicate Logic (FOL)
Linguistic Essentials
ece 720 intelligent web: ontology and beyond
Natural Language Processing
CSA4050: Advanced Topics in NLP
Representations & Reasoning Systems (RRS) (2.2)
1st-order Predicate Logic (FOL)
Presentation transcript:

November 2006Semantics I1 Natural Language Processing Semantics I What is semantics for? Role of FOL Montague Approach

November 2006Semantics I2 Semantics Semantics is the study of the meaning of NL expressions Expressions include sentences, phrases, and sentences. What is the goal of such study? –Provide a workable definition of meaning. –Explain semantic relations between expressions.

November 2006Semantics I3 Examples of Semantic Relations Synonymy –John killed Mary –John caused Mary to die Entailment –John fed his cat –John has a cat Consistency –John is very sick –John is not feeling well –John is very healthy

November 2006Semantics I4 Different Kinds of Meaning X means Y Meaning as definition: –a bachelor means an unmarried man Meaning as intention: –What did John mean by waving? Meaning as reference: "Eiffel Tower " means

November 2006Semantics I5 Workable Definition of Meaning Restrict the scope of semantics. Ignore irony, metaphor etc. Stick to the literal interpretations of expressions rather than metaphorical ones. (My car drinks petrol). Assume that meaning is understood in terms of something concrete.

November 2006Semantics I6 Concrete Semantics Procedural semantics: the meaning of a phrase or sentence is a procedure: “Pick up a big red block” (Winograd 1972) Object–Oriented Semantics: meaning is an instance of a class. Truth-Conditional Semantics

November 2006Semantics I7 Truth Conditional Semantics Key Claim: the meaning of a sentence is identical to the conditions under which it is true. Know the meaning of "Ġianni ate fish for tea" = know exactly how to apply it to the real world and decide whether it is true or false. On this view, one task of semantic theory is to provide a system for identifying the truth conditions of sentences.

November 2006Semantics I8 TCS and Semantic Relations TCS provides a precise account of semantic relations between sentences. Examples: –S1 is synonymous with S2. –S1 entails S2 –S1 is consistent with S2. –S1 is inconsistent with S2. Just like logic! Which logic?

November 2006Semantics I9 NL Semantics: Two Basic Issues How can we automate the process of associating semantic representations with expressions of natural language? How can we use semantic representations of NL expressions to automate the process of drawing inferences? We will focus mainly on first issue.

November 2006Semantics I10 Associating Semantic Representations Automatically Design a semantic representation language. Figure out how to compute the semantic representation of sentences Link this computation to the grammar and lexicon.

November 2006Semantics I11 Semantic Representation Language Logical form (LF) is the name used by logicians (Russell, Carnap etc) to talk about the representation of context- independent meaning. Semantic representation language has to encode the LF. One concrete representation for logical form is first order logic (FOL)

November 2006Semantics I12 Why is FOL a good thing? Has a precise, model-theoretic semantics. If we can translate a NL sentence S into a sentence of FOL, then we have a precise grasp on at least part of the meaning of S. Important inference problems have been studied for FOL. Computational solutions exist for some of them. Hence the strategy of translating into FOL also gives us a handle on inference.

November 2006Semantics I13 Anatomy of FOL Symbols of different types –constant symbols: a,b,c –variable symbols: x, y, z –function symbols: f,g,h –predicate symbols: p,q,r –connectives: &, v,  –quantifiers: ,  –punctuation: ), (, “,”

November 2006Semantics I14 Anatomy of FOL Symbols of different types –constant symbols: csa3180, nlp, mike, alan, rachel, csai –variable symbols: x, y, z –function symbols:lecturerOf, subjectOf –predicate symbols: studies, likes –connectives: &, v,  –quantifiers: ,  –punctuation: ), (, “,”

November 2006Semantics I15 Anatomy of FOL With these symbols we can make expressions of different types –Expressions for referring to things constant: alan, nlp variable: x term: subject(csa3180) –Expressions for stating facts atomic formula: study(alan,csa3180) complex formula: study(alan,csa3180) & teach(mike, csa3180) quantified expression:  x  y teaches(lecturer(x),x) & studies(y,subject(x))  x  y likes(x,subjectOf(y))  studies(x,y)

16 wordPOSLogicRepresentation csaiproper nounindividual constant csai studentcommon noun1 place predicate student(x) easyadjective1 place predicate easy(x) easy interesting course adj/noun1 place predicate easy(x) & interesting(x) & course(x) snoresintrans verb1 place predicate snore (x) studiestrans. verb2 place predicate study(x,,y) givesditrans verb3 place predgive(x,y,z) Logical Form of Phrases

November 2006Semantics I17 Logical Forms of Sentences John kicks Fido: kick(john, fido) Every student wrote a program  x  y( stud(x)  prog(y) & write(x,y))  y  x(stud(x)  prog(y) & write(x,y)) Semantic ambiguity related to quantifier scope

November 2006Semantics I18 Some simple exercises Letvan(x) represent ‘x is a van’, car(x) represent ‘x is a car’, bike(x) represent ‘x is a bike’, exp(x,y) ‘x is more expensive y’, faster(x,y) ‘x is faster than y’. Translate the following formula into natural language: 1.  x (bike(x)   y (car(y)  exp(y,x)) 2.  x  y ((van(x)  bike(y))  faster(x,y)) 3.  z (car(z)   x  y((van(x)  bike(y))  faster(z,x) & faster(z,y) & exp(z,x) & exp(z,y)

November 2006Semantics I19 Building Logical Form Frege’s Principle of Compositionality The POC states that the LF of a complex phrase can be built out of the LFs of the constituent parts. An everyday example of compositionality is the way in which the “meaning” of arithmetic expressions is computed (2+3) * (4/2) = (5 * 2) = 10

November 2006Semantics I20 Compositionality for NL The LF of the whole sentence can be computed from the LF of the subphrases, i.e. Given the syntactic rule X  Y Z. Suppose [Y], [Z] are the LFs of Y, and Z respectively. Then [X] =  ([Y],[Z]) where  is some function for semantic combination

November 2006Semantics I21 Claims of Richard Montague: Each syntax rule is associated with a semantic rule that describes how the LF of the LHS category is composed from the LF of its subconstituents 1:1 correspondence between syntax and semantics (rule-to-rule hypothesis) Functional composition proposed for combining semantic forms. Lambda calculus proposed as the mechanism for describing functions for semantic combination.

November 2006Semantics I22 Sentence Rule Syntactic Rule: S  NP VP Semantic Rule: [S] = [VP]([NP]) i.e. the LF of S is obtained by "applying" the LF of VP to the LF of NP. For this to be possible [VP] must be a function, and [NP] the argument to the function.

November 2006Semantics I23 S write(bertrand,principia) NP bertrand VP y.write(y,principia) V x. y.write(y,x) NP principia bertrand writes principia Parse Tree with Logical Forms