NLP. Introduction to NLP Anaphora –I went to see my grandfather at the hospital. The old man has been there for weeks. He had surgery a few days ago.

Slides:



Advertisements
Similar presentations
The people Look for some people. Write it down. By the water
Advertisements

Referring Expressions: Definition Referring expressions are words or phrases, the semantic interpretation of which is a discourse entity (also called referent)
Lesson Using Construction Fasteners and Hardware.
Automatically Evaluating Text Coherence Using Discourse Relations Ziheng Lin, Hwee Tou Ng and Min-Yen Kan Department of Computer Science National University.
Drills & Drilling Drills & Drilling.
2 Chapter Hand Tools. 2 Chapter Hand Tools Objectives Identify the various types of hand tools. Describe the advantages and disadvantages of each type.
Discourse Analysis David M. Cassel Natural Language Processing Villanova University April 21st, 2005 David M. Cassel Natural Language Processing Villanova.
Writing for Publication
Forming and Forging Mrs. Jones’s Classes.
CS 4705 Discourse Structure and Text Coherence What makes a text/dialogue coherent? Incoherent? “Consider, for example, the difference between passages.
PARTS OF SPEECH  noun  pronoun  verb  adjective  adverb  preposition  conjunction  interjection!
1 Discourse, coherence and anaphora resolution Lecture 16.
Pragmatics II: Discourse structure Ling 571 Fei Xia Week 7: 11/10/05.
Discourse Martin Hassel KTH NADA Royal Institute of Technology Stockholm
Anaphora Resolution Spring 2010, UCSC – Adrian Brasoveanu [Slides based on various sources, collected over a couple of years and repeatedly modified –
Chapter 18: Discourse Tianjun Fu Ling538 Presentation Nov 30th, 2006.
INTERNATIONAL CONFERENCE ON NATURAL LANGUAGE PROCESSING NLP-AI IIIT-Hyderabad CIIL, Mysore ICON DECEMBER, 2003.
DO NOW LESSON # 1)What are the 5/20/2015. Focus Point: What are the Types of Punches? ► Instructional Objectives: ► 1. List the purpose of various punches.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Discourse and Dialogue.
Discourse: Reference Ling571 Deep Processing Techniques for NLP March 2, 2011.
CS 4705 Algorithms for Reference Resolution. Anaphora resolution Finding in a text all the referring expressions that have one and the same denotation.
CS 4705 Discourse Structure and Text Coherence. What makes a text/dialogue coherent? Incoherent? “Consider, for example, the difference between passages.
CS 4705 Lecture 21 Algorithms for Reference Resolution.
Natural Language Generation Martin Hassel KTH CSC Royal Institute of Technology Stockholm
The ‘cooler climes’ text 1. Your kind invitation to come and enjoy cooler climes is so tempting 2.but I have been waiting to learn the outcome of medical.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 7.
1 Pragmatics: Discourse Analysis J&M’s Chapter 21.
Pragmatics I: Reference resolution Ling 571 Fei Xia Week 7: 11/8/05.
Portable Power Tools Cordless Drill Hammer Drill Orbital Sander
A Light-weight Approach to Coreference Resolution for Named Entities in Text Marin Dimitrov Ontotext Lab, Sirma AI Kalina Bontcheva, Hamish Cunningham,
INDUSTRIAL TECHNOLOGY- METAL ASSOCIATED THEORY TOPIC3. HAND TOOLS & FABRICATION VICESCLAMPSCUTTINGTINSIPS & CHISELS FILESHAMMERSFASTENERSSCREWDRIVERS.
1 Natural Language Processing Computational Discourse.
Fall 2005 Lecture Notes #7 EECS 595 / LING 541 / SI 661 Natural Language Processing.
General-purpose Bilingual Dictionaries I (English-Arabic) Chapter 4:
© M. Reber 10/6/2015 Functional Descriptions Documenting Product Specifications.
Relationship between Physics Understanding and Paragraph Coherence Reva Freedman November 15, 2012.
Mrs. Larkin. X- Acto Knife Used for cutting balsa wood, foam board, or paper.
Discourse Read J & M Chapter More than One Sentence at a Time The alphas have a long-standing hatred of the betas. Their leaders have decided that.
Discourse Analysis Radhika Mamidi. Coherence and cohesion What makes a text coherent? What are the coherent devices? Discourses have to have connectivity.
Writing Effective Sentences Unit 1. Lesson 1 Simple sentences with action verbs OBJECTIVES: After completing this lesson, you should be able to define.
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.
Reference Resolution. Sue bought a cup of coffee and a donut from Jane. She met John as she left. He looked at her enviously as she drank the coffee.
Meaning. Deictics  Are words, phrases and features of grammar that have to be interpreted in relation to the situation in which they are uttered such.
Coherence and Coreference Introduction to Discourse and Dialogue CS 359 October 2, 2001.
1 Natural Language Processing Chapter Outline Reference –Kinds of reference phenomena –Constraints on co-reference –Preferences for co-reference.
RST* text mapping *Rhetorical Structure Theory. The text: 1) Lactose and Lactase 2) Lactose is milk sugar; 3) the enzyme lactase breaks it down. 4) For.
OSSLT Prep February-March Tips for a Short Writing Task Before you begin to write  Remember that you are limited by the number of lines available.
What is a ‘gasogene’? The gasogene was a late Victorian device for producing carbonated water.
Reference Resolution CMSC Discourse and Dialogue September 30, 2004.
Sight Words.
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. TOOL BASICS.
Reference Resolution CMSC Natural Language Processing January 15, 2008.
Basic Hand Tools When making working models in the Imagineering Clubs, you will be using a variety of Hand Tools. For example making the Steady Hand Game.
Discourse: Structure and Coherence Kathy McKeown Thanks to Dan Jurafsky, Diane Litman, Andy Kehler, Jim Martin.
Discourse & Natural Language Generation Martin Hassel KTH NADA Royal Institute of Technology Stockholm
Fall 2004 Lecture Notes #8 EECS 595 / LING 541 / SI 661 Natural Language Processing.
Thought for the day TOOLBOXTOPICS.COM Company Name ___WHS_______________________ Job Name __Const. Core________________________ Date__9/20/2010______.
PARTS OF A SENTENCE. The subject of an English sentence is the person or thing that performs the action, or that the sentence makes a statement about.
Introduction to RST (Rhetorical Structure Theory)
Discourse Structure and Text Coherence
Discourse Analysis Natural Language Understanding basis
Commas: Use and Misuse.
Portable Power Tools Cordless Drill Hammer Drill Orbital Sander
Referring Expressions: Definition
Lecture 17: Discourse: Anaphora Resolution and Coherence
Algorithms for Reference Resolution
Drills & Drilling Drills & Drilling.
Bench Tools (Woodwork)
Portable Power Tools Cordless Drill Hammer Drill Orbital Sander
Introduction to Computational Linguistics
Presentation transcript:

NLP

Introduction to NLP

Anaphora –I went to see my grandfather at the hospital. The old man has been there for weeks. He had surgery a few days ago. Referring expressions and antecedents Issues with both single sentences and multi-sentential text Needed –Models of discourse

Sample use of anaphora –John saw Mary in the park. As every morning, she was walking her dog. What does “she” refer to? Candidate referents –John –Mary –The park –Every morning –Her dog

The Russian airline Aeroflot has been hit with a writ for loss and damages, filed in Hong Kong by the families of seven passengers killed in an air crash. All 75 people on board the Aeroflot Airbus died when it ploughed into a Siberian mountain in March 1994.

The Russian airline Aeroflot has been hit with a writ for loss and damages, filed in Hong Kong by the families of seven passengers killed in an air crash. All 75 people on board the Aeroflot Airbus died when it ploughed into a Siberian mountain in March 1994.

A screwdriver is a tool, manual or powered, for turning (driving or removing) screws. A typical simple screwdriver has a handle and a shaft, and a tip that the user inserts into the screw head to turn it. The shaft is usually made of tough steel to resist bending or twisting. The tip may be hardened to resist wear, treated with a dark tip coating for improved visual contrast between tip and screw—or ridged or treated for additional 'grip'. Handles are typically wood, metal, or plastic and usually hexagonal, square, or oval in cross- section to improve grip and prevent the tool from rolling when set down. Some manual screwdrivers have interchangeable tips that fit into a socket on the end of the shaft and are held in mechanically or magnetically. These often have a hollow handle that contains various types and sizes of tips, and a reversible ratchet action that allows multiple full turns without repositioning the tip or the user's hand.

Agreement constraints –gender, number, animacy Syntactic constraints –e.g., parallelism Sentence ordering –recency

Sentence recency100 Subject emphasis80 Existential emphasis (“there is …”)70 Accusative (direct object) emphasis50 Indirect object emphasis40 Non-adverbial emphasis50 Head noun emphasis80 [Lappin and Leass 1994]

Recency handling –weights are cut in half after each sentence is processed. Examples: –An Acura Integra is parked in the lot. (subject) –There is an Acura Integra parked in the lot. (existential predicate nominal) –John parked an Acura Integra in the lot. (object) –John gave Susan an Acura Integra. (indirect object) –In his Acura Integra, John showed Susan his new CD player. (demarcated adverbial PP)

Collect the potential referents (up to four sentences back). Remove potential referents that do not agree in number or gender with the pronoun. Remove potential referents that do not pass intrasentential syntactic coreference constraints. Compute the total salience value of the referent by adding any applicable values for role parallelism (+35) or cataphora (-175). Select the referent with the highest salience value. In case of a tie, select the closest referent in terms of string position. When moving to a new sentence, halve all scores for the existing entities on the list.

John saw a beautiful Acura Integra at the dealership last week. He showed it to Bill. He bought it. RecSubjExistObjInd ObjNon AdvHead NTotal John Integra dealership Example from Jurafsky and Martin

ReferentPhrasesValue John{John}155 Integra{a beautiful Acura Integra}140 dealership{the dealership}115

ReferentPhrasesValue John{John, he 1 }465 Integra{a beautiful Acura Integra}140 dealership{the dealership}115

ReferentPhrasesValue John{John, he 1 }465 Integra{a beautiful Acura Integra, it}420 dealership{the dealership}115

ReferentPhrasesValue John{John, he 1 }465 Integra{a beautiful Acura Integra, it}420 Bill{Bill}270 dealership{the dealership}115

ReferentPhrasesValue John{John, he 1 }232.5 Integra{a beautiful Acura Integra, it 1 }210 Bill{Bill}135 dealership{the dealership}57.5

Goal: understand the local coherence of discourse Why some texts are considered more coherent Inference load associated with badly chosen referring expressions Too much focus shift makes the text hard to understand.

Every utterance U n has a backwards looking center C b, which connects U n with the previous utterance U n-1. Every utterance also has a partially ordered set of forward looking centers C f related to the next utterance U n+1. The order depends on syntax (e.g., subject>object) The preferred center C p is the highest ranking element of C f.

Discourse Analysis

Examples I saw Mary in the street. She was looking for a bookstore. ? I saw Mary in the street. She has a cat. ?? I saw Mary in the street. The Pistons won. Rhetorical Structure Theory (Mann and Thompson 1988)

The carpenter was tired.He had been working all day.

The satellite increases the belief in the relation described in the nucleus Some relations have only a nucleus, others have two nuclei, yet others have one nucleus and one satellite

Result –The carpenter worked all day. The new cabinet was ready in the evening. Explanation –The carpenter was tired. He had spent the entire day building a new cabinet. Parallel –The carpenter worked all day. The upholsterer took the day off. Elaboration –The carpenter built a cabinet. The cabinet had four drawers and an oversized rear panel. Other relations –Nucleus+satellite: circumstance, volitional cause, purpose, interpretation, restatement, summary –Multi-nuclear: sequence, contrast, joint [Mann and Thompson 1988]

RelationNucleusSatellite Antithesisideas favored by the authorideas disfavored by the author Backgroundtext whose understanding is being facilitatedtext for facilitating understanding Concessionsituation affirmed by authorsituation which is apparently inconsistent but also affirmed by author Elaborationbasic informationadditional information Purposean intended situationthe intent behind the situation Restatementa situationa reexpression of the situation Summarytexta short summary of that text

1) Title: Bouquets in a basket - with living flowers 2) There is a gardening revolution going on. 3) People are planting flower baskets with living plants, 4) mixing many types in one container for a full summer of floral beauty. 5) To create your own "Victorian" bouquet of flowers, 6) choose varying shapes, sizes and forms, besides a variety of complementary colors. 7) Plants that grow tall should be surrounded by smaller ones and filled with others that tumble over the side of a hanging basket. 8) Leaf textures and colors will also be important. 9) There is the silver-white foliage of dusty miller, the feathery threads of lotus vine floating down from above, the deep greens, or chartreuse, even the widely varied foliage colors of the coleus. Christian Science Monitor, April, 1983 from Mann/Matthiessen/Thompson

Four RST relations: contrast, cause-explanation- evidence, condition, elaboration + non-relation Up to 4M automatically labeled examples per relation Naïve Bayes Word co-occurrence features [Marcu and Echihabi 2002]

S=Sentence, P=Paragraph, D=ddocument

Aim –research goal of the paper Textual –statements about section structure Own –description of the authors’ work (methodology, results, discussion) Background –generally accepted scientific background Contrast –comparison with other work Basis –statements of agreement with other work Other –description of other researchers’ work [Teufel and Moens 2002]

[Barzilay and Lapata 2008]

6 sentences S=subject, O=object, X=neither [Barzilay and Lapata 2008]

NLP