CS 644: NATURAL LANGUAGE DIALOGUE SYSTEMS Lecture 1: Overview of Dialogue Research and Dialogue Systems

Similar documents
Automatic Speech Recognition (CS753)

Using Monty Python and The Holy Grail to Teach the van Hiele Model for Geometric Thought and Logic

Language Processing and Computational Linguistics

Lecture (5) Speech Acts

Conversational Analysis C H A P T E R 5

More Digital Circuits

Open to all students in grades Students are only required to attend one audition session. Auditions will be held in the AAHS PAC.

Rhythm and Melody Aspects of Language and Music

Theorising Mode: Theme-Rheme structure in analogue and digital texts ESFLCW 2013 Coventry University, UK, 1-3 July 2013 Anke Schulz

Lingua Inglese 3. Lecture 5. Searle s Classification of Speech Acts. Representatives: the speaker is committed in

ENGLISH IVAP. (A) compare and contrast works of literature that materials; and (5) Reading/Comprehension of Literary

COMPUTER ENGINEERING PROGRAM

Auditions will be held at Dalhousie Street, Haberfield. Monday 23 rd July :30pm 10:30pm Thursday 26 th July :30pm 10:30pm

CHAPTER I INTRODUCTION. language such as in a play or a film. Meanwhile the written dialogue is a dialogue

Monty Python And The Holy Grail Screenplay By Graham Chapman


STUDENT: TEACHER: DATE: 2.5

Lingua Inglese 2A. (Course Introduction) Context & Co-text Introducing the grammar of speech

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Stone. Face 2 Face. in the CREATION. Teacher s Pack

Unit of Work: ROFL Year: 6 Term: 4

ENGLISH LANGUAGE ARTS

Formalising arguments

Teacher Man by Frank McCourt

LEGENDS OF THE ROUND TABLE by JEFF POSSON

Expressive Multimodal Conversational Acts for SAIBA agents

About Giovanni De Poli. What is Model. Introduction. di Poli: Methodologies for Expressive Modeling of/for Music Performance

COMP 249 Advanced Distributed Systems Multimedia Networking. Video Compression Standards

UWE has obtained warranties from all depositors as to their title in the material deposited and as to their right to deposit such material.

WEB FORM F USING THE HELPING SKILLS SYSTEM FOR RESEARCH

Musical Creativity. Jukka Toivanen Introduction to Computational Creativity Dept. of Computer Science University of Helsinki

Music in Practice SAS 2015

class #2 jokes clip of the day review pto: pronouns jh: winning over vs. winning coursepak: situation analysis assignment #1

Table of Activities. Part 1: Pre-Production: Introduction to Audio Stories (12 50-minute sessions)

Concept of ELFi Educational program. Android + LEGO

Lecture 18: Production & Perception

Lesson 21: Expressing Appreciation (20-25 minutes)

Our Dad is in Atlantis

(INT HIGH INT / VERSION

Transition Networks. Chapter 5

Design Project: Designing a Viterbi Decoder (PART I)

Acoustic Prosodic Features In Sarcastic Utterances

How to outline a narrative paragraph. Ready to learn more. 8220;Can I have a military discount..

April... Spring song characters Gus Octavia... Dec Tick Tock Father Time Summer song characters...

Automatic Polyphonic Music Composition Using the EMILE and ABL Grammar Inductors *

Learning Word Meanings and Descriptive Parameter Spaces from Music. Brian Whitman, Deb Roy and Barry Vercoe MIT Media Lab

Speaker s Meaning, Speech Acts, Topic and Focus, Questions

Brand Guidelines. January 2015

Arkansas Learning Standards (Grade 12)

Series 2 Episode 6: Welcome Back Johnny! Introduction. Before you listen. Definitions: Big City Small World Series 2 Episode 6

A C E I T A Writing Strategy Helping Writers Get that A And Avoid Plagiarism

Apologies: Petter Rindforth IPC Jim Galvin SSAC Emily Taylor - RrSG

PUBLIC SERVICE COMMISSION OF WEST VIRGINIA CHARLESTON * * * * * * * * * v. * T-C * * * * * * * * * HEARING TRANSCRIPT * * * * * * * * *

4. Formal Equivalence Checking

5. Analysing Casual Conversation Contents

WAITING. a short one act comedy for two actors. by claire demmer.

Grassroots Movie Reviews

hochschule fu r angewandte wissenschaften hamburg Prof. Dr. B. Schwarz FB Elektrotechnik/Informatik

Overview of the Texas Administrative Code. Administrative Policy Writing Spring 2011

Introduction to English Linguistics (I) Professor Seongha Rhee

A long speech by one actor in a play or movie, or as part of a theatrical or broadcast program. MONOLOGUE

Will computers ever be able to chat with us?

SharkFest 17 Europe. Generating Wireshark Dissectors from XDR Files. Why you don't want to write them by hand. Richard Sharpe.

INDE/TC 455: User Interface Design. Module 5.4 Phase 4 Task Analysis, System Maps, & Screen Designs

Contradictions, Dialectics, and Paradoxes as Discursive Approaches to Organizational Analysis

First Step Towards Enhancing Word Embeddings with Pitch Accents for DNN-based Slot Filling on Recognized Text

Download tv shows and movies free >>>CLICK HERE<<< This leads to a depression, and movies, download dissatisfaction, and low selfesteem.

Outline. flip-flops registers. sorting words values of numbers given in words. using Python lists towers of Hanoi

Beyond basic grammar: Connections with the real world

Research & Development. White Paper WHP 318. Live subtitles re-timing. proof of concept BRITISH BROADCASTING CORPORATION.

Cedits bim bum bam. OOG series

They can sing, they can dance After all, miss, this is France And a dinner here is never second best Go on, unfold your menu Take a glance and then

Examples of turabian style writing. All good essays have a clear, well-thought-out thesis..

-- 2nd free roam

BBC LEARNING ENGLISH 6 Minute Grammar Present tenses

Empirical Evaluation of Animated Agents In a Multi-Modal E-Retail Application

VLSI Design: 3) Explain the various MOSFET Capacitances & their significance. 4) Draw a CMOS Inverter. Explain its transfer characteristics

Coolios gangster paradise came out when rap and hip hop was were taking over

A. To tell the time of the day 1. To build a mod-19 counter the number of. B. To tell how much time has elapsed flip-flops required is

Lecture 18 Design For Test (DFT)

Do s and Don ts of Dialogue

Livin On A Prayer by Bon Jovi A Classic Rock Song

Backstage at the theatre: what it takes to power a show

Where are we? Lecture 37: Modelling Conversations. Gap. Conversations

BBC LEARNING ENGLISH 6 Minute English Concepts of happiness

Continuum for Opinion/Argument Writing

Correlation --- The Manitoba English Language Arts: A Foundation for Implementation to Scholastic Stepping Up with Literacy Place

Video - low carb for doctors (part 8)

ECSE-323 Digital System Design. Datapath/Controller Lecture #1

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

SPEECH ACT THEORY: ANALYSIS OF THE KILLERS BY ERNEST HEMINGWAY ABSTRACT

CHAPTER I INTRODUCTION

Modules Multimedia Aligned with Research Assignment

Sentence Processing. BCS 152 October

Overview. Project Shutdown Schedule

How to Write Dialogue Well Transcript

Sequential Logic. Introduction to Computer Yung-Yu Chuang

CONVERSATION ANALYSIS

The Holy Grail Of Macroeconomics Lessons From Japans Great Recession Richard C Koo

Parts of thesis writing chapter 1 >>>CLICK HERE<<<

Transcription:

CS 644: NATURAL LANGUAGE DIALOGUE SYSTEMS Lecture 1: Overview of Dialogue Research and Dialogue Systems David Traum Institute for Creative Technologies University of Southern California traum@ict.usc.edu http://www.ict.usc.edu/~traum

Outline More on Dialogue System Components Dialogue Structure Speech Acts Simple Dialogue Structure Processing Techniques Brief overview of Special Topics

Dialogue Modules & Architecture Standard Pipeline Architecture Speech Automatic Speech Recognition (ASR) Text Natural Language Understanding (NLU) Semantic Representation Dialogue Manager (DM) Speech Speech Synthesis (TTS) Text Natural Language Generation (NLG) Semantic Representation

Interpretation: Speech Recognition Phases Signal Processing Acoustic Model, tri-phones Language Model (N-grams) Issues Small or large vocabulary N-gram or grammar-based language model Integrated or pipelined understanding Output (concepts, n-best word list, lattice) Unified or State-specific recognizers

Interpretation: Parsing/Semantic Representation Tasks Retrieval/Classification Understanding/Extraction Output Response (aspects of) Meaning (e.g., semantic roles, speech acts, parse) Styles Key-word Language model Grammar-based Concept-based (semantic parser) Expectation-driven Spoken Dialogue vs. Written text Utterance length, grammaticality, interactivity, repairability, transience,

Dialogue Management Tasks Maintaining & Updating Context Deciding what to do next Interface with back-end/task model Provide expectations for interpretation

(Cf. Larsson 2005: Interfaces vs Simulations)

Generation & Synthesis Generation Output Text Prosodic cues multimodal generation Method Fixed text Template-based Sentence Planning & Realization Grammar-based Statistical Language model Synthesis Voice Clip, or TTS TTS or Concept to Speech

Using Data Corpus Collection Human-Human Wizard of OZ Human-System Annotation Coding Scheme Coding Automatic Tool-assisted Inter-coder Reliability (Kappa)

Evaluation Objective Metrics Task success Resources used (time, turns, attention,..) Subjective Evaluation Issues On-line vs off-line Black Box vs. Glass Box Class of User (Expert, Novice) Feedback into system design

Dialogue Manager Organizing Principles Structure-based Script Local Exchange Word-based Keyword spotting Advanced techniques» AIML recursion» Statistical Language model Meaning-based Speech acts Grammar Tree/FSM Principle-based Frame Logic Plan Information-State Maximize Expected Reward

Dialogue Structure Local What binds utterances together? How is one utterance (in)coherent when following another? Global What is the structure of a conversation? What is the structure of a task (that a conversation is oriented to)? How many levels of structure are there?

Local Dialogue Structure Utterances organized in turns Coherence between turns (or utterances) Adjacency pairs Exchange structure IR(A) units Games

Turn-taking (Sacks & Schegloff) Turns composed of one or more smaller utterance units (Turn Constructional Units = TCUs) Transition relevance places (TRPs) Signals of TRP (and pre-trp) Self and other selection

Adjacency Pairs (Schegloff & Sacks) Sequences with features Two utterance length Adjacent Produced by different speakers Typology in production Pair type including First part & second part E.g., Q&A, greeting-greeting, offer-acceptance Orientation towards Adjacency Pair Conditional relevance Preferred & dispreferred 2nd parts Hesitations, apologies & qualifications Repairs and apologies

Other Local organizations Exchange IR Unit Game Can be more than two utterances in sequence

Global dialogue structure Conversation phases Opening Engagement Greetings Preambles/agendas Body Topics Topic relations Closing Pre-closings Termination bids farewells

Task Structure (Grosz & Sidner 86) Hierarchical & sequential tasks Linear precedence Immediate dominance Topic stack Topic transitions Push Pop Pop-push

Plan Tree for REA (Cassell et al) Conversation Greetings Find House Farewells User Greeting Agent Greeting Determine Preferences Show House User Farewell Agent Farewell Parameters Price Location etc Describe Features Topic changes when focus stack changes.

Dialogue Manager Organizing Principles Structure-based Script Local Exchange Word-based Keyword spotting Advanced techniques» AIML recursion» Statistical Language model Meaning-based Speech acts Grammar Tree/FSM Principle-based Frame Logic Plan Information-State

Simple Organizational Structures Script Local Exchange Word-based Keyword spotting Advanced techniques» AIML recursion» Statistical Language model Meaning-based Speech acts Grammar Tree/FSM

Example Script: Scene 1 Monty Python & the Holy Grail ARTHUR: Well, it doesn't matter. Will you go and tell your master that Arthur from the Court of Camelot is here? SOLDIER #1: Listen. In order to maintain air-speed velocity, a swallow needs to beat its wings forty-three times every second, right? ARTHUR: Please! SOLDIER #1: Am I right? ARTHUR: I'm not interested! SOLDIER #2: It could be carried by an African swallow! SOLDIER #1: Oh, yeah, an African swallow maybe, but not a European swallow. That's my point. SOLDIER #2: Oh, yeah, I agree with that.

Eliza Weizenbaum, CACM 1966 Local organization Produce response based on analysis of input Keyword spotting Pattern recognition Pattern selection Transformation rules Example: emacs Doctor program https://www.csee.umbc.edu/courses/471/papers/ema cs-doctor.shtml Example 2: CL simple-eliza rules http://hampshire.edu/lspector/courses/eliza-simple.lisp

Advanced Patterns: AIML https://www.tutorialspoint.com/aiml/ XML Syntax Stimulus-response interaction Categories Pattern Template

AIML: Advanced Srai operator Synonyms Splitting patterns conditionals Context That Topic set System calls Get & set variables EXAMPLES: <category><pattern>bye</pattern> <template><random> <li>see you later <get name="name"/>.</li> <li>goodbye <get name="name"/>.</li> <li>until next time <get name="name"/>.</li> <li>thanks for chatting, <get name="name"/>.</li> <li>see you later <get name="name"/>.</li> </random></template> </category> <category><pattern>au REVOIR</pattern> <template> <srai>bye</srai> </template></category> <category><pattern>farewell *</pattern> <template> <srai>bye</srai> </template></category>

Speech Acts How to Do things with words Look at actions & effects of utterances rather than truth-conditions Types of acts Locutionary Illocutionary Perlocutionary

Searle s Types of Illocutionary acts Representatives Directives Commissives Expressives Declarations

Issues for computational theory of speech acts When can an act be recognized (as sincere and successful)? What are the effects of performance of an act On state of hearer and speaker On state of dialogue When should act be performed? How should act be performed?

Information State Model Layer Info State Components Dialogue Acts Contact Participant contact Make-contact, break-contact attention Participant focus Show, request, accept conversation Conversation, topic, participants Start-conversation, end-conversation, confirmstart, deny-start, identify-topic, join, leave Turn-taking Conversation turn Take-turn, keep-turn, hold-turn, release-turn, assign-turn initiative Conversation initiative Take-initiative, release-initiative grounding Conversation CGUs Initiate, continue, acknowledge repair, cancel, request-repair Core Social State (obligations, commitments, trust) Conversation QUD, Negotiation, CGU contents Forward: assert, info-req, order, request, thank, greeting, closing, express, check, suggest, promise, offer, apology, encourage, accuse, intro-topic, avoid Backward: accept, reject, address, answer, divert, counterpropose, hold, check, clarify-parameter, redirect

ISO Dialogue Acts http://people.ict.usc.edu/~traum/papers/lrec2010-iso-dacts-paper.pdf Dimensions

Speech-act related Adjacency Pairs Question-Answer Propose-Accept/reject/challenge, Offer-accept/decline Compliment-refusal/thanks Greeting-greeting

Dialogue Grammar Specify set of legal moves to be a legal dialogue Specify set of moves at any given point Specify context update

FSM Dialogue model Set of states Set of moves from each state Transitions to new state

Dialogue Acts in FSM Inform - convey information Question - set context for inform Answer - inform after question Confirm - show understanding Clarification Request- show understanding problems Directive - ask for an action to be done Action - do an action

Example: Bridge of Death Scene from Monty Python & the Holy Grail

GALAHAD: There it is! ARTHUR: The Bridge of Death! ROBIN: Oh, great. ARTHUR: Look! There's the old man from scene twenty-four! BEDEVERE: What is he doing here? ARTHUR: He is the keeper of the Bridge of Death. He asks each traveller five questions-- GALAHAD: Three questions. ARTHUR: Three questions. He who answers the five questions- GALAHAD: Three questions. ARTHUR: Three questions may cross in safety. ROBIN: What if you get a question wrong? ARTHUR: Then you are cast into the Gorge of Eternal Peril. BoD: Preamble

BoD: Preamble (2) ROBIN: Oh, I won't go. GALAHAD: Who's going to answer the questions? ARTHUR: Sir Robin! ROBIN: Yes? ARTHUR: Brave Sir Robin, you go. ROBIN: Hey! I've got a great idea. Why doesn't Launcelot go? LAUNCELOT: Yes. Let me go, my liege. I will take him single-handed. I shall make a feint to the north-east that s-- ARTHUR: No, no. No. Hang on! Hang on! Hang on! Just answer the five questions-- GALAHAD: Three questions. ARTHUR: Three questions as best you can, and we shall watch... and pray. LAUNCELOT: I understand, my liege. ARTHUR: Good luck, brave Sir Launcelot. God be with you.

BoD: Dialogue 1: Lancelot BRIDGEKEEPER: Stop! Who would cross the Bridge of Death must answer me these questions three, ere the other side he see. LAUNCELOT: Ask me the questions, bridgekeeper. I am not afraid. BRIDGEKEEPER: What... is your name? LAUNCELOT: My name is 'Sir Launcelot of Camelot'. BRIDGEKEEPER: What... is your quest? LAUNCELOT: To seek the Holy Grail. BRIDGEKEEPER: What... is your favourite colour? LAUNCELOT: Blue. BRIDGEKEEPER: Right. Off you go. LAUNCELOT: Oh, thank you. Thank you very much.

BoD: Dialogue 2: Robin BRIDGEKEEPER: Stop! Who approacheth the Bridge of Death must answer me these questions three, ere the other side he see. ROBIN: Ask me the questions, bridgekeeper. I'm not afraid. BRIDGEKEEPER: What... is your name? ROBIN: 'Sir Robin of Camelot'. BRIDGEKEEPER: What... is your quest? ROBIN: To seek the Holy Grail. BRIDGEKEEPER: What... is the capital of Assyria? [pause] ROBIN: I don't know that! Auuuuuuuugh!

BoD: Dialogue 3: Galahad BRIDGEKEEPER: Stop! What... is your name? GALAHAD: 'Sir Galahad of Camelot'. BRIDGEKEEPER: What... is your quest? GALAHAD: I seek the Grail. BRIDGEKEEPER: What... is your favourite colour? GALAHAD: Blue. No, yel-- auuuuuuuugh! BRIDGEKEEPER: Hee hee heh.

BoD: Dialogue 4: Arthur BRIDGEKEEPER: Stop! What... is your name? ARTHUR: It is 'Arthur', King of the Britons. BRIDGEKEEPER: What... is your quest? ARTHUR: To seek the Holy Grail. BRIDGEKEEPER: What... is the air-speed velocity of an unladen swallow? ARTHUR: What do you mean? An African or European swallow? BRIDGEKEEPER: Huh? I-- I don't know that. Auuuuuuuugh! BEDEVERE: How do know so much about swallows? ARTHUR: Well, you have to know these things when you're a king, you know.

Bridgekeeper: FSM Intro NotAfraid Stop Q1 Ans1 Q2 Ans2 Ans3 Q3 CR3 Dunno Incorrect Ans3 Dunno cross GEP BK->GEP