16
Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Embed Size (px)

Citation preview

Page 1: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Click to edit the title text formatCreate a simple TuTalk dialogue agent

Pamela Jordan

University of Pittsburgh

Learning Research and Development Center

Page 2: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Agenda

Try creating your own version of dialogue agent from demo yesterday

Extend the dialogue agent

Page 3: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

TuTalk Session Team

Pam Jordan Yue Cui (Jenny) Brian Hall (Moses) Mike Ringenberg

Page 4: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Authoring basics

Write recipes and concepts Concepts are like the ingredient list in a cooking

recipe Recipe uses a simple referring expression (concept

label) and must look at ingredient list for the details

Recipe has one to many steps Step is an

Initiation that is optionally paired with an expected Response

Can be a pointer to another recipe

Page 5: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Examples of concept specifications (abstract)

ask_share_appetizer [So, should we share an appetizer?] [I’d like to share an appetizer. What looks good

to you?]

skip_appetizer [phrase=minimal, I not appetizer] [lang=fr, Je n’ai pas le temps pour un amuse-

gueule]

Page 6: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Example of a dialogue script (abstract)

Response action: push to recipe named

possible responses

Recipe: select-appetizer

Step: enthuse_about_appetizers

Step: ask_share_appetizer

[agree_to_share_appetizer]

[skip_appetizer abort, ask-soup]

[unknown abort, loose-temper]

Step: agree-on-appetizer

initiation

Concept to realize or recognize

Subrecipe: push to recipe named

goal name

Page 7: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Import Corpus and Select Dialogue

Under Tab Infomagnets: (top menu file: open: Load instance: select Coached Problem Solving

Under Tab Topic Boundary will beAsked about saving – say “yes”Select dialogue 338 sub041122_16_3045.txt

Page 8: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Select a Topic for Authoring (1)

Try moving around, adding, deleting topic boundaries (see TuTalk manual)

Move to Author tab

Page 9: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Select a Topic for Authoring (2)

Create a script file; a collection of recipes (top-menu:author:new script file)

Create a template for a recipe (top-menu:author:new template)Can have same goal name multiple timesTemplate name distinguishes between them

Page 10: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Select a Topic for Authoring (3)

Append topic: (top menu Author: append conversation)

Select topic to append: (select “cluster 7” from flow diagram: ok in lower right)

Page 11: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Merge Sentences

Pair tutor/student sentences: (left mouse on SENTENCE label: drag up or down to SENTENCE label to pair: when turns green release)

For tutor sentence with no student response, pair up tutor sentences temporarily

Delete extra sentence at end: (right click on sentence: select sentence: right click again: delete sentence)

Add concepts to each initiation and response: (right click to right or initiation or response: new concept: enter name)

Page 12: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Extend Existing Script: add new step

Create new step at end (top-menu:author:insert pair) Move new step up one (use scrollbar on right to scroll so

see labels for the two steps:left click on step label and drag above other step until see green line and drop it)

Create new step initiation (right click to right of initiation display box:enter phrase for initiation concept: enter concept label)

Create new step response (right click to right of response display box: enter phrase for response concept: enter concept label)

Page 13: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Extend Existing Script: add additional responses

Add new response to step: (select add response to left of step)

Create response concept: (right click next to new response: new concept: enter response phrase: ok: enter concept name: ok)

Page 14: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Extend Existing Script: add response action (1)

Save template (top menu: save template) Create a new response template with one step

(top menu: new template) Save new template (top menu: save template) Open template (top menu: open template) Attach new template to a response (right click to

right of response: pick goal)

Page 15: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Extend Existing Script: add response action (2)

Right click to right of response: pick goal Right click to right of response: display

goal If recipe is one wanted – select okay If recipe is not one wanted – select cancel: re-

pick goal with left click

Page 16: Click to edit the title text format Create a simple TuTalk dialogue agent Pamela Jordan University of Pittsburgh Learning Research and Development Center

Save, Compile & Test

Save template (top menu: save template) Compile & test (top menu: compile & test:

from database: select script: select goal/recipe: select test at bottom of xml window)

Will automatically go to Test Dialogue tab Try out the dialogue