Discourse Structure and Discourse Coherence

Slides:



Advertisements
Similar presentations
Pseudo-Relevance Feedback For Multimedia Retrieval By Rong Yan, Alexander G. and Rong Jin Mwangi S. Kariuki
Advertisements

Text Categorization.
Chapter 5: Introduction to Information Retrieval
CS 4705 Discourse Structure and Text Coherence What makes a text/dialogue coherent? Incoherent? “Consider, for example, the difference between passages.
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
Natural Language Processing
INTERNATIONAL CONFERENCE ON NATURAL LANGUAGE PROCESSING NLP-AI IIIT-Hyderabad CIIL, Mysore ICON DECEMBER, 2003.
Lexical chains for summarization a summary of Silber & McCoy’s work by Keith Trnka.
Predicting Text Quality for Scientific Articles Annie Louis University of Pennsylvania Advisor: Ani Nenkova.
Predicting Text Quality for Scientific Articles AAAI/SIGART-11 Doctoral Consortium Annie Louis : Louis A. and Nenkova A Automatically.
Search and Retrieval: More on Term Weighting and Document Ranking Prof. Marti Hearst SIMS 202, Lecture 22.
Database Management Systems, R. Ramakrishnan1 Computing Relevance, Similarity: The Vector Space Model Chapter 27, Part B Based on Larson and Hearst’s slides.
CS 4705 Discourse Structure and Text Coherence. What makes a text/dialogue coherent? Incoherent? “Consider, for example, the difference between passages.
Ch 4: Information Retrieval and Text Mining
Automatic Classification of Semantic Relations between Facts and Opinions Koji Murakami, Eric Nichols, Junta Mizuno, Yotaro Watanabe, Hayato Goto, Megumi.
Approaches to automatic summarization Lecture 5. Types of summaries Extracts – Sentences from the original document are displayed together to form a summary.
Latent Semantic Analysis (LSA). Introduction to LSA Learning Model Uses Singular Value Decomposition (SVD) to simulate human learning of word and passage.
Discourse and intertextual issues in translation.
Advanced Multimedia Text Classification Tamara Berg.
1 Computational Discourse Chapter 21 November 2012 Lecture #15.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Interactive Dialogue Systems Professor Diane Litman Computer Science Department & Learning Research and Development Center University of Pittsburgh Pittsburgh,
1 A study on automatically extracted keywords in text categorization Authors:Anette Hulth and Be´ata B. Megyesi From:ACL 2006 Reporter: 陳永祥 Date:2007/10/16.
Invention and Arrangement
Text Classification, Active/Interactive learning.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology 1 A Comparison of SOM Based Document Categorization Systems.
Clustering Supervised vs. Unsupervised Learning Examples of clustering in Web IR Characteristics of clustering Clustering algorithms Cluster Labeling 1.
Basic Machine Learning: Clustering CS 315 – Web Search and Data Mining 1.
Generic text summarization using relevance measure and latent semantic analysis Gong Yihong and Xin Liu SIGIR, April 2015 Yubin Lim.
Efficiently Computed Lexical Chains As an Intermediate Representation for Automatic Text Summarization H.G. Silber and K.F. McCoy University of Delaware.
1 Computing Relevance, Similarity: The Vector Space Model.
CS774. Markov Random Field : Theory and Application Lecture 19 Kyomin Jung KAIST Nov
1 Learning Sub-structures of Document Semantic Graphs for Document Summarization 1 Jure Leskovec, 1 Marko Grobelnik, 2 Natasa Milic-Frayling 1 Jozef Stefan.
CPSC 404 Laks V.S. Lakshmanan1 Computing Relevance, Similarity: The Vector Space Model Chapter 27, Part B Based on Larson and Hearst’s slides at UC-Berkeley.
Indirect Supervision Protocols for Learning in Natural Language Processing II. Learning by Inventing Binary Labels This work is supported by DARPA funding.
LANGUAGE MODELS FOR RELEVANCE FEEDBACK Lee Won Hee.
Chapter 23: Probabilistic Language Models April 13, 2004.
1/21 Automatic Discovery of Intentions in Text and its Application to Question Answering (ACL 2005 Student Research Workshop )
Methods for Automatic Evaluation of Sentence Extract Summaries * G.Ravindra +, N.Balakrishnan +, K.R.Ramakrishnan * Supercomputer Education & Research.
For Monday Read chapter 24, sections 1-3 Homework: –Chapter 23, exercise 8.
Vector Space Models.
A Critique and Improvement of an Evaluation Metric for Text Segmentation A Paper by Lev Pevzner (Harvard University) Marti A. Hearst (UC, Berkeley) Presented.
Automatic recognition of discourse relations Lecture 3.
UWMS Data Mining Workshop Content Analysis: Automated Summarizing Prof. Marti Hearst SIMS 202, Lecture 16.
Transitions Bridges between ideas and supporting points.
Improved Video Categorization from Text Metadata and User Comments ACM SIGIR 2011:Research and development in Information Retrieval - Katja Filippova -
Finding document topics for improving topic segmentation Source: ACL2007 Authors: Olivier Ferret (18 route du Panorama, BP6) Reporter:Yong-Xiang Chen.
Ranked Retrieval INST 734 Module 3 Doug Oard. Agenda Ranked retrieval  Similarity-based ranking Probability-based ranking.
SIMS 296a-4 Text Data Mining Marti Hearst UC Berkeley SIMS.
Event-Based Extractive Summarization E. Filatova and V. Hatzivassiloglou Department of Computer Science Columbia University (ACL 2004)
Natural Language Processing Topics in Information Retrieval August, 2002.
Grammatical and lexical coherence in writing group Done by: O`rinboyeva M. Checked by : RasulovaS.
An evolutionary approach for improving the quality of automatic summaries Constantin Orasan Research Group in Computational Linguistics School of Humanities,
Discourse: Structure and Coherence Kathy McKeown Thanks to Dan Jurafsky, Diane Litman, Andy Kehler, Jim Martin.
Recognizing Discourse Structure: Text Discourse & Dialogue CMSC October 16, 2006.
Natural Language Processing COMPSCI 423/723 Rohit Kate.
1 Text Categorization  Assigning documents to a fixed set of categories  Applications:  Web pages  Recommending pages  Yahoo-like classification hierarchies.
Discourse: Structure and Coherence Kathy McKeown Thanks to Dan Jurafsky, Diane Litman, Andy Kehler, Jim Martin.
Academic Writing Fatima AlShaikh. A duty that you are assigned to perform or a task that is assigned or undertaken. For example: Research papers (most.
IR 6 Scoring, term weighting and the vector space model.
Content Selection: Supervision & Discourse
Plan for Today’s Lecture(s)
Discourse Structure and Text Coherence
Web News Sentence Searching Using Linguistic Graph Similarity
Robust Semantics, Information Extraction, and Information Retrieval
Compact Query Term Selection Using Topically Related Text
Language Models for Information Retrieval
CSCI 5832 Natural Language Processing
Presentation transcript:

Discourse Structure and Discourse Coherence Julia Hirschberg CS 4705 Thanks to Dan Jurafsky, Diane Litman, Andy Kehler, Jim Martin

What makes a text or dialogue coherent? “Consider, for example, the difference between passages (18.71) and (18.72). Almost certainly not. The reason is that these utterances, when juxtaposed, will not exhibit coherence. Do you have a discourse? Assume that you have collected an arbitrary set of well-formed and independently interpretable utterances, for instance, by randomly selecting one sentence from each of the previous chapters of this book.”

Or, this? “Assume that you have collected an arbitrary set of well-formed and independently interpretable utterances, for instance, by randomly selecting one sentence from each of the previous chapters of this book. Do you have a discourse? Almost certainly not. The reason is that these utterances, when juxtaposed, will not exhibit coherence. Consider, for example, the difference between passages (18.71) and (18.72).”

What makes a text coherent? Appropriate use of coherence relations between subparts of the discourse -- rhetorical structure Appropriate sequencing of subparts of the discourse -- discourse/topic structure Appropriate use of referring expressions

Outline Discourse Structure Textiling Coherence Hobbs coherence relations Rhetorical Structure Theory

Conventions of Discourse Structure Differ for different genres Academic articles: Abstract, Introduction, Methodology, Results, Conclusion Newspaper stories: Inverted Pyramid structure: Lead followed by expansion, least important last Textbook chapters News broadcasts NB: We can take advantage of this to ‘parse’ discourse structures

Discourse Segmentation Simpler task: Separating document into linear sequence of subtopics Applications Information retrieval Automatically segmenting a TV news broadcast or a long news story into sequence of stories Text summarization Information extraction Extract information from a coherent segment or topic Question Answering

Unsupervised Segmentation Hearst (1997): 21-paragraph science news article on “Stargazers” Goal: produce the following subtopic segments:

Intuition: Cohesion Halliday and Hasan (1976): “The use of certain linguistic devices to link or tie together textual units” Lexical cohesion: Indicated by relations between words in the two units (identical word, synonym, hypernym) Before winter I built a chimney, and shingled the sides of my house. I thus have a tight shingled and plastered house. Peel, core and slice the pears and the apples. Add the fruit to the skillet.

Intuition: Cohesion Non-lexical: anaphora Cohesion chain: The Woodhouses were first in consequence there. All looked up to them. Cohesion chain: Peel, core and slice the pears and the apples. Add the fruit to the skillet. When they are soft…

Cohesion-Based Segmentation Sentences or paragraphs in a subtopic are cohesive with each other But not with paragraphs in a neighboring subtopic So, if we measured the cohesion between every neighboring sentences We might expect a ‘dip’ in cohesion at subtopic boundaries.

TexTiling (Hearst ’97) Tokenization Each space-delimited word Converted to lower case Throw out stop list words Stem the rest Group into pseudo-sentences (windows) of length w=20 Lexical Score Determination: cohesion score Three part score including Average similarity (cosine measure) between gaps Introduction of new terms Lexical chains Boundary Identification

TexTiling Method

Cosine Similarity Normalized (by length) dot product of 2 lexical feature vectors

Vector Space Model In the vector space model, both documents and queries are represented as vectors of numbers For TexTiling: both segments are represented as vectors For document categorization, both documents are represented as vectors Numbers are derived from the words that occur in the collection

Representations Start with bit vectors This says that there are N word types in the collection and that the representation of a document consists of a 1 for each corresponding word type that occurs in the document. We can compare two docs or a query and a doc by summing the bits they have in common

Term Weighting Bit vector idea treats all terms that occur in the query and the document equally Better to give more important terms greater weight Why? How would we decide what is more important?

Term Weighting Two measures used Local weight Global weight How important is this term to the meaning of this document? Usually based on the frequency of the term in the document Global weight How well does this term discriminate among the documents in the collection? The more documents a term occurs in the less important it is -- the fewer the better

Term Weighting Local weights Global weights Generally, some function of the frequency of terms in documents is used Global weights The standard technique is known as inverse document frequency N= number of documents; ni = number of documents with term i

Tf-IDF Weighting To get the weight for a term in a document, multiply the term’s frequency-derived weight by its inverse document frequency

Back to Similarity We were counting bits to get similarity Now we have weights But that favors long documents over shorter ones We need to normalize by length

Similarity in Space (Vector Space Model)

Similarity View the document as a vector from the origin to a point in the space, rather than as the point. In this view it’s the direction the vector is pointing that matters rather than the exact position We can capture this by normalizing the comparison to factor out the length of the vectors

Similarity The cosine measure normalizes the dot product by the length of the vectors

TextTiling algorithm

Lexical Score Part 2: Introduction of New Terms Cohesion score is negative of number of new terms that occur in left and right blocks.

Lexical Score Part 3: Lexical Chains Cohesion: negative of number of lexical chains that span gap

Supervised Discourse segmentation Discourse markers or cue words Broadcast news Good evening, I’m <PERSON> …coming up…. Science articles “First,….” “The next topic….”

Supervised discourse segmentation Supervised machine learning Label segment boundaries in training and test set Extract features in training Learn a classifier In testing, apply features to predict boundaries

Supervised discourse segmentation Evaluation: WindowDiff (Pevzner and Hearst 2000) assign partial credit Mean number of boundary differences within windows (averaged over numbers of scans)

Text Coherence What makes a discourse coherent? The reason is that these utterances, when juxtaposed, will not exhibit coherence. Almost certainly not. Do you have a discourse? Assume that you have collected an arbitrary set of well-formed and independently interpretable utterances, for instance, by randomly selecting one sentence from each of the previous chapters of this book.

Or…. Assume that you have collected an arbitrary set of well-formed and independently interpretable utterances, for instance, by randomly selecting one sentence from each of the previous chapters of this book. Do you have a discourse? Almost certainly not. The reason is that these utterances, when juxtaposed, will not exhibit coherence.

Coherence John hid Bill’s car keys. He was drunk. ??John hid Bill’s car keys. He likes spinach.

What makes a text coherent? Appropriate use of coherence relations between subparts of the discourse -- rhetorical structure Appropriate sequencing of subparts of the discourse -- discourse/topic structure Appropriate use of referring expressions

Hobbes ’79: Coherence Relations Result Infer that the state or event asserted by S0 causes or could cause the state or event asserted by S1. The Tin Woodman was caught in the rain. His joints rusted.

Explanation Infer that the state or event asserted by S1 causes or could cause the state or event asserted by S0. John hid Bill’s car keys. He was drunk.

Parallel Infer p(a1, a2..) from the assertion of S0 and p(b1,b2…) from the assertion of S1, where ai and bi are similar, for all I. The Scarecrow wanted some brains. The Tin Woodman wanted a heart.

Elaboration Infer the same proposition P from the assertions of S0 and S1. Dorothy was from Kansas. She lived in the midst of the great Kansas prairies.

Coherence Relations

Rhetorical Structure Theory Another theory of discourse structure, based on identifying relations between segments of the text Nucleus/satellite notion encodes asymmetry Nucleus is thing that if you deleted it, text wouldn’t make sense. Some rhetorical relations: Elaboration: (set/member, class/instance, whole/part…) Contrast: multinuclear Condition: Sat presents precondition for N Purpose: Sat presents goal of the activity in N

One Rhetorical Relation A sample definition Relation: Evidence Constraints on N: H might not believe N as much as S think s/he should Constraints on Sat: H already believes or will believe Sat Effect: H’s belief in N is increased An example: Kevin must be here. His car is parked outside. Nucleus Satellite

Automatic Labeling Supervised machine learning Get a group of annotators to assign a set of RST relations to a text Extract a set of surface features from the text that might signal the presence of the rhetorical relations in that text Train a supervised ML system based on the training set

Features: Cue Phrases Explicit markers: because, however, therefore, then, etc. Tendency of certain syntactic structures to signal certain relations: Infinitives are often used to signal purpose relations: Use rm to delete files. Ordering Tense/aspect Intonation

Some Problems with RST How many Rhetorical Relations are there? How can we use RST in dialogue as well as monologue? RST does not model overall structure of the discourse. Difficult to get annotators to agree on labeling the same texts

Summarization, Q/A, I/E, Generation, … Which are more useful where? Discourse structure: subtopics Discourse coherence: relations between sentences Discourse structure: Rhetorical Relations

Summary Many ways to measure/model coherence and cohesion: TexTiling Hobbs’ Coherence Relations Grosz & Sidner’s Centering Theory Rhetorical Relations Many practical applications Summarization, Information Extraction, Q/A, Generation