CS544: Lecture 4: Syntax and Compositional Semantics of Conjunctions Jerry R. Hobbs USC/ISI Marina del Rey, CA February 16, 2010.

Slides:



Advertisements
Similar presentations
Lecture 3a Clause functions Adapted from Mary Laughren.
Advertisements

Structure of Complementation
The Structure of Sentences Asian 401
Semantics (Representing Meaning)
Properties of X-bar Complements, Adjuncts, & Specifiers.
Prepositional, Appositive, Participial, Gerund, and Infinitive Phrases
Statistical NLP: Lecture 3
Chapter 4 Basics of English Grammar
The Clause Mrs. Robilotto 9 CP. Definition THE CLAUSE A group of related words that is used as part of a sentence Contains a verb and its subject Can.
The study of how words combine to form grammatical sentences.
MORPHOLOGY - morphemes are the building blocks that make up words.
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
Syntax 2nd class Chapter 4.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Word Classes and English Grammar.
1 Annotation Guidelines for the Penn Discourse Treebank Part B Eleni Miltsakaki, Rashmi Prasad, Aravind Joshi, Bonnie Webber.
NLP and Speech 2004 English Grammar
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Matakuliah: G0922/Introduction to Linguistics Tahun: 2008 Session 10 Syntax 1.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Ch. 18 : Adverb Clauses → Modifying Adverbial Phrases
Phrase Structure The formal means of representing constituency.
VERBS.
Designed by Elisa Paramore
Chapter 2 A rapid overview.
PHRASES AND CLAUSES. REVIEW  A sentence needs a subject and predicate (the action of the subject)  Modifiers modify nouns and verbs  Adjectives modify.
THE PARTS OF SYNTAX Don’t worry, it’s just a phrase ELL113 Week 4.
INCORRECT. 19 – Sentence fragment. INCORRECT. 19 – Sentence fragment.
Phrases and Sentences: Grammar
Syntax The number of words in a language is finite
Embedded Clauses in TAG
Constituents  Sentence has internal structure  The structures are represented in our mind  Words in a sentence are grouped into units, and these units.
Meeting 3 Syntax Constituency, Trees, and Rules
The Basics & Finding Subjects and Objects
Chapter 4 Basics of English Grammar Business Communication Copyright 2010 South-Western Cengage Learning.
Introduction to English Syntax Level 1 Course Ron Kuzar Department of English Language and Literature University of Haifa Chapter 2 Sentences: From Lexicon.
Lecture Four Syntax.
Comma Splices & Run-On Sentences - What is a comma splice? - What is a run-on (fused) sentence? - Six ways to fix comma splices & run-ons.
CS 544: Lecture 3.3 Syntax and Compositional Semantics Jerry R. Hobbs USC/ISI Marina del Rey, CA.
October 15, 2007 Non-finite clauses and control : Grammars and Lexicons Lori Levin.
Lecture E: Phrase functions and clause functions
NLP. Introduction to NLP Is language more than just a “bag of words”? Grammatical rules apply to categories and groups of words, not individual words.
By: Hannah Gettings.  Definition of pronoun: a word used in place of a noun.  Example: She gave him the book. *say for example the names of the people.
Context Free Grammars Reading: Chap 9, Jurafsky & Martin This slide set was adapted from J. Martin, U. Colorado Instructor: Rada Mihalcea.
Adverbs EG, Unit 8, Lesson 27.
Verbals A.The infinintive He plans to return. John is the man to see. Functions of the Infinitive 1. As a a substantive Subject- Linking Verb- adjective.
Rules, Movement, Ambiguity
Lecture Week 5 Basic Constructions of English Sentence.
Syntax II “I really do not know that anything has ever been more exciting than diagramming sentences.” --Gertrude Stein.
Syntax Lecture 6: Missing Subjects of Non-finite Clauses.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
SYNTAX.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
SYNTAX 1 NOV 9, 2015 – DAY 31 Brain & Language LING NSCI Fall 2015.
1 Chapter 4 Syntax Part III. 2 The infinity of language pp The number of sentences in a language is infinite. 2. The length of sentences is.
Clauses The building blocks of sentences: units of syntactic construction made of more than one phrase.
Basic Syntactic Structures of English CSCI-GA.2590 – Lecture 2B Ralph Grishman NYU.
Clauses. Every clause is either independent or subordinate (dependent) An independent (or main) clause has a subject and a verb and expresses a complete.
Language Structure Lecture 4: Adjectives and Adverbs – and the phrases that they head Helena Frännhag Spring 2013.
Understanding Sentence Structure California Language Arts Standard 1.2 (9 th and 10 th Grade): Understand sentence construction and proper English Usage.
Grammar 101 How to be awesome. Clauses A clause has a subject/verb form. A subject is who or what is doing the stuff. A verb is what is being done by.
Chapter 5 English Syntax: The Grammar of Words. What is syntax? the study of the structures of sentences combining words to create ‘all & only’ ‘well-formed’
Writing 2 ENG 221 Norah AlFayez. Lecture Contents Revision of Writing 1. Introduction to basic grammar. Parts of speech. Parts of sentences. Subordinate.
Week 3. Clauses and Trees English Syntax. Trees and constituency A sentence has a hierarchical structure Constituents can have constituents of their own.
Statistical NLP: Lecture 3
Intensive verb Syifa Khoirunnisa.
Lecture 7: Missing Subjects of Non-finite Clauses
Verbals A. The infinintive He plans to return. John is the man to see.
Introduction to Linguistics
Basic comma usage.
"JEOPARDY. “ is a registered trademarks of Jeopardy Productions, Inc
Presentation transcript:

CS544: Lecture 4: Syntax and Compositional Semantics of Conjunctions Jerry R. Hobbs USC/ISI Marina del Rey, CA February 16, 2010

Coordination Coordinate conjunctions: and, or, but Conjunction constructions can be quite complicated, in general: Pat likes Chris, and Kim too. (ambiguous) Pat likes and wants to go on a date with Chris. The teacher likes intelligent and enthusiastic students. (ambiguous) The three tall English and two short Danish men John believes Mary likes him and is happy. (ambiguous) John likes Mary, and Pat Chris. Sudan is an underdeveloped country, the northern half of which is desert and the southern jungle. But.....

Coordination of Like Constituents By far the most common case is when two phrases of the same category are conjoined. S: Florida beat Oklahoma, and USC beat Penn State. VP: Florida beat Oklahoma and won the national championship. Predicate Complement: The doctor was impatient and in a hurry. PP: We have a government by the people and for the people. NP: The team and many of its fans celebrated after the game. N: Our country needs dedicated men and women. Numbers: This class has 15 or 16 students. Rules like VP --> VP Conj VP

Conjoined Ss and NPs Conjoined VPs, PPs, many NPs, many Ns get distributive readings: Florida beat Oklahoma and won the national championship. ==> Florida beat Oklahoma and Florida won the national championship. We have a govt by the people and for the people. ==> We have a govt by the people and we have a govt for the people. The team and many of its fans celebrated. ==> The team celebrated and many of its fans celebrated. This class has 15 or 16 students. ==> This class has 15 students or this class has 16 students. (BUT: This class has 15 or 20 students.) NPs also get collective readings; The union and the company agreed to mediation. Pat and Chris carried the sofa. A systematic ambiguity

Conjoined Ss and NPs Distributive readings for Ss, VPs, PPs, distributive NPs, etc. ==> distribute out and conjoin clauses Florida beat Oklahoma and won the national championship. ==> beat(FL,OK) & win(FL,nc) OR ==> beat’(e1,FL,OK) & win’(e2,FL,nc) & and(e1,e2) NPs are ambiguous between distributive and collective readings: Pat and Chris fought. ==> Pat fought and Chris fought [distributive] ==> fight’(e1,p) & fight’(e2,c) & and(e1,e2) ==> Pat and Chris fought (each other) [collective] ==> andn(s,p,c) & fight(s) Ambiguity, when there are multiple adjectives: I like comfortable and inexpensive hotels ==> I like hotels that are comfortable and inexpensive. [distributive] ==> I like comfortable hotels and I like inexpensive hotels [collective] a set constructor

Logical Form of Conjunctions Two cases: Clause conjunction: Chris arrived and Pat left. arrive’(e1,c) & leave’(e2,p) & and’(e3,e1,e2) logical conjunction NP conjunction: Chris and Pat andn’(e,x,c,p) x is the typical element of the set {c,p} set construction “intelligent and enthusiastic students” is ambiguous: => students who are both intelligent and enthusiastic (Clause) => intelligent students and enthusiastic students (NP)

“or” Normally “or” distributes out to the whole sentence. The Democrats or the Republicans will win the election. ==> The Democrats will win the election or the Republicans will win the election. But sometimes “or” means “and” in NPs: A touchdown or a field goal will win the game. is stronger than A touchdown will win the game or a field goal will win the game. (true if we are 5 points behind) In fact, A touchdown will win the game, and a field goal will win the game. There is an implicit implication: If exists(touchdown) or exists(field goal) then win. (A v B) --> C iff (A --> C) & (B --> C)

Coordinating Conjunctions and Similar Words What are the coordinating conjunctions? and, or, nor, but, so, yet Subordinating conjunctions (because, while, when, although,....) can be in an initial adjunct. I left because he insulted me. He insulted me and I left. Because he insulted me, I left. * And I left, he insulted me. Discourse adverbs (then, however, moreover,...) link sentences semantically, but not syntactically: He tried hard. However, he failed. * He tried hard, however he failed. Discourse adverbs can move around; conjunctions can’t. However, he failed. But he failed. He, however, failed. * He, but, failed. It’s a kind of coreference problem to resolve the omitted argument of discourse adverbs.

What “and” Means Similarity (about 60%): Florida beat Oklahoma, and USC beat Penn State. Then (about 30%): Florida beat Oklahoma, and the players went out and celebrated. Some causal uses: Snooze and lose. The weather was beautiful, and we went out for a walk.

Conjunction and Gaps Two clauses or VPs can be conjoined and be part of a relative clause, but (almost always) they both have to have gaps to be filled by the same filler. a team that USC defeated () and Oklahoma would surely lose to () Rare exceptions: This is a problem we need to go to Maine and work out () But in this case, “and” must mean “then”, never similarity. * This is a team that Florida defeated () and USC defeated Penn State.

Other Conjunction Issues A systematic conjunction ambiguity in NPs: The teacher likes intelligent and enthusiastic students. other state pension funds and retirement systems Initial conjunctions: And foreign forces can easily turn them into enemies. ==> and(e1,e2) & easy’(e2,e3) & can’(e3,x,e4) &.... but where e1 cannot be determined by syntax Null conjunctions (in colloquial and novelistic styles): They had no transnational agenda, no dreams of global jihad. Everyone had a cautionary tale about fights breaking out over parking spaces after a heavy snow, the resulting brawl or shooting.

VP Ellipsis John called his mother, and so did Bill. ==> John called his mother, and Bill called his mother. Does this refer to John: strict reading Bill: sloppy reading Mysteries of missing readings: John revised his paper before the teacher did, and Bill did too. =/=> Bill revised John’s paper before the teacher revised Bill’s paper. John said that he revised his paper, and Bill did too. =/=> Bill said that John revised Bill’s paper. This was “ellipted”/omitted

VP Ellipsis and Similarity John called his mother, and so did Bill. call(J,M1): J: human(J) M1: mother(M1) poss(M1,x1): x1: he(x1) Coref(x1,J) do(B) --> call(B,M2): B: human(B) M2: M2 =M1 or mother(M2) poss(M2,x2): x2: x2 = x1 or he(x2) Coref(x2,B) Strict readings: B called J’s mother Sloppy reading: B called B’s mother All successful approaches to the VP ellipsis problem are based on maximizing the similarity of the two clauses. Similarity = shared properties and similar arguments.

Gapping Florida beat Oklahoma, and USC Penn State. ==> Florida beat Michigan, and USC beat Penn State. Sudan is an underdeveloped country, the northern half of which is desert and the southern jungle. ==> Sudan is an underdeveloped country, the northern half of which is desert and the southern half of which is jungle.

Comparison Absolute: John is tall. ==> tall(j) Comparative: John is taller than Bill. ==> more(j,b,tall) OR more(j,b,e) & tall’(e,x) Superlative: John is the tallest boy in class. ==> most(j,s,tall) OR most(j,s,e) & tall’(e,x) J some threshold J B J boys in class

Related Comparison Constructions as... as: John is as tall as Bill. ==> as(j,b,tall) OR as(j,b,e) & tall’(e,x) so... that: John is so tall that he can touch the ceiling. ==> so(j,tall,e1) OR so(j,e,e1) & tall’(e,x) & can’(e1,e2) & touch’(e2,j,c) & ceiling(c) The asteroid is too small to generate heat ==> too(x,small,e1) OR too(x,e,e1) & small’(e1,z) & generate’(e1,x,h) & heat(h) J B J can touch ceiling A generate heat

Superlatives Superlatives look like ordinary adjectives, in NPs or predicate complements, taking ordinary complements. Comparison set must be discovered from these complements and from context. John is the tallest boy in the room. ==> Comparison set: boys in the room The election was the closest in a century. ==> Comparison set: elections in the last century I’ve been to Washington DC often, most recently in November. ==> Comparison set: trips to Washington DC

“so... that” and “as... as” John is so tall that he can reach the ceiling. Treat “so” as a word that can take an adjective phrase as its first complement, and a “that” clause its second complement. “so”: So[subj=np, compl1=adjp, compl2=thats] OR Syn[adj,n,adj,thats] John is as tall as Bill. Quick and dirty: Treat “as” as operator that takes adjective phrase as its first complement and an “as” PP as its second. “as”: As[subj=np, compl1=adjp, compl2=pp.as] OR Syn[adj,n,adj,p.as] More generally, the second “as” is as complex as “than” phrases: He talked about freedom as much as the Americans do. John can jump as high as Bill can. The recession was as severe as had been feared. The result is an adjective phrase

Comparatives John is taller than Bill. JB [J is Q1 tall] more than [B is Q2 tall] Q1 > Q2 tall-ness or height To analyze a comparative, we need to identify the scale (tall-ness) and the two entities being compared on the scale.

Comparing Events Avoiding a fight is better than winning one. avoiding a fight winning a fight good-ness Simplest case: NP1 is more Adj than NP2

Comparatives in Determiners This class has more than 20 students. #students 20 number [ NP [ NP more] than [ NP 20 students]] OR [ NP [ Det more than 20] students] Probably correct Simpler to use in practice (TreeBank)

More Complex Comparatives Mary sold more cars than Bill. ==> Mary sold more cars than Bill sold Q cars. #cars sold Mary #cars Bill sold number P(X) more than Y: Find the X that corresponds to Y. Find the P. Construct P(Y) Mary likes Sue more than Jenny. John says he jogs more than Bill. Ambiguities:

More Complex Comparatives USC plays better than UCLA can. ==> USC plays better than UCLA can play. USC plays UCLA can play good-ness P(X) more than Y: Find the X that corresponds to Y. ==> USC -s : UCLA can Find the P. ==> play Construct P(Y) ==> UCLA can play

Implicit Standard of Comparison Trade makes countries richer. ==> Trade makes countries with trade richer than countries without trade. country with trade country without trade rich-ness ? They insist on greater openness. The work was tougher in such weather. Attendance became more sporadic.

Comparison of Modality Reconstruction in Iraq is harder than Bush expected. Reconstruction in Iraq is Q1 hard Reconstruction in Iraq was expected by Bush to be Q2 hard Q1 > Q2 Reconstruction in Iraq as Bush expected it to be hard-ness Reconstruction in Iraq as it is

Modifiers on Comparatives John is much taller than Bill. John is 3 inches taller than Bill. JB tall-ness Measure of the difference

Summary of “Shallow” Logical Form The logical form of a sentence is an existentially quantified conjunction of propositions: “The teacher graded the papers slowly.” ==> (E e1,e2,e3,e4,e5,e6,e7,e8,t,p,s) [the’(e1,t,e2) & teacher’(e2,t) & grade’(e3,t,p) & Past’(e4,e3) & the’(e5,p,e6) & paper’(e6,p) & Plural’(e6,p,s) & slow’(e7,e3)] Nouns: book => book’(e,x) Proper nouns: Chris => Chris’(e,x) Plural nouns: books => book’(e1,x) & Plural’(e2,x,s) Prenominal nouns: wine glass => wine’(e1,x) & nn’(e2,x,y) & glass’(e3,y) Adjectives: tall => tall’(e,x) Adjectives with complements: able to fly => able’(e1,x,e2) & fly’(e2,x) Determiners: the => the’(e1,x,e2) = x is uniquely identifiable in context by means of the property e2 Quantifiers: many => many’(e, s) (a property of the set) Numbers: three => three’(e,s) (a property of the set)

Summary of “Shallow” Logical Form Verbs: Intransitive: sleep => sleep’(e,x) Transitive: read => read’(e,x,y) Ditransitive: give => give’(e,x,y,z) Infinitive complemenet: want to go => want’(e1,x,e2) & go’(e2,x) Sentential complement: say that he left => say’(e1,x,e2) & Past’(e2,e3) & leave’(e3,y) Prepositions: P NP: in Tampa => in’(e,x,t) P S: before he left => before’(e1,x,e2) & Past’(e2,e3) & leave’(e3,y) (x argument (subject) is the S or NP the PP modifies) Adverbs: run quickly => quick’(e1,e2) & run’(e2,x)

Summary of “Shallow” Logical Form Conjunction: Clause conjunction: Chris arrived and Kim left => arrive’(e1,c) & leave’(e2,k) & and’(e3,e1,e2) NP conjunction: Chris and Pat => andn’(e1,x,c,p)