March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Semantics (Chapter 17) Muhammed Al-Mulhem March 1, 2009.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
0 - 0.
Addition Facts
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence in the 21 st Century S. Lucci / D. Kopec Chapter 5: Logic in Artificial Intelligence 1.
Modal Logic with Variable Modalities & its Applications to Querying Knowledge Bases Evgeny Zolin The University of Manchester
Addition 1’s to 20.
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Solving Addition and Subtraction Inequalities
CHAPTER 15: Tests of Significance: The Basics Lecture PowerPoint Slides The Basic Practice of Statistics 6 th Edition Moore / Notz / Fligner.
1 Programming Languages (CS 550) Mini Language Interpreter Jeremy R. Johnson.
March 1, 2009Dr. Muhammed Al_mulhem1 ICS482 Parsing Chapter 13 Muhammed Al-Mulhem March 1, 2009.
CMSC 723: Intro to Computational Linguistics November 24, 2004 Lecture 12: Lexical Semantics Bonnie Dorr Christof Monz.
Natural Language Processing Lecture 22: Meaning Representation Languages.
1 Meaning Representations Chapter 17 November 2012 Lecture #11.
CSE 425: Semantic Analysis Semantic Analysis Allows rigorous specification of a program’s meaning –Lets (parts of) programming languages be proven correct.
Computational Semantics Ling 571 Deep Processing Techniques for NLP February 7, 2011.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
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.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
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 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.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Axiomatic Semantics ICS 535.
FIRST ORDER LOGIC Levent Tolga EREN.
Semantics: Representing Meaning ICS 482 Natural Language Processing
BİL711 Natural Language Processing
Chapter 14. Representing Meaning From: Chapter 14 of An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition,
Understanding PML Paulo Pinheiro da Silva. PML PML is a provenance language (a language used to encode provenance knowledge) that has been proudly derived.
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
SEMANTIC ANALYSIS WAES3303
Pattern-directed inference systems
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
Formal Semantics Chapter Twenty-ThreeModern Programming Languages, 2nd ed.1.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Artificial Intelligence: Natural Language
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
SEMANTICS VS PRAGMATICS Semantics is the study of the relationships between linguistic forms and entities in the world; that is how words literally connect.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
NLP. Introduction to NLP What is the meaning of: (5+2)*(4+3)? Parse tree N N N N + + E E E E F F* FE E E 49.
Artificial Intelligence Knowledge Representation.
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.
Introduction to Parsing
Knowledge Representation Techniques
SEMANTICS VS PRAGMATICS
CS 4700: Foundations of Artificial Intelligence
Representations of Meaning
CPE 480 Natural Language Processing
Semantics September 23, /22/2018.
Artificial Intelligence Lecture 11: First Order Logic
Introduction to Parsing
Artificial Intelligence: Logic agents
Introduction to Parsing
CSCI 5832 Natural Language Processing
Chapter 7. Propositional and Predicate Logic
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
Artificial Intelligence 2004 Speech & Natural Language Processing
Presentation transcript:

March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Semantics (Chapter 17) Muhammed Al-Mulhem March 1, 2009

2Dr. Muhammed Al-Mulhem Meaning So far, we have focused on the structure of language – not on the So far, we have focused on the structure of language – not on the meaning. Words have different meaning, depending on the context in which they are used. Words have different meaning, depending on the context in which they are used. We are going to cover : We are going to cover : What is the meaning of a word. What is the meaning of a word. How can we represent the meaning. How can we represent the meaning. What formalisms can be used. What formalisms can be used.

March 1, Dr. Muhammed Al-Mulhem Meaning Representations Were going to take the same basic approach to meaning that we took to syntax and morphology Were going to take the same basic approach to meaning that we took to syntax and morphology Were going to create representations of linguistic inputs that capture the meanings of those inputs Were going to create representations of linguistic inputs that capture the meanings of those inputs But unlike parse trees and the like these representations arent primarily descriptions of the structure of the inputs… But unlike parse trees and the like these representations arent primarily descriptions of the structure of the inputs… In most cases, theyre simultaneously descriptions of the meanings of utterances and of some potential state of affairs in some world In most cases, theyre simultaneously descriptions of the meanings of utterances and of some potential state of affairs in some world

March 1, Dr. Muhammed Al-Mulhem Meaning Representations Meaning representations are representations of linguistic inputs that capture the meanings of those inputs Meaning representations are representations of linguistic inputs that capture the meanings of those inputs They permit or facilitate semantic processing: They permit or facilitate semantic processing: Permit us to reason about their truth (relationship to some world) Permit us to reason about their truth (relationship to some world) Permit us to answer questions based on their content Permit us to answer questions based on their content Permit us to perform inference (answer questions and determine the truth of things we dont actually know) Permit us to perform inference (answer questions and determine the truth of things we dont actually know)

March 1, Dr. Muhammed Al-Mulhem Common Meaning Representations Sample meaning representation for the sentence: I have a car First Order Predicate Calculus (FOPC): x,yHaving(x) Haver(Speaker,x) HadThing(y,x) Car(y) Semantic Net: Having HaverHad-Thing SpeakerCar

March 1, Dr. Muhammed Al-Mulhem Common Meaning Representations Conceptual Dependency Diagram: Conceptual Dependency Diagram:Car Poss-By Poss-BySpeaker Frame-based Representations Frame-based Representations Having Haver: Speaker HadThing: Car

March 1, Dr. Muhammed Al-Mulhem Correspondence Between Representations They all share a common foundation: They all share a common foundation: meaning representation consists of structures composed of sets of symbols. meaning representation consists of structures composed of sets of symbols. Symbols include Objects Objects properties of objects properties of objects relations among objects relations among objects

March 1, Dr. Muhammed Al-Mulhem Two Distinct Perspectives These four representations can be viewed from two distinct perspectives: These four representations can be viewed from two distinct perspectives: All represent the meaning of a particular linguistic input All represent the meaning of a particular linguistic input I have a car I have a car All represent the state of affair in some world All represent the state of affair in some world

March 1, Dr. Muhammed Al-Mulhem Requirements of meaning representations Requirements that a meaning representation must fulfill: Verifiability Ambiguity Canonical Form Inference Expressiveness

March 1, Dr. Muhammed Al-Mulhem Verifiability The systems ability to compare the representation of the meaning of a sentence with the representation in a knowledge base. The systems ability to compare the representation of the meaning of a sentence with the representation in a knowledge base. Example Example Does Herfi serve vegetarian food? Serves (Herfi, vegetarian food) Match this representation with the knowledge base: Match this representation with the knowledge base: If found return true If found return true Otherwise return false. Otherwise return false.

March 1, Dr. Muhammed Al-Mulhem Ambiguity The system should allow us to represent meanings unambiguously. The system should allow us to represent meanings unambiguously.

March 1, Dr. Muhammed Al-Mulhem Canonical Form Distinct inputs could have the same meaning Distinct inputs could have the same meaning Does Herfi serve vegetarian dishes? Does Herfi serve vegetarian dishes? Do they have vegetarian food at Herfi? Do they have vegetarian food at Herfi? Are vegetarian dishes served at Herfi? Are vegetarian dishes served at Herfi? Does Herfi serve vegetarian fare? Does Herfi serve vegetarian fare?

March 1, Dr. Muhammed Al-Mulhem Canonical Form Solution: Solution: Inputs that mean the same thing should have the same meaning representation Inputs that mean the same thing should have the same meaning representation Vegetarian dishes, vegetarian food, vegetarian fare. Vegetarian dishes, vegetarian food, vegetarian fare. Have, serve Have, serve Relations among objects to be identical Relations among objects to be identical syntactic role analysis (e.g., subjects and objects) syntactic role analysis (e.g., subjects and objects) Herfi serves vegetarian dishes Herfi serves vegetarian dishes Vegetarian dishes are served by Herfi Vegetarian dishes are served by Herfi

March 1, Dr. Muhammed Al-Mulhem Inference Consider a more complex request Can vegetarians eat at Herfi? It would be a mistake to invoke the canonical form to force the system to assign the same representation to this request as those of: Does Herfi serve vegetarian food? Both results in the same answer, not because they mean the same thing, but because there is a common sense between what vegetarian eats and what vegetarian restaurants serve.

March 1, Dr. Muhammed Al-Mulhem Inference Inference: systems ability to draw valid conclusions based on the meaning representation of inputs and its store of background knowledge. Inference: systems ability to draw valid conclusions based on the meaning representation of inputs and its store of background knowledge. The system must draw conclusions about the truth of propositions that are not explicitly represented in the knowledge base, but that are logically derivable from the propositions that are present. The system must draw conclusions about the truth of propositions that are not explicitly represented in the knowledge base, but that are logically derivable from the propositions that are present.

March 1, Dr. Muhammed Al-Mulhem Variables for inference Id like to find a restaurant where I can get vegetarian food First observation: First observation: The request does not make reference to any particular restaurant The request does not make reference to any particular restaurant Use of variables since we do not know the name of restaurant Use of variables since we do not know the name of restaurant A representation can be: A representation can be: Serves(X, vegetarianFood) Serves(X, vegetarianFood)

March 1, Dr. Muhammed Al-Mulhem Expressiveness Must accommodate wide variety of meanings Must accommodate wide variety of meanings First Order Predicate Calculus (FOPC) is expressive enough to handle many of the NLP needs. First Order Predicate Calculus (FOPC) is expressive enough to handle many of the NLP needs.