CAS LX 502 11b. Summarizing the fragment analysis, relative clauses.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Prolog programming....Dr.Yasser Nada. Chapter 8 Parsing in Prolog Taif University Fall 2010 Dr. Yasser Ahmed nada prolog programming....Dr.Yasser Nada.
CAS LX 522 Syntax I Week 3b. Constituents.
Chapter 4 Syntax.
CAS LX 502 Semantics 4b. Events and modification
Grammars, constituency and order A grammar describes the legal strings of a language in terms of constituency and order. For example, a grammar for a fragment.
Dr. Abdullah S. Al-Dobaian1 Ch. 2: Phrase Structure Syntactic Structure (basic concepts) Syntactic Structure (basic concepts)  A tree diagram marks constituents.
Week 3a. UG and L2A: Background, principles, parameters CAS LX 400 Second Language Acquisition.
CAS LX 502 8a. Formal semantics Truth and meaning The basis of formal semantics: knowing the meaning of a sentence is knowing under what conditions.
Albert Gatt LIN3021 Formal Semantics Lecture 5. In this lecture Modification: How adjectives modify nouns The problem of vagueness Different types of.
Week 3b. Constituents CAS LX 522 Syntax I.
Week 2b. Constituents CAS LX 522 Syntax I.
CAS LX b. Questions. Seeking truth Much of what we’ve done this semester has to do with characterizing (our knowledge of) the conditions under which.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
CAS LX 502 Semantics 1b. The Truth Ch. 1.
Installment 10b. Raising, etc CAS LX 522 Syntax I.
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:
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
CAS LX 502 Semantics 11b. Questions. Seeking truth Much of what we’ve done this semester has to do with characterizing (our knowledge of) the conditions.
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.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 2 Tutorials Revision of formalisation Interpreting logical statements in NL Form and Content of an Argument.
Week 14b. PRO and control CAS LX 522 Syntax I. It is likely… This satisfies the EPP in both clauses. The main clause has Mary in SpecIP. The embedded.
Meaning and Language Part 1.
Phrase Structure The formal means of representing constituency.
CAS LX 502 Semantics 2b. A formalism for meaning 2.5, 3.2, 3.6.
Models of Generative Grammar Smriti Singh. Generative Grammar  A Generative Grammar is a set of formal rules that can generate an infinite set of sentences.
THE PARTS OF SYNTAX Don’t worry, it’s just a phrase ELL113 Week 4.
Embedded Clauses in TAG
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 20 By Herbert I. Gross and Richard A. Medeiros next.
CAS LX 502 Semantics 3a. A formalism for meaning (cont ’ d) 3.2, 3.6.
Reduction Episode 9 0 The operation of reduction and the relation of reducibility Examples of reductions The variety of reduction concepts and their systematization.
Adding Whole Numbers © Math As A Second Language All Rights Reserved next #5 Taking the Fear out of Math
CAS LX 502 8b. Formal semantics A fragment of English.
Propositional Calculus Composed of symbols –P – some true statement P might represent something like “It is Monday” or “the car is red” And sentences –a.
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
CAS LX 502 Semantics 5b. Pronouns, assignments, and quantifiers 5.7(.1), 6.1.
Computing Science, University of Aberdeen1 CS4025: Logic-Based Semantics l Compositionality in practice l Producing logic-based meaning representations.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
For Wednesday Read chapter 23 Homework: –Chapter 22, exercises 1,4, 7, and 14.
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
Chart Parsing and Augmenting Grammars CSE-391: Artificial Intelligence University of Pennsylvania Matt Huenerfauth March 2005.
CAS LX a. Plurals, mass, and measurement. Singular individuals The Last Juror is a book. Cat’s Cradle is a book. Semantics is a book. [book] M,g.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
CAS LX 502 Semantics 5a. Plurals, mass, and measurement 5.5.
SYNTAX.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
CAS LX b. Binding. Syntactic base rules (F2) S  NP VPVP  Vt NP S  S ConjPVP  Vi ConjP  Conj SNP  Det N C S  Neg SNP  N P Det  the, a, everyN.
CAS LX 502 9b. Formal semantics Pronouns and quantifiers.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
1 Lecture 3 The Languages of K, T, B and S4. 2 Last time we extended the language PC to the language S5 by adding two new symbols ‘□’ (for ‘It is necessary.
NATURAL LANGUAGE PROCESSING
Week 3. Clauses and Trees English Syntax. Trees and constituency A sentence has a hierarchical structure Constituents can have constituents of their own.
King Faisal University جامعة الملك فيصل Deanship of E-Learning and Distance Education عمادة التعلم الإلكتروني والتعليم عن بعد [ ] 1 King Faisal University.
Propositional Calculus
Structure, Constituency & Movement
3b. A formalism for meaning (cont’d again): F2 3.2, 3.6
SYNTAX.
11a. Predicate modification and adjectives
Part I: Basics and Constituency
Structural relations Carnie 2013, chapter 4 Kofi K. Saah.
Logics for Data and Knowledge Representation
Predicates and Quantifiers
Principles and Parameters (I)
David Kauchak CS159 – Spring 2019
Compounding.
Validity and Soundness, Again
Presentation transcript:

CAS LX b. Summarizing the fragment analysis, relative clauses

(F3) S  NP VPVP  Vt NP S  S ConjPVP  Vi ConjP  Conj SNP  Det N C S  Neg SNP  N P VP  V be NP pred N C  Adj N C NP pred  Det dummy N C Det  the, a, everyN P  Pavarotti, Loren, Bond, Nemo, Dory, Blinky, Semantics, The Last Juror, he n, she n, it n, him n, her n, himself n, herself n, itself n. Conj  and, or Vt  likes, hates Adj  boring, hungry Neg  it is not the case thatN C  book, fish, man, woman Det dummy  aV be  is

[Pavarotti] M,g = F(Pavarotti) (any N P ) [boring] M,g = x [ x  F(boring) ] (any N C or Adj or Vi) [likes] M,g = y [ x [  F(likes) ] ] (any Vt) [and] M,g = y [ x [ x  y ] ] (analogous for or) [it is not the case that] M,g = x [  x ] [every] M,g = P [ Q [  x  U [P(x)  Q(x)] ] ] [a] M,g = P [ Q [  x  U [P(x)  Q(x)] ] ] [  i ] M,g = g(i) [is] M,g = — [i] M,g = S [ x [ [S] M,g[i/x] ] ] [ DETdummy a] M,g = — Pass-Up If a node  has only one daughter with a semantic value, , then [  ] M,g = [  ] M,g Functional application [   ] M,g = [  ] M,g ( [  ] M,g ) or [  ] M,g ( [  ] M,g ) Quantifier Raising [ S X NP Y ]  [ S NP [ S i [ S X t i Y ]]] Predicate modification [   ] M,g = z [ [  ] M,g (z)  [  ] M,g (z) ] where  and  are predicates

Once more from the top Our semantic system (the fragment) is designed to take a sentence and provide a characterization of the situations in which the sentence would be true. Bond is hungry We determine whether this is true by comparing models of the world, where a model is primarily a specification of the individuals in the world and their properties. This is something that people can do, and by concentrating on a small fragment of English, we are attempting to understand something about the mechanisms by which we compute this.

Models The model is based primarily on individuals (like Bond, Pavarotti, Loren, Nemo). An individual is a basic type of thing, we refer to it as (generally writing types between pointed brackets). The model of the situation provides not only a list of the individuals in the situation, but also their properties in the situation. Some of them are hungry, some of them are boring. The model specifies who the boring individuals are and who the hungry individuals are.

Models We represent a property like hungry in the model by naming it (hungry) and listing the individuals for which the property holds. We use the notation F(hungry) to indicate the collection of individuals for which the named property holds. F is the denotation function in the situation. So in a particular situation, where F 7 is the denotation function for that situation, we might have: F 7 (hungry) = {Bond, Pavarotti}.

Structures Sentences have hierarchical structures, parts that contain other parts. The sentence as a whole (S) contains a noun phrase (the subject) and a verb phrase, and in some cases the verb phrase may contain a verb and another noun phrase (the object). The syntactic base rules tell us what kinds of structures are valid sentences in this fragment (first slide; Bond likes Nemo can be assigned a structure and is valid, Bond and likes every cannot and is not).

Interpretation The semantic rules tell us, given a syntactic structure (tree), how we can determine the conditions under which the sentence is true. The most fundamental assumption is that meaning is compositional: that the meaning of the whole is derived from the meanings of its component parts (and how they are arranged). So, to determine the meaning (semantic value) of S, we need first to determine the meanings of its component parts (NP and VP). At the bottom of the tree (the leaves) are the lexical items, that have no component parts, but a basic meaning of their own.

Terminal nodes The “leaves” or terminal nodes can be divided into several categories. Some terminal nodes are simply proper names that denote specific individuals. So, Bond denotes the individual F(Bond), “the individual we refer to by the name Bond.” Individuals, again, we say have a basic type of.

Terminal nodes Other terminal nodes denote properties (predicates) that can either hold or not hold of individuals. For example, hungry. Our semantic rules treat these as functions. You tell hungry who you’re talking about, it will tell you whether the individual is hungry or not. If the individual is hungry, the function returns “true”, if the individual is not hungry, the function returns “false”. The simplest kind of sentence would be something like Bond is hungry. This sentence would be true in any situation where F(Bond) is in the set F(hungry).

Sentences A sentence in this system is either true or false, depending on the situation. True and false are taken to be a different kind of thing than Bond is. We say that true and false are truth values, and we assign the basic type of to truth values. Since the meaning of the sentence is derived from the meanings of its (meaningful) component parts, whether Bond is hungry is true or false depends on the meanings of Bond and hungry.

Sentences The meaning of Bond is F(Bond) (“the individual we refer to as Bond in the situation”), an individual, basic type. The intuition is that the whole thing will be true depending on whether F(hungry) contains the individual F(Bond). So, we say that the meaning of hungry is such that, if you give it an individual that is in F(hungry), the result is true.

Predicates The translation of hungry, then is that it will take an individual and yield true or false: [hungry] M,g = x [ x  F(hungry) ] The x signifies that this is a function. It is “waiting for something to call x”. When it gets something, the result is whatever is in the brackets. We provide this function with an individual by writing the individual in parentheses after the function: x [ x  F(hungry) ] ( F(Bond) ) This means we’re giving the function what it is waiting for; it should call F(Bond) x. The result boils down to: F(Bond)  F(hungry) This could be true, it could be false; it depends on the situation (more specifically, it depends on F).

Alphabetic variants One thing about functions like this is that it doesn’t matter what we call the thing it is waiting for. We could call it x: x [ x  F(hungry) ] We could call it y: y [ y  F(hungry) ] We could call it Edward: Edward [ Edward  F(hungry) ] We could call it : [  F(hungry) ] These are all the same function.

Interpreting sisters The basic principle behind our interpretation rules (once we get past the lexical items), is that when two nodes are sisters, the meaning of the unit containing the two is the result of providing one sister as the argument to the other. This is encoded as the Functional Application rule.

Types again A function like y [ y  F(hungry) ] is one that is waiting for an individual, and the thing inside the brackets will be either true or false depending on the situation. We say that the function has type : it is waiting for an and when it gets it, the combination will be of type. Because meaning is assigned using Function Application, we can also read these complex types as. That is, even if we didn’t know already that hungry was, we could deduce that it is given that the sister is type and the mother is type. S Bond hungry

Relations Another category of lexical item we have are relations. These are things like like, and, or every which relate two meanings (truthfully or not, depending on the situation). Because our structures only ever have binary branches, relations need to proceed in two stages. And is waiting for a truth value (provided by S 1 ), and provides something that is waiting for a (second) truth value (provided by S 2 ), the result of which will be true iff both S 1 and S 2 are true. [and] M,g = y [ x [ x  y ] ] [ConjP] M,g = y [ x [ x  y ] ] ([S 1 ] M,g ) = x [ x  [S 1 ] M,g ] [S 3 ] M,g = x [ x  [S 1 ] M,g ] ([S 2 ] M,g ) = [S 2 ] M,g  [S 1 ] M,g S 3 S 2 ConjP Conj and > S 1

Relations Likes works the same way; it is waiting for an individual (provided by Loren), and provides something that is waiting for a (second) individual (provided by Bond), the result of which will be true iff Bond likes Loren in the situation; that is,  F(likes). [likes] M,g = y [ x [  F(likes) ] ] [VP] M,g = y [ x [  F(likes) ] ] ( F(Loren) ) = x [  F(likes) ] [S] M,g = x [  F(likes) ] ( F(Bond) ) =  F(likes) S N P 2 Bond VP Vt likes > N P 1 Loren

Relations every is one step more complicated, but its basic structure is just likes and and and; it is waiting for a predicate (provided by fish), and provides something that is waiting for a (second) predicate (provided by hungry), the result of which will be true iff for all individuals, being a fish implies being hungry; that is,  x  U [x  F(fish)  x  F(hungry)] (Note: et is shorthand for ) [every] M,g = P [ Q [  x  U [P(x)  Q(x)] ] ] [NP] M,g = P [ Q [  x  U [P(x)  Q(x)] ] ] ( y[y  F(fish)] ) = Q [  x  U [ y[y  F(fish)](x)  Q(x)] ] = Q [  x  U [ x  F(fish)  Q(x)] ] [S] M,g = Q [  x  U [ x  F(fish)  Q(x)] ] ( y[y  F(hungry)] ) =  x  U [ x  F(fish)  y[y  F(hungry)](x) ] =  x  U [ x  F(fish)  x  F(hungry)] S VP hungry NP Det every > N C fish

Object quantifiers When a quantificational NP like every book is in the object position, there is a type mismatch and without anything further, the structure can not be interpreted. [NP] M,g is waiting for, but [Vt] M,g is not. [Vt] M,g is waiting for, but [NP] M,g is not. VP ??? Vt likes NP Det every > N C book

Quantifier Raising Quantifier Raising (QR) is a solution to this problem. Among other things, it replaces the NP every book with t n for some index n (here, 6) the semantic value of which is an individual. [  n ] M,g = g(n) [t 6 ] M,g = g(6) VP ??? Vt likes NP Det every > N C book VP Vt likes t 6

Quantifier Raising Quantifier Raising replaces the original position of every book with t n for some index n (here, 6), and puts every book up at the top of the structure. Notice that every book can’t simply be the sister to S. S is type, and we would still have a type mismatch. We need the sister of every book to be type. This is what the index (6) node provides. 6 converts a sentence into a predicate. S 2 ??? S 1 …t 6 … NP Det every > N C fish S 2 S 1 …t 6 … NP Det every > N C fish S 6

Quantifier Raising If the sentence is Bond likes every fish, then QR results in S 1 being Bond likes t 6. [S 1 ] M,g =  F(likes) 6 converts this into a predicate (“something Bond likes”) by: Putting S 1 inside x[…] Rewriting g(6) as x. [S] M,g = x [  F(likes) ] [S 2 ] M,g says: being a fish implies being something Bond likes. S 2 S 1 …t 6 … NP Det every > N C fish S 6

Quantifier Raising [S 1 ] M,g =  F(likes) 6 converts this into a predicate (“something Bond likes”) by: Putting S 1 inside x[…] Rewriting g(6) as x. The way 6 does this is by guaranteeing that the pointing function will point to x for index 6. We use a pointing function that does that (namely g[6/x]) instead of using g. We know that (no matter what g is): g[6/x] (6) = x So, if we evaluate S 1 with the pointing function g[6/x] instead of g, we’ll effectively replace all g(6)es with xes. Policy: From now on, you do not need to write out what [n] M,g is for any index n. Just write [S] M,g according to above (embed S 1 in x[…] and replace g(n) with x). S 2 S 1 …t 6 … NP Det every > N C fish S 6

Where to go from here That’s a summary of the interpretation system for the English fragment F3. There are a number of things that we have not yet incorporated into F3, if we want to have a more complete interpretation system. For example, tense. Bond was hungry is true under different conditions from Bond is hungry. Or Bond will have been hungry. A common approach to this is to treat the time as another part of the situation; i.e., [S] M,g,t is true iff S is true at time t in the situation M with “pointing function” g.

Where to go from here Another thing we might add are verbs like say, think, believe, where the “object” of these verbs is another (embedded) sentence: Bond believes that Loren likes Nemo. Bond said that every fish is hungry. Notice that Bond believes that Loren likes Nemo can be true even if Loren likes Nemo is false. We need to evaluate Loren likes Nemo with respect to Bond’s “beliefs” and not with respect to the actual world, again something we could add to the “situation”: [S] M,g,t,w is true iff S is true at time t in the situation M in possible world w with “pointing function” g.

Where to go from here When we start dealing with “Bond’s beliefs” and possible worlds in general, we can start considering a formalization of modals: Bond must like Nemo. Bond might be hungry. Bond might be hungry will be true iff in some possible world w (in the set of worlds comprising the modal base), [S] M,g,t,w is true. Bond must like Nemo will be true iff in all possible worlds w (in the modal base), [S] M,g,t,w is true.

Where to go from here As hinted at the end of the last handout, we can also add relative clauses to our fragment, allowing for: The fish that likes Bond is hungry. A man that every fish likes likes the woman that likes a book a fish likes. We’ll take this last step, as a final augmentation of our fragment.

Relative clauses A relative clause acts something like an adjective: a happy fish A fish that Bond likes The first holds of an x such that x is a fish and x is happy. The second holds of an x such that x is a fish and Bond likes x.

Forming relative clauses The way we will form relative clauses is to effectively take a sentence: Bond likes every fish And turn it into a noun phrase: Every fish that Bond likes Which can then go anywhere an NP can go. To do this, we are going to need another transformation, like Quantifier Raising.

The base structure We start by saying that we can expand NP not only to N P or to Det N C, but to Rel S: NP  N P NP  Det N C NP  Rel S Rel  that

Relative clauses The goal is to get: Every fish that is hungry is happy. S NP VP V be is S Adj hungry Rel thatNP Det every NCNC fish VP V be is Adj happy

Relative clauses Our existing interpretation rules can interpret this structure, once we add: [that] M,g = — S NP VP V be is S Adj hungry Rel thatt4t4 VP V be is Adj happy NP Det everyNCNC fish NCNC 4 N

Relative clauses The relative clause formation rule (above) must apply whenever the conditions are met. S S VP V be is S Adj hungry Rel thatt4t4 VP V be is Adj happy NP Det everyNCNC fish NCNC 4 S  [ NP that [ S X [ NP Det N C ] Y ] ]  [ NP Det [ Nc N C [ S  i [ S that [ S X t i Y ] ] ] ] ]

Homework 8 Homework 8: Due Tuesday 4/6. 1. Work out the truth conditions for Every fish that is hungry is happy using the structure on the previous slide. 2. Draw the structure for Every hungry fish is happy and work out the truth conditions for it. They should end up being the same as those you got in part 1 for Every fish that is hungry is happy. Note: You do not need to explicitly write the semantic value of index nodes (like 4 on the preceding tree). See “policy” a few slides back.

            