Semantics: Representing Meaning ICS 482 Natural Language Processing

Slides:



Advertisements
Similar presentations
Kees van Deemter Matthew Stone Formal Issues in Natural Language Generation Lecture 4 Shieber 1993; van Deemter 2002.
Advertisements

March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Semantics (Chapter 17) Muhammed Al-Mulhem March 1, 2009.
12/18/20141 Machine Translation ICS 482 Natural Language Processing Lecture 29-2: Machine Translation Husni Al-Muhtaseb.
4/14/20151 REGULAR EXPRESSIONS AND AUTOMATA Lecture 3: REGULAR EXPRESSIONS AND AUTOMATA Husni Al-Muhtaseb.
CMSC 723: Intro to Computational Linguistics November 24, 2004 Lecture 12: Lexical Semantics Bonnie Dorr Christof Monz.
Why study grammar? Knowledge of grammar facilitates language learning
Natural Language Processing Lecture 22: Meaning Representation Languages.
1 Meaning Representations Chapter 17 November 2012 Lecture #11.
5/12/20151 N-Gram: Part 1 ICS 482 Natural Language Processing Lecture 7: N-Gram: Part 1 Husni Al-Muhtaseb.
CSE 425: Semantic Analysis Semantic Analysis Allows rigorous specification of a program’s meaning –Lets (parts of) programming languages be proven correct.
1 Lexicalized and Probabilistic Parsing – Part 1 ICS 482 Natural Language Processing Lecture 14: Lexicalized and Probabilistic Parsing – Part 1 Husni Al-Muhtaseb.
Computational Semantics Ling 571 Deep Processing Techniques for NLP February 7, 2011.
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
C. Varela; Adapted w/permission from S. Haridi and P. Van Roy1 Declarative Computation Model Defining practical programming languages Carlos Varela RPI.
6/11/20151 Parsing Context-free grammars – Part 1 ICS 482 Natural Language Processing Lecture 12: Parsing Context-free grammars – Part 1 Husni Al-Muhtaseb.
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.
1 Lexicalized and Probabilistic Parsing – Part 2 ICS 482 Natural Language Processing Lecture 15: Lexicalized and Probabilistic Parsing – Part 2 Husni Al-Muhtaseb.
Multiagent Systems and Societies of Agents
6/16/20151/1/ Morphology and Finite-state Transducers Part 2 ICS 482: Natural Language Processing Lecture 6 Husni Al-Muhtaseb.
CS 4705 Semantics: Representations and Analyses. What kinds of meaning do we want to capture? Categories/entities –IBM, Jane, a black cat, Pres. Bush.
NLP Credits and Acknowledgment These slides were adapted from presentations of the Authors of the book SPEECH and LANGUAGE PROCESSING: An Introduction.
PSY 369: Psycholinguistics Some basic linguistic theory part3.
1 Foundations of Software Design Lecture 23: Finite Automata and Context-Free Grammars Marti Hearst Fall 2002.
1 Natural Language Processing INTRODUCTION Husni Al-Muhtaseb Tuesday, February 20, 2007.
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
1 N-Gram – Part 2 ICS 482 Natural Language Processing Lecture 8: N-Gram – Part 2 Husni Al-Muhtaseb.
9/8/20151 Natural Language Processing Lecture Notes 1.
Syntax & Semantic Introduction Organization of Language Description Abstract Syntax Formal Syntax The Way of Writing Grammars Formal Semantic.
9/11/ Morphology and Finite-state Transducers: Part 1 ICS 482: Natural Language Processing Lecture 5 Husni Al-Muhtaseb.
Chapter 14. Representing Meaning From: Chapter 14 of An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition,
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
10/13/20151 Representing Meaning Part 4 & Semantic Analysis ICS 482 Natural Language Processing Lecture 21: Representing Meaning Part 4 & Semantic Analysis.
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
SEMANTIC ANALYSIS WAES3303
C H A P T E R TWO Syntax and Semantic.
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
5/31/20161 Lexical Semantic + Students Presentations ICS 482 Natural Language Processing Lecture 26: Lexical Semantic + Students Presentations Husni Al-Muhtaseb.
October 2005CSA3180 NLP1 CSA3180 Natural Language Processing Introduction and Course Overview.
CSA2050 Introduction to Computational Linguistics Lecture 1 Overview.
INTRODUCTION TO PRAGMATICS the study of language use the study of linguistic phenomena from the point of view of their usage properties and processes (Verschueren,
Introduction to Dialogue Systems. User Input System Output ?
CSA2050 Introduction to Computational Linguistics Lecture 1 What is Computational Linguistics?
ICS 482: Natural language Processing Pre-introduction
1 Parts of Speech Part 1 ICS 482 Natural Language Processing Lecture 9: Parts of Speech Part 1 Husni Al-Muhtaseb.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Artificial Intelligence: Natural Language
29 November Parsing Context-free grammars Part 2 ICS 482 Natural Language Processing Lecture 13: Parsing Context-free grammars Part 2 Husni Al-Muhtaseb.
CSE467/567 Computational Linguistics Carl Alphonce Computer Science & Engineering University at Buffalo.
12/22/20151 Representing Meaning Part 2 ICS 482 Natural Language Processing Lecture 18: Representing Meaning Part 2 Husni Al-Muhtaseb.
1 An Introduction to Computational Linguistics Mohammad Bahrani.
1/31/20161 Lexical Semantic 2 ICS 482 Natural Language Processing Lecture 29-1: Lexical Semantic 2 Husni Al-Muhtaseb.
C H A P T E R T W O Syntax and Semantic. 2 Introduction Who must use language definitions? Other language designers Implementors Programmers (the users.
3/7/20161 Representing Meaning Part 3 ICS 482 Natural Language Processing Lecture 20: Representing Meaning Part 3 Husni Al-Muhtaseb.
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.
Describing Syntax and Semantics
Kenneth Baclawski et. al. PSB /11/7 Sa-Im Shin
Representations of Meaning
Review for the Midterm Exam
بسم الله الرحمن الرحيم ICS 482 Natural Language Processing
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Information Extraction ICS 482 Natural Language Processing
Lecture 27: Husni Al-Muhtaseb
Context-free grammars ICS 482 Natural Language Processing
Presentation transcript:

Semantics: Representing Meaning ICS 482 Natural Language Processing Lecture 17 17: Semantics: Representing Meaning Husni Al-Muhtaseb

بسم الله الرحمن الرحيم ICS 482 Natural Language Processing Lecture 17 17: Semantics: Representing Meaning Husni Al-Muhtaseb

NLP Credits and Acknowledgment These slides were adapted from presentations of the Authors of the book SPEECH and LANGUAGE PROCESSING: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition and some modifications from presentations found in the WEB by several scholars including the following

NLP Credits and Acknowledgment If your name is missing please contact me muhtaseb At Kfupm. Edu. sa

NLP Credits and Acknowledgment Husni Al-Muhtaseb James Martin Jim Martin Dan Jurafsky Sandiway Fong Song young in Paula Matuszek Mary-Angela Papalaskari Dick Crouch Tracy Kin L. Venkata Subramaniam Martin Volk Bruce R. Maxim Jan Hajič Srinath Srinivasa Simeon Ntafos Paolo Pirjanian Ricardo Vilalta Tom Lenaerts Heshaam Feili Björn Gambäck Christian Korthals Thomas G. Dietterich Devika Subramanian Duminda Wijesekera Lee McCluskey David J. Kriegman Kathleen McKeown Michael J. Ciaraldi David Finkel Min-Yen Kan Andreas Geyer-Schulz Franz J. Kurfess Tim Finin Nadjet Bouayad Kathy McCoy Hans Uszkoreit Azadeh Maghsoodi Khurshid Ahmad Staffan Larsson Robert Wilensky Feiyu Xu Jakub Piskorski Rohini Srihari Mark Sanderson Andrew Elks Marc Davis Ray Larson Jimmy Lin Marti Hearst Andrew McCallum Nick Kushmerick Mark Craven Chia-Hui Chang Diana Maynard James Allan Martha Palmer julia hirschberg Elaine Rich Christof Monz Bonnie J. Dorr Nizar Habash Massimo Poesio David Goss-Grubbs Thomas K Harris John Hutchins Alexandros Potamianos Mike Rosner Latifa Al-Sulaiti Giorgio Satta Jerry R. Hobbs Christopher Manning Hinrich Schütze Alexander Gelbukh Gina-Anne Levow Guitao Gao Qing Ma Zeynep Altan

Outline Administration Class Students Presentations: Should we go for a workshop? Quiz 3 Reminder: Next Tuesday – April 24th, 2007 30 Minutes class time Material Covered after quiz 2 Class Semantics Introduction to Representing Meaning 20 April 2017

Morphological analysis Semantic Interpretation NLP Pipeline speech text Phonetic Analysis OCR/ Tokenization Morphological analysis Syntactic analysis Semantic Interpretation Discourse Processing 20 April 2017

Relation to Machine Translation analysis input generation output Morphological analysis Morphological synthesis Syntactic analysis Syntactic realization Semantic Interpretation Lexical selection Interlingua 20 April 2017

Transition First we worked with words (morphology) Then we looked at syntax and grammar Now we’re moving on to meaning 20 April 2017

Meaning So far, we have focused on the structure of language – not on what things mean We have seen that words have different meaning, depending on the context in which they are used Everyday language tasks that require some semantic processing Answering an essay question on an exam Deciding what to order at a restaurant by reading a menu Realizing that you’ve been misled … 20 April 2017

Meaning Now, look at meaning representations, representations that link linguistic forms to knowledge of the world We are going to cover: What is the meaning of a word How can we represent the meaning What formalisms can be used 20 April 2017

Meaning Representations We’re going to take the same basic approach to meaning that we took to syntax and morphology We’re going to create representations of linguistic inputs that capture the meanings of those inputs But unlike parse trees and the like these representations aren’t primarily descriptions of the structure of the inputs… In most cases, they’re simultaneously descriptions of the meanings of utterances and of some potential state of affairs in some world 20 April 2017

Meaning Representations What could this mean… representations of linguistic inputs that capture the meanings of those inputs For us it means Representations that permit or facilitate semantic processing Permit us to reason about their truth (relationship to some world) Permit us to answer questions based on their content Permit us to perform inference (answer questions and determine the truth of things we don’t actually know) 20 April 2017

Common Meaning Representations First Order Predicate Calculus (FOPC):  x,yHaving(x)  Haver(S,x)  HadThing(y,x)  Car(y) Semantic Net: Having Haver Had-Thing Speaker Car ملكية مالك ملك - شيئا المتكلم سيارة 20 April 2017

Common Meaning Representations Conceptual Dependency Diagram: Car  Poss-By Speaker Frame-based Representations Having Haver: Speaker HadThing: Car 20 April 2017

Common Meaning Representations (4 Examples) First Order Predicate Calculus (FOPC):  x,yHaving(x)  Haver(S,x)  HadThing(y,x)  Car(y) Semantic Net: Having Haver Had-Thing Speaker Car ملكية مالك ملك - شيئا المتكلم سيارة Conceptual Dependency Diagram: Car  Poss-By Speaker Frame-based Representations I have a car Having Haver: Speaker HadThing: Car 20 April 2017

Correspondence Between Representations They all share a common foundation: => meaning representation consists of structures composed of sets of symbols Objects properties of objects relations among objects Symbol Structures: 20 April 2017

Two Distinct Perspectives All represent the meaning of a particular linguistic input I have a car All represent the state of affair in some world Literal meaning vs. figurative meaning I like quizzes 20 April 2017

What Can Serve as a Meaning Representation? Anything that serves the core practical purposes of a program that is doing semantic processing ... Answer questions What is the tallest building in the world? Determining truth Is the blue block on the red block? Drawing inferences If the blue block is on the red block and the red block is on the tallest building in the world, then the blue block is on the tallest building in the world What are basic requirements of meaning representation? 20 April 2017

Requirements meaning representations must fulfill? Verifiability Ambiguity Canonical Form Inference Expressiveness 20 April 2017

Verifiability The system’s ability to compare the state of affairs described by a representation to the state of affairs in some world as modeled in the knowledge base Does Herfi serve vegetarian food? Serves (Herfi, vegetarian food) 20 April 2017

Ambiguity The system should allow us to represent meanings unambiguously Arabic teachers has 2 representations Vagueness: The system should allow us to represent vagueness I want to eat Italian food. (pasta? spaghetti? lasagna?) 20 April 2017

Canonical Form Distinct inputs could have the same meaning Does Herfi serve vegetarian dishes? Do they have vegetarian food at Herfi? Are vegetarian dishes served at Herfi? Does Herfi serve vegetarian fare? Alternative (if not the same): Four different semantic representations Store all possible meaning representations in KB 20 April 2017

Canonical Form Solution: inputs that mean the same thing should have the same meaning representation Vegetarian dishes, vegetarian food, vegetarian fare Have, serve Relations among objects to be identical, how? syntactic role analysis (e.g., subjects and objects) Herfi serves vegetarian dishes Vegetarian dishes are served by Herfi 20 April 2017

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? Why are they result is the same answer? 20 April 2017

Inference Inference: system’s 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 20 April 2017

Variables for inference I’d like to find a restaurant where I can get vegetarian food First observation: The request does not make reference to any particular restaurant Use of variables since we do not know the name of restaurant A representation can be: Serves(X, vegetarianFood) 20 April 2017

Expressiveness Must accommodate wide variety of meanings First Order Predicate Calculus (FOPC) is expressive enough to handle many of the NLP needs 20 April 2017

Summary: Meaning representations must fulfill the following requirements Verifiability Ambiguity Canonical Form Inference Expressiveness 20 April 2017

Quiz 3 Reminder Quiz 3 Next Tuesday, 24th April, 2007 30 Minutes class time Material Covered after quiz 2 20 April 2017

السلام عليكم ورحمة الله Thank you السلام عليكم ورحمة الله 20 April 2017