Natural Language Generation Ling 571 Fei Xia Week 8: 11/17/05.

Slides:



Advertisements
Similar presentations
Kees van Deemter Matthew Stone Formal Issues in Natural Language Generation Lecture 4 Shieber 1993; van Deemter 2002.
Advertisements

A very short introduction to Natural Language Generation Kees van Deemter Computing Science University of Aberdeen.
A didactic plan for a communicative translation class Dr. Constanza Gerding Salas Leipzig Universität - Universidad de Concepción May 2012.
Why study grammar? Knowledge of grammar facilitates language learning
December 2003CSA3050: Natural Language Generation 1 What is Natural Language Generation? When is NLG an Appropriate Technology? NLG System Architectures.
Term 3 ____ Unit 9 Future holidays and activities, future school trip, Futuroscope, a story in French. ____ Unit 10 Visit to a safari park, football match,
INTERNATIONAL CONFERENCE ON NATURAL LANGUAGE PROCESSING NLP-AI IIIT-Hyderabad CIIL, Mysore ICON DECEMBER, 2003.
Summaries, notes, reports Unit 4. Lesson 1Summarizing a conversation This section introduces the topic of using English for different purposes in business.
For Monday Read Chapter 23, sections 3-4 Homework –Chapter 23, exercises 1, 6, 14, 19 –Do them in order. Do NOT read ahead.
Natural Language Generation: Discourse Planning
Chapter 20: Natural Language Generation Presented by: Anastasia Gorbunova LING538: Computational Linguistics, Fall 2006 Speech and Language Processing.
Natural Language Generation Research Presentation Presenter Shamima Mithun.
Generation Miriam Butt January The Two Sides of Generation 1) Natural Language Generation (NLG) Systems which take information from some database.
An Introduction to NLG What is Natural Language Generation? Some Example Systems Types of NLG Applications When are NLG Techniques Appropriate? NLG System.
Introduction to Linguistics and Basic Terms
Natural Language Processing AI - Weeks 19 & 20 Natural Language Processing Lee McCluskey, room 2/07
Natural Language Generation Martin Hassel KTH CSC Royal Institute of Technology Stockholm
تمرين شماره 1 درس NLP سيلابس درس NLP در دانشگاه هاي ديگر ___________________________ راحله مکي استاد درس: دکتر عبدالله زاده پاييز 85.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
C SC 620 Advanced Topics in Natural Language Processing 3/9 Lecture 14.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
The Big Picture – La Grande Image! What is involved in learning French in Year 9? In Year 9 you will build on the four skills of speaking, listening, reading.
Introduction to Natural Language Generation
Language Objectives. Planning Teachers should write both content and language objectives Content objectives are drawn from the subject area standards.
9/8/20151 Natural Language Processing Lecture Notes 1.
Introduction to English Syntax Level 1 Course Ron Kuzar Department of English Language and Literature University of Haifa Chapter 2 Sentences: From Lexicon.
Eric Cohen Books 2007 Simply Writing - Task to Project to Bagrut What's expected and what you can do! Clarity, Expectation and Format.
Ehud Reiter, Computing Science, University of Aberdeen1 CS4025: Realisation and Entrepeneurship.
Natural Language Generation An Overview
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
For Friday Finish chapter 23 Homework: –Chapter 22, exercise 9.
1 Computational Linguistics Ling 200 Spring 2006.
Developing reading skills Factors involved in effective reading
Dr. Monira Al-Mohizea MORPHOLOGY & SYNTAX WEEK 11.
Teaching Productive Skills Which ones are they? Writing… and… Speaking They have similarities and Differences.
Natural Language Processing Rogelio Dávila Pérez Profesor – Investigador
Technology in the classroom. UM weather Great way to begin a day or class –Links to 300 weather sites –Links to 700 web cams to view weather –Radar and.
LAS LINKS DATA ANALYSIS. Objectives 1.Analyze the 4 sub-tests in order to understand which academic skills are being tested. 2.Use sample tests to practice.
TECHNICAL WRITING [UWB20302 / UMB1042]
An Intelligent Analyzer and Understander of English Yorick Wilks 1975, ACM.
Introduction to CL & NLP CMSC April 1, 2003.
David McDonald BBN Technologies Flexibility counts more than precision.
October 2005CSA3180 NLP1 CSA3180 Natural Language Processing Introduction and Course Overview.
Introduction to Computational Linguistics
Preliminaries to translation as a process:. Translation can be seen as a process and a product. As a process translation means what the translator actually.
Rules, Movement, Ambiguity
For Monday Read chapter 26 Last Homework –Chapter 23, exercise 7.
Jan 2004CSA3050: NLG21 CSA3050: Natural Language Generation 2 Surface Realisation Systemic Grammar Functional Unification Grammar see J&M Chapter 20.3.
For Friday Finish chapter 23 Homework –Chapter 23, exercise 15.
Ehud Reiter, Computing Science, University of Aberdeen1 CS4025: Content Determination and Document Planning.
Programming Errors. Errors of different types Syntax errors – easiest to fix, found by compiler or interpreter Semantic errors – logic errors, found by.
Natural Language Generation Martin Hassel KTH NADA Royal Institute of Technology Stockholm
SYNTAX.
NLP. Introduction to NLP (U)nderstanding and (G)eneration Language Computer (U) Language (G)
SYNTAX 1 NOV 9, 2015 – DAY 31 Brain & Language LING NSCI Fall 2015.
TYPE OF READINGS.
For Monday Read chapter 26 Homework: –Chapter 23, exercises 8 and 9.
NATURAL LANGUAGE PROCESSING
© University of Manchester Creative Commons Attribution-NonCommercial 3.0 unported 3.0 license Quality Assurance, Ontology Engineering, and Semantic Interoperability.
Discourse & Natural Language Generation Martin Hassel KTH NADA Royal Institute of Technology Stockholm
Why languages differ: Variation in the conventionalization of constraints on inference By: Randy J. LaPolla City University of Hong Kong Presented by:
Key Stage 2 Portfolio. Llafaredd / Oracy Darllen / Reading Ysgrifennu / Writing Welsh Second Language.
Ehud Reiter, Computing Science, University of Aberdeen1 CS5545: Natural Language Generation Background Reading: Reiter and Dale, Building Natural Language.
Assessing Grammar Module 5 Activity 5.
Technical Reading & Writing
Assessing Grammar Module 5 Activity 5.
Preliminaries to translation as a process:
Presentation transcript:

Natural Language Generation Ling 571 Fei Xia Week 8: 11/17/05

Outline NLG basics –What is NLG? –Example NLG systems –Applications of NLG –Architecture for NLG Three subtasks of NLG –Document planning –Microplanning –Surface realization

NLG basics

What is NLG?

NLU vs. NLG NLU: ambiguity, ill-formed input NLG: choice Text Meaning NLU NLG

NLG system #1: FoG FoG: Forecast Generator Input: weather map Output: textual weather report in English and French Developer: CoGen Tex Status: in operational use since 1992

NLG system #2: SumTime- Mousam FoG: Forecast Generator Input: weather data Output: textual weather report in English Developer: University of Aberdeen Status: Used by one company to generate weather forecasts for offshore oil rigs. Demo

NLG System #3: STOP Input: Questionnaire about smoking attitudes, history, beliefs Output: a personalized smoking-cessation leaflet Developer: University of Aberdeen Demo: non-tailored letter, questionnaire, a tailored letter.Demonon-tailored letterquestionnairea tailored letter Status: undergoing clinical evaluation

Applications of NLG Automated document production: –Weather forecasts, letters, …. Dialogue systems: e.g., ELIZA Text summarization Machine translation Question Answering ….

ElIZA system H: My head hurts E: Why do you say your head hurts? H: My mother hates me. E: Who else in your family hates you? H: *******. E: Tell me more about it. H: What should I do? E: That’s a tough decision. H: ****? E: Does that question interest you?

ELIZA system (cont) The famous 1966 computer system by Joseph Weizenbaum, which acted as a therapist Named after “Eliza Doolittle” in in Shaw's Pygmalion (“My fair lady”). Use pattern matching rules Very successful: prompt him to write a book to explain the limits of computers

Challenges of NLG Decide what to say and how to say it. The output has to be well-formed text. –Orthography, morphology, syntax –Reference, word choice, pragmatics Example: weather report

Component tasks in NLG Content determination: what content to express Document structuring: how to structure the info to make a coherent text. Aggregation: combine units in a document plan tree. Lexicalization: what words to use? Referring expression generation: NP or pronoun? Structure realization: add markups Linguistic realization: tense, aspect, voice, …

Tasks and modules in NLG Document Planning Content determination Document structuring MicroplanningAggregation Lexicalization Referring expression generation Surface realisation Linguistic realization Structure Realization

A pipelined architecture Document Planning Microplanning Surface realization Document plan Text Specification Text Communicative goal Knowledge base Grammar ….

Another architecture Communicative Goal Knowledge base Discourse Planner Surface Realizer NL output Discourse specification

Outline NLG basics –What is NLG? –Example NLG systems –Applications of NLG –Architecture for NLG Three subtasks of NLG –Document planning –Microplanning –Surface realization

Document planning Content determination: –What is important? –a domain-dependent expert-system-like task. –Ex: Weather summary: This Nov was very dry. The temperature was lower. Document structuring: –Use RST or other discourse theory

Document plan tree Msg1 Nucleus Satellite (contrast) Msg2 Nucleus Satellite (Elaboration) Nucleus (sequence) Msg3 …

Microplanning Aggregation Lexicalization Referring expression generation

Aggregation Combinations can be on the basis of –Information content –Possible forms of realization Some possibilities: –Conjunction –Ellipsis –Embedding –…–…

Aggregation via conjunction Without aggregation: –Light rain fell on the 6 th. –Light rain fell on the 8 th. With Aggregation: –Light rain fell on the 6 th and light rain fell on the 8 th. (conjunction) –Light rain fell on the 6 th and the 8 th.

Aggregation via embedding Without aggregation: –November had a rainfall of 20mm. –November normally is the wettest month. With aggregation: –November, which normally is the wettest month, had a rainfall of 20mm this year. –Although November is the wettest month, this November had a rainfall of only 20mm.

Aggregation strategies Conform to genre conventions and rules, and take account of pragmatic goals: –Ex: making sentences shorter for poor readers Observe structural properties: –Ex: aggregate only messages that are siblings in the document plan tree.

An aggregation rule Msg1 NucleusSatellite (contrast) Msg2 S S ConjS S Msg2 Msg1 although

Lexicalization The process of choosing words to communicate the info in messages When several lexicalizations are possible, consider: –User knowledge and preference –Consistency with previous usage: sometimes, it is better to vary lexemes –Pragmatics

Examples Light rain A small amount of rain It is encouraging that you have many reasons to stop. It’s good that you have a lot of reasons to stop.

Referring expression generation How do we identify specific objects and entities? Two cases: –Initial introduction of an object –Subsequence references to an already mentioned object.

Initial reference A few options: Use a full name: John Smith Relate to an entity that is already salient –One of Dr. Klein’s patients –The person who came to the clinic yesterday

Subsequence reference Some possibilities: Pronouns: He is very determined. Definite NPs: This person is very determined. Proper names: John is very talented.

Choosing referring expressions Some suggestions from the literature: –Use a pronoun if it refers to an entity mentioned in the previous clause, and there is no other entity in the previous clause that this pronoun could refer to. –Otherwise, use a name (a short one if possible) –Otherwise, use a definite NP.

Choosing referring expressions (cont) Considering genre conventions and the context Ex: –Nov 2005 –November –This month

Surface realization Goal: to convert text specification into actual text. Structural realization: e.g., add html markup Linguistics realization: –Insert function words –Choose correct inflection –Order words within a sentence –Add punctuation

Linguistics realization Systemic Grammar Functional unification grammar Ex: –Input: (:action rain :tense past :time November :degree little) –Output: it rained little in November

Summary NLG basics –What is NLG? –Example NLG systems –Applications of NLG –Architecture for NLG Three subtasks of NLG –Document planning –Microplanning –Surface realization

Beyond text generation Flat text Structured text: itemized lists, section, chapter, …. Text and graphics: e.g., picture with caption Speech ….

Resources SIGGEN (ACL special interest group for Generation): Book: “Building NLG systems” by Reiter et. al., Cambridge University Press, List of NLG systems:List of NLG systems Companies: –CoGenTex: –ERLI: