Semantics Day 38 LING 681.02 Computational Linguistics Harry Howard Tulane University.

Slides:



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

Semantics Static semantics Dynamic semantics attribute grammars
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Relational Algebra Chapter 4, Part A.
LING 581: Advanced Computational Linguistics Lecture Notes April 23rd.
2.2 Conditional Statements. Goals Identify statements which are conditional Identify the antecedent and consequent of a conditional statement Negate conditional.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Comp 205: Comparative Programming Languages Semantics of Imperative Programming Languages denotational semantics operational semantics logical semantics.
LING 364: Introduction to Formal Semantics Lecture 4 January 24th.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Programming Language Semantics Mooly SagivEran Yahav Schrirber 317Open space html://
The Language of Propositional Logic The Syntax and Semantics of PL.
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Chapter 1: The Foundations: Logic and Proofs
Logic Specification and Z Schema 3K04 McMaster. Basic Logic Operators Logical negation ( ¬ ) Logical conjunction ( Λ or & ) Logical disjunction ( V or.
ASPECTS OF LINGUISTIC COMPETENCE 4 SEPT 09, 2013 – DAY 6 Brain & Language LING NSCI Harry Howard Tulane University.
INTRODUCTION TO THE THEORY OF COMPUTATION INTRODUCTION MICHAEL SIPSER, SECOND EDITION 1.
Text classification Day 35 LING Computational Linguistics Harry Howard Tulane University.
Lecture 20a Feature Based Grammars Topics Description Logic III Overview of MeaningReadings: Text Chapter 18 NLTK book Chapter 10 March 28, 2013 CSCE 771.
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CSCI 2670 Introduction to Theory of Computing Instructor: Shelby Funk.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Information extraction 2 Day 37 LING Computational Linguistics Harry Howard Tulane University.
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
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.
Theory of Programming Languages Introduction. What is a Programming Language? John von Neumann (1940’s) –Stored program concept –CPU actions determined.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
COMPUTATION WITH STRINGS 1 DAY 2 - 8/27/14 LING 3820 & 6820 Natural Language Processing Harry Howard Tulane University.
CS6133 Software Specification and Verification
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Human and Machine Understanding of normal Language (NL) Character Strings Presented by Peter Tripodes.
SYNTAX 1 NOV 9, 2015 – DAY 31 Brain & Language LING NSCI Fall 2015.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Discrete Mathematics Lecture # 1. Course Objectives  Express statements with the precision of formal logic.  Analyze arguments to test their validity.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
NATURAL LANGUAGE PROCESSING
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Artificial Intelligence Logical Agents Chapter 7.
Simple Logic.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Propositional Logic (a.k.a. Sentential Logic)
Propositional Calculus: Boolean Functions and Expressions
CS 4700: Foundations of Artificial Intelligence
Lecture 1 – Formal Logic.
Knowledge and reasoning – second part
Logic.
Predicates & Quantifiers
The Propositional Calculus
EA C461 – Artificial Intelligence Logical Agent
Propositional Calculus: Boolean Functions and Expressions
LING 581: Advanced Computational Linguistics
Information Technology Department
Applications of Propositional Logic
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
INTRODUCTION TO THE THEORY OF COMPUTATION
Copyright © Cengage Learning. All rights reserved.
Regular expressions 3 Day /26/16
Knowledge and reasoning – second part
Back to “Serious” Topics…
Lecture 20a Feature Based Grammars
Logics for Data and Knowledge Representation
Predicates and Quantifiers
Presentation transcript:

Semantics Day 38 LING Computational Linguistics Harry Howard Tulane University

30-Nov-2009LING , Prof. Howard, Tulane University2 Course organization 

Analyzing the meaning of sentences SLPP 10

30-Nov-2009LING , Prof. Howard, Tulane University4 The problem  Suppose we have a program that lets us type in a natural language question and gives us back the right answer:  Which country is Athens in?  Greece.  How hard is it to write such a program?

30-Nov-2009LING , Prof. Howard, Tulane University5 Querying a database CityCountryPopulation athensgreece1368 bangkokthailand1178 barcelonaspain1280 berlineast_germany3481 birminghamunited_kingdom1112

30-Nov-2009LING , Prof. Howard, Tulane University6 SQL  SQL (Structured Query Language) is a language designed for retrieving and managing data in relational databases.  For example, executing the query below will pull out the value 'greece':  SELECT Country FROM city_table WHERE City = 'athens'

30-Nov-2009LING , Prof. Howard, Tulane University7 Parsing into SQL  Can we get the same effect using English as our input to the query system?  The feature-based grammar formalism described in Chapter 9 makes it easy to translate from English to SQL.  Each phrase structure rule is supplemented with a recipe for constructing a value for the feature sem.  We use the string concatenation operation + to splice the values for the child constituents to make a value for the parent constituent.  S[SEM=(?np + WHERE + ?vp)] -> NP[SEM=?np] VP[SEM=?vp]

30-Nov-2009LING , Prof. Howard, Tulane University8 Philosophical problem  Understanding = looking up in a database?  What is a city?  What is a country?  What is a population?

30-Nov-2009LING , Prof. Howard, Tulane University9 Depiction of a situation in which Margrietje loves Brunoke

30-Nov-2009LING , Prof. Howard, Tulane University10 Conclusions  Two fundamental notions in semantics:  Declarative sentences are true or false in certain situations.  Definite noun phrases and proper nouns refer to things in the world.

30-Nov-2009LING , Prof. Howard, Tulane University11 Consistent vs. inconsistent 5a. Sylvania is to the north of Freedonia. 5b. Freedonia is a republic. 6a. The capital of Freedonia has a population of 9,000. 6b. No city in Freedonia has a population of 9,000. 7a. Sylvania is to the north of Freedonia. 7b. Freedonia is to the north of Sylvania.

30-Nov-2009LING , Prof. Howard, Tulane University12 Logic & NL  Broadly speaking, logic-based approaches to natural language semantics focus on those aspects of natural language which guide our judgments of consistency and inconsistency.  The syntax of a logical language is designed to make these features formally explicit.  As a result, determining properties like consistency can often be reduced to symbolic manipulation, that is, to a task that can be carried out by a computer.  In order to pursue this approach, we first want to develop a technique for representing a possible situation.

30-Nov-2009LING , Prof. Howard, Tulane University13 Model  We do this in terms of something that logicians call a model.  A model for a set W of sentences is a formal representation of a situation in which all the sentences in W are true.  The usual way of representing models involves set theory.  The domain D of discourse (all the entities we currently care about) is a set of individuals, while relations are treated as sets built up from D.

30-Nov-2009LING , Prof. Howard, Tulane University14 Example of a model  Our domain D will consist of three children, Stefan, Klaus and Evi = s, k and e.  D = {s, k, e}.  Expressions:  boy denotes the set consisting of Stefan and Klaus,  girl denotes the set consisting of Evi,  is running denotes the set consisting of Stefan and Evi.

30-Nov-2009LING , Prof. Howard, Tulane University15 Propositional logic Boolean OperatorTruth Conditions negation (it is not the case that...) -φ is true in siffφ is false in s conjunction (and)(φ & ψ) is true in siff φ is true in s and ψ is true in s disjunction (or)(φ | ψ) is true in siff φ is true in s or ψ is true in s implication (if..., then...) (φ -> ψ) is true in siff φ is false in s or ψ is true in s equivalence (if and only if) (φ ψ) is true in siff φ and ψ are both true in s or both false in s

30-Nov-2009LING , Prof. Howard, Tulane University16 Quiz grades Q5Q6Q7Q8Q9Q10 MIN AVG MAX

30-Nov-2009LING , Prof. Howard, Tulane University17 Missing quiz grades  Michael  Hunter  Leah  Caitlin  Alexander  Parisa  0  P3  P1, P5  P1  P5  P6, P9, P10

Next time No quiz NLPP §10 Analyzing the meaning of sentences