LING 581: Advanced Computational Linguistics

Slides:



Advertisements
Similar presentations
October 2004CSA4050: Semantics III1 CSA4050: Advanced Topics in NLP Semantics III Quantified Sentences.
Advertisements

The Foundations: Logic and Proofs
First-Order Logic (and beyond)
LING 364: Introduction to Formal Semantics Lecture 24 April 13th.
CSA4050: Advanced Topics in NLP Semantics IV Partial Execution Proper Noun Adjective.
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.
Predicates and Quantifiers
Albert Gatt LIN3021 Formal Semantics Lecture 9. In this lecture Noun phrases as generalised quantifiers: some further concepts.
LING 388: Language and Computers Sandiway Fong Lecture 15.
LING 364: Introduction to Formal Semantics Lecture 8 February 7th.
LING 581: Advanced Computational Linguistics Lecture Notes April 23rd.
LING 364: Introduction to Formal Semantics Lecture 23 April 11th.
LING 364: Introduction to Formal Semantics Lecture 10 February 14th.
LING 364: Introduction to Formal Semantics Lecture 9 February 9th.
LING 364: Introduction to Formal Semantics
LING 364: Introduction to Formal Semantics Lecture 22 April 6th.
LING 364: Introduction to Formal Semantics Lecture 19 March 20th.
CAS LX a. A notational holiday. Sets A set is a collection of entities of any kind. They can be finite: {√2, John Saeed, 1984}. They can be infinite:
LING 364: Introduction to Formal Semantics Lecture 13 February 23rd.
LING 364: Introduction to Formal Semantics Lecture 5 January 26th.
LING 364: Introduction to Formal Semantics Lecture 25 April 18th.
Predicates and Quantifiers
The Foundations: Logic and Proofs
Discrete Maths Objective to introduce predicate logic (also called the predicate calculus) , Semester 2, Predicate Logic 1.
LING 388: Language and Computers Sandiway Fong Lecture 7.
October 2004CSA4050 Advanced Techniques in NLP 1 CSA4050: Advanced Topics in NLP Semantics 6 Semantics of Questions and Assertions involving Quantification.
1st-order Predicate Logic (FOL)
Nested Quantifiers. 2 Nested Iteration Let the domain be {1, 2, …, 10}. Let P(x, y) denote x > y.  x,  y, P(x, y) means  x, (  y, P(x, y) ) Is the.
LING 388: Language and Computers Sandiway Fong Lecture 18.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
October 2004CSA4050: Semantics III1 CSA4050: Advanced Topics in NLP Semantics III Quantified Sentences.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
LING 581: Advanced Computational Linguistics Lecture Notes March 8th.
Quantifiers Not all noun phrases (NPs) are (by nature) directly referential like names Quantifiers: “something to do with indicating the quantity of something”
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Propositional Logic Predicate Logic
Basic Definitions of Set Theory Lecture 24 Section 5.1 Fri, Mar 2, 2007.
Critical Thinking: A User’s Manual
CAS LX 502 9b. Formal semantics Pronouns and quantifiers.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
April 2010Semantic Grammar1 A short guide to Blackburn’s Grammar of English.
LING 364: Introduction to Formal Semantics Lecture 21 April 4th.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Uniqueness Quantifier ROI for Quantified Statement.
LING 581: Advanced Computational Linguistics Lecture Notes May 4th.
LING 581: Advanced Computational Linguistics
Lecture 5 (Modality) Ling 442.
Predicate Logic Splitting the Atom.
LING 581: Advanced Computational Linguistics
The Foundations: Logic and Proofs
LING 581: Advanced Computational Linguistics
LING 581: Advanced Computational Linguistics
CSE 311 Foundations of Computing I
Logics for Data and Knowledge Representation
1st-order Predicate Logic (FOL)
Predicates and Quantifiers
Logics for Data and Knowledge Representation
Curry A Tasty dish? Haskell Curry!.
Statements Containing Multiple Quantifiers
CSA4050: Advanced Topics in NLP
Introduction to Computational Linguistics
The Foundations: Logic and Proofs
Semantics 2: Syntax-Semantics Interface
1st-order Predicate Logic (FOL)
Presentation transcript:

LING 581: Advanced Computational Linguistics Lecture Notes May 1st

Last time how do we define every? (Montague-style) λP1.[λP2.[∀X (P1(X) -> P2(X))]] (Barwise & Cooper-style) {X: P1(X)} ⊆ {X: P2(X)} Prolog versions (with threshold=2): (Montague-style) lambda(P1,lambda(P2,(\+ (call(P1,X),\+ call(P2,X)), call(P1,Y), call(P1,Z), Y \== Z))) (Barwise & Cooper-style) lambda(P1,lambda(P2,(setof(X,call(P1,X),L1), setof(Y,call(P2,Y),L2), subset(L1,L2), length(L1,N), N>1)))

Modify psg2.pl

psg3.pl (Montague-style) atLeast(P1,X,2) lambda(P1,lambda(P2,(\+ (call(P1,X),\+ call(P2,X)), call(P1,Y), call(P1,Z), Y \== Z)))

psg3.pl Prolog code; not a grammar rule

psg3.pl

psg3.pl

psg3.pl Let's check it out…

psg3.pl psg3.pl psg2.pl Took out the findall; moved it into the S rule

psg3.pl

psg3.pl

psg3.pl

Quantifiers Part 3: Coordination Extend the grammars to handle Every man and every woman likes James cf. Every man likes James and every woman likes James [NP[NP Every man] and [NP every woman]] likes James rewrite: likes(sophia, james) as: likes(james, sophia)

Quantifiers Part 3: Coordination Every man and every woman likes James [NP[NP Every man] and [NP every woman]] likes James

Quantifiers Part 3: Coordination Every man and every woman likes James [NP[NP Every man] and [NP every woman]] likes James

Other Quantifiers Other quantifiers can also be expressed using set relations between two predicates: Example: no: {X: P1(X)} ∩ {Y: P2(Y)} = ∅ ∩ = set intersection ∅ = empty set no man smokes {X: man(X)} ∩ {Y: smokes(Y)} = ∅ should evaluate to true for all possible worlds where there is no overlap between men and smokers men smokers

Other Quantifiers Other quantifiers can also be expressed using set relations between two predicates: Example: some: {X: P1(X)} ∩ {Y: P2(Y)} ≠ ∅ ∩ = set intersection ∅ = empty set some men smoke {X: man(X)} ∩ {Y: smokes(Y)} ≠ ∅ men smokers

Names as Generalized Quantifiers we’ve mentioned that names directly refer here is another idea… Conjunction X and Y both X and Y have to be of the same type in particular, semantically... we want them to have the same semantic type what is the semantic type of every baby? Example every baby and John likes ice cream [NP[NP every baby] and [NP John]] likes ice cream every baby likes ice cream {X: baby(X)} ⊆ {Y: likes(Y,ice_cream)} John likes ice cream ??? ⊆ {Y: likes(Y,ice_cream)} John ∈ {Y: likes(Y,ice_cream)} want everything to be a set (to be consistent) i.e. want to state something like ({X: baby(X)} ∪{X: john(X)}) ⊆ {Y: likes(Y,ice_cream)} note: set union (∪) is the translation of “and”

Downwards and Upwards Entailment (DE & UE) Quantifier every has semantics {X: P1(X)} ⊆ {Y: P2(Y)} e.g. every woman likes ice cream {X: woman(X)} ⊆ {Y:likes(Y,ice_cream)} Every is DE for P1 and UE for P2 Examples: (25) a. Every dog barks b. Every Keeshond barks (valid) c. Every animal barks (invalid) semantically, “Keeshond” is a sub-property or subset with respect to the set “dog” animal dog Keeshond animal dog Keeshond

Downwards and Upwards Entailment (DE & UE) Quantifier every has semantics {X: P1(X)} ⊆ {Y: P2(Y)} e.g. every woman likes ice cream {X: woman(X)} ⊆ {Y:likes(Y,ice_cream)} Every is DE for P1 and UE for P2 Examples: (25) a. Every dog barks d. Every dog barks loudly (invalid) c. Every dog makes noise (valid) semantically, “barks loudly” is a subset with respect to the set “barks”, which (in turn) is a subset of the set “makes noise” make noise barks barks loudly make noise barks loud

Downwards and Upwards Entailment (DE & UE) Contrast every with some: every man smokes every person smokes every man in the state smokes some is upwards entailing (UE) in P1: some man smokes some person smokes some man in the state smokes