CSCI 5832 Natural Language Processing

Slides:



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

Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
Syntactic analysis using Context Free Grammars. Analysis of language Morphological analysis – Chairs, Part Of Speech (POS) tagging – The/DT man/NN left/VBD.
Statistical NLP: Lecture 3
1 Computational Semantics Chapter 18 November 2012 We will not do all of this… Lecture #12.
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.
LING 364: Introduction to Formal Semantics Lecture 4 January 24th.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
CS 4705 Lecture 17 Semantic Analysis: Syntax-Driven Semantics.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
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.
LING 364: Introduction to Formal Semantics Lecture 5 January 26th.
Meaning and Language Part 1.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
Context Free Grammars Reading: Chap 12-13, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Paul Tarau, based on Rada.
Natural Language Processing
9/8/20151 Natural Language Processing Lecture Notes 1.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
1 CPE 480 Natural Language Processing Lecture 5: Parser Asst. Prof. Nuttanart Facundes, Ph.D.
CAS LX 502 8b. Formal semantics A fragment of English.
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)
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Context Free Grammars Reading: Chap 9, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Rada Mihalcea.
Computing Science, University of Aberdeen1 CS4025: Logic-Based Semantics l Compositionality in practice l Producing logic-based meaning representations.
Artificial Intelligence: Natural Language
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.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Rules, Movement, Ambiguity
1 Context Free Grammars October Syntactic Grammaticality Doesn’t depend on Having heard the sentence before The sentence being true –I saw a unicorn.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
CS 4705 Lecture 17 Semantic Analysis: Robust Semantics.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
NATURAL LANGUAGE PROCESSING
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.
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.
Context Free Grammars. Slide 1 Syntax Syntax = rules describing how words can connect to each other * that and after year last I saw you yesterday colorless.
Natural Language Processing Vasile Rus
Natural Language Processing Vasile Rus
Statistical NLP: Lecture 3
Natural Language Processing
Natural Language Processing
CPE 480 Natural Language Processing
Part I: Basics and Constituency
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
CPSC 503 Computational Linguistics
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
بسم الله الرحمن الرحيم ICS 482 Natural Language Processing
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Probabilistic and Lexicalized Parsing
CSCI 5832 Natural Language Processing
Natural Language - General
The Metacircular Evaluator
CSCI 5832 Natural Language Processing
Artificial Intelligence Lecture 11: First Order Logic
CSCI 5832 Natural Language Processing
CSCI 5832 Natural Language Processing
Linguistic Essentials
6.001 SICP Variations on a Scheme
CSCI 5832 Natural Language Processing
Artificial Intelligence 2004 Speech & Natural Language Processing
Presentation transcript:

CSCI 5832 Natural Language Processing Lecture 18 Jim Martin 2/5/2019 CSCI 5832 Spring 2007

Today: 3/22 Experiment Semantics 2/5/2019 CSCI 5832 Spring 2007

Transition First we did words (morphology) Then simple sequences of words Then we looked at true syntax Now we’re moving on to meaning. Where some would say we should have started to begin with. 2/5/2019 CSCI 5832 Spring 2007

Meaning Language is useful and amazing because it allows us to encode/decode… Descriptions of the world What we’re thinking What we think about what other people think Don’t be fooled by how natural and easy it is… In particular, you never really… Utter word strings that match the world Say what you’re thinking Say what you think about what other people think 2/5/2019 CSCI 5832 Spring 2007

Meaning You’re simply uttering linear sequences of words such that when other people read/hear and understand them they come to know what you think of the world. 2/5/2019 CSCI 5832 Spring 2007

Meaning So… I can stand up here and bounce waves of compressed air against your eardrums and have the effect of Making you laugh, cry or go to sleep Telling you how to make a soufflé Describing the weather, or a double play, or a glass of wine to you. These are not easy tasks. They are amazing tasks. They just look easy. 2/5/2019 CSCI 5832 Spring 2007

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… 2/5/2019 CSCI 5832 Spring 2007

Meaning Representations In most cases, they’re simultaneously descriptions of the meanings of utterances and of some potential state of affairs in some world. 2/5/2019 CSCI 5832 Spring 2007

Meaning Representations What could this mean… representations of linguistic inputs that capture the meanings of those inputs Lots of different things to lots of different philosophers. We’re not going to go there. For us it means Representations that permit or facilitate semantic processing 2/5/2019 CSCI 5832 Spring 2007

Semantic Processing Ok, so what does that mean? Representations that 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) 2/5/2019 CSCI 5832 Spring 2007

Semantic Processing Touchstone application is often question answering Can a machine answer questions involving the meaning of some text or discourse? What kind of representations do we need to mechanize that process? 2/5/2019 CSCI 5832 Spring 2007

Semantic Processing We’re going to discuss 2 ways to attack this problem (just as we did with parsing) There’s the theoretically motivated correct and complete approach… Computational/Compositional Semantics And there are practical approaches that have some hope of being useful and successful. Information extraction 2/5/2019 CSCI 5832 Spring 2007

Semantic Analysis Compositional Analysis Information Extraction Create a FOL representation that accounts for all the entities, roles and relations present in a sentence. Information Extraction Do a superficial analysis that pulls out only the entities, relations and roles that are of interest to the consuming application. 2/5/2019 CSCI 5832 Spring 2007

Information Extraction (preview) Investigators worked leads Monday in Riverside County where the car was reported stolen and reviewed security tape from Highway 241 where it was abandoned, said city of Anaheim spokesman John Nicoletti. Investigators worked leads [Monday] in [Riverside County] where the car was reported stolen and reviewed security tape from [Highway 241] where it was abandoned, said city of [Anaheim] spokesman [John Nicoletti]. 2/5/2019 CSCI 5832 Spring 2007

Break Can 1 person from each group send me by email Your group members Project title 1 paragraph summary of the project Yet another colloquium today at 3:30 in 1B55. Should be good. 2/5/2019 CSCI 5832 Spring 2007

Representational Schemes We’re going to make use of First Order Predicate Calculus (FOPC) as our representational framework Not because we think it’s perfect All the alternatives turn out to be either too limiting or They turn out to be notational variants 2/5/2019 CSCI 5832 Spring 2007

FOPC Allows for… The analysis of truth conditions Allows us to answer yes/no questions Supports the use of variables Allows us to answer questions through the use of variable binding Supports inference Allows us to answer questions that go beyond what we know explicitly 2/5/2019 CSCI 5832 Spring 2007

FOPC This choice isn’t completely arbitrary or driven by the needs of practical applications FOPC reflects the semantics of natural languages because it was designed that way by human beings In particular… 2/5/2019 CSCI 5832 Spring 2007

Meaning Structure of Language The semantics of human languages… Display a basic predicate-argument structure Make use of variables Make use of quantifiers Use a partially compositional semantics 2/5/2019 CSCI 5832 Spring 2007

Predicate-Argument Structure Events, actions and relationships can be captured with representations that consist of predicates and arguments to those predicates. Languages display a division of labor where some words and constituents function as predicates and some as arguments. 2/5/2019 CSCI 5832 Spring 2007

Predicate-Argument Structure Predicates Primarily Verbs, VPs, PPs, Sentences Sometimes Nouns and NPs Arguments Primarily Nouns, Nominals, NPs, PPs But also everything else; as we’ll see it depends on the context 2/5/2019 CSCI 5832 Spring 2007

Example Mary gave a list to John. Giving(Mary, John, List) More precisely Gave conveys a three-argument predicate The first arg is the subject The second is the recipient, which is conveyed by the NP in the PP The third argument is the thing given, conveyed by the direct object 2/5/2019 CSCI 5832 Spring 2007

Not exactly The statement can’t be right. Subjects can’t be givers. The first arg is the subject can’t be right. Subjects can’t be givers. We mean that the meaning underlying the subject phrase plays the role of the giver. 2/5/2019 CSCI 5832 Spring 2007

Better Turns out this representation isn’t quite as useful as it could be. Giving(Mary, John, List) Better would be 2/5/2019 CSCI 5832 Spring 2007

Predicates The notion of a predicate just got more complicated… In this example, think of the verb/VP providing a template like the following The semantics of the NPs and the PPs in the sentence plug into the slots provided in the template 2/5/2019 CSCI 5832 Spring 2007

Semantic Analysis Semantic analysis is the process of taking in some linguistic input and assigning a meaning representation to it. There a lot of different ways to do this that make more or less (or no) use of syntax We’re going to start with the idea that syntax does matter The compositional rule-to-rule approach 2/5/2019 CSCI 5832 Spring 2007

Compositional Analysis Principle of Compositionality The meaning of a whole is derived from the meanings of the parts What parts? The constituents of the syntactic parse of the input What could it mean for a part to have a meaning? 2/5/2019 CSCI 5832 Spring 2007

Example AyCaramba serves meat 2/5/2019 CSCI 5832 Spring 2007

Compositional Analysis 2/5/2019 CSCI 5832 Spring 2007

Augmented Rules We’ll accomplish this by attaching semantic formation rules to our syntactic CFG rules Abstractly This should be read as the semantics we attach to A can be computed from some function applied to the semantics of A’s parts. 2/5/2019 CSCI 5832 Spring 2007

Example Easy parts… Attachments NP -> PropNoun {PropNoun.sem} NP -> MassNoun PropNoun -> AyCaramba MassMoun -> meat Attachments {PropNoun.sem} {MassNoun.sem} {AyCaramba} {MEAT} 2/5/2019 CSCI 5832 Spring 2007

Example S -> NP VP VP -> Verb NP Verb -> serves {VP.sem(NP.sem)} {Verb.sem(NP.sem) ??? 2/5/2019 CSCI 5832 Spring 2007

Lambda Forms A simple addition to FOPC Take a FOPC sentence with variables in it that are to be bound. Allow those variables to be bound by treating the lambda form as a function with formal arguments 2/5/2019 CSCI 5832 Spring 2007

Example 2/5/2019 CSCI 5832 Spring 2007

Example 2/5/2019 CSCI 5832 Spring 2007

Example 2/5/2019 CSCI 5832 Spring 2007

Example 2/5/2019 CSCI 5832 Spring 2007

Next Time Read Chapter 16 and 17 (to be posted real soon now). Schedule Week after break is going to be devoted to Bio NLP (guest lectures by Kevin Cohen from UC Health Sciences). After that we’ll finish compostional semantics and move on to IE (a new chapter will be available). Then we’ll cover discourse, Q/A, and MT. 2/5/2019 CSCI 5832 Spring 2007