UC SANTA CRUZ Story generation I: Morphemes & grammars  Morphemes – story events or “functions”  Vladimir Propp analyzed Russian folk tales  Example.

Slides:



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

Qualitative text analysis. Why do qualitative text analysis? A number of scholars say you cannot capture the meaning of a text by counting the number.
Once Upon a Time……. Writing Folktales. A power point presentation By: Farah Kamal.
First we need to know what an epic is!
Data Mining Methodology 1. Why have a Methodology  Don’t want to learn things that aren’t true May not represent any underlying reality ○ Spurious correlation.
Essential Elements of 4-H Youth Development Cathann Kress Director, Youth Development National 4-H Headquarters CSREES, USDA.
MORPHOLOGY OF THE FOLKTALE
Dr. Neil H. Schwartz Psy 353 Fall 2011 Sensory Register Purpose Capacity ~On ave. about 500 msec (1/2 second). ~No difference between 5 year olds &
Lecture 1 CS148/248 UC Santa Cruz School of Engineering January 7, 2009.
“Yellow Woman”. Main themes Personal identity Marriage and adultery Duty and desire Crossing of moral and social boundaries Laguna Pueblo spirituality.
Description of Propp’s Roles in Russian Magic Folktales Anna Rafaeva Moscow State University, Russia
Prepared by Sharmain Brown December 2, 2009 Definition Primary Groups are characterized by face-to-face contact and some degree of permanency. Primary.
Literary Genres Walsh Publishing Co
Computer Science – Game DesignUC Santa Cruz CMPS 148/248: Interactive Storytelling Course Overview Expectations, Grading Introduction Stories, Telling,
Sibling R i v a l r y. Program Objectives n Parents will understand reasons for sibling rivalry n Parents will learn about ways to reduce fighting among.
Module 14 Thought & Language. INTRODUCTION Definitions –Cognitive approach method of studying how we process, store, and use information and how this.
EXPRESSIVE INTELLIGENCE STUDIO Lecture 7 CS148/248: Interactive Narrative UC Santa Cruz School of Engineering
Algorithms and Problem Solving-1 Algorithms and Problem Solving.
EXPRESSIVE INTELLIGENCE STUDIO Lecture 8 CS148/248: Interactive Narrative UC Santa Cruz School of Engineering
Algorithms and Problem Solving. Learn about problem solving skills Explore the algorithmic approach for problem solving Learn about algorithm development.
EXPRESSIVE INTELLIGENCE STUDIO The Future of Gaming Unfolding the Future of Interactive Storytelling UC Santa Cruz School of Engineering
Lecture 1 CS148/248 UC Santa Cruz School of Engineering 3 April 2007.
Polyscheme John Laird February 21, Major Observations Polyscheme is a FRAMEWORK not an architecture – Explicitly does not commit to specific primitives.
Macro Features Reading Film. Macro Features Micro features: –Camera –Editing –Lighting –Sound –Colour –Mise-en-scene Macro features: –Genre –Narrative.
California Mathematics Council The First Rule of introducing the Common Core to parents: Do MATH with them!
Narrative in Games. Games and Narrative: a continuum.. InteractivityStorytelling.
California Mathematics Council WORKING WITH PARENTS AND FAMILIES TO SUPPORT THE COMMONCORE MATH STANDARDS.
 According to Joseph Campbell in Hero with a Thousand Faces, about a gazillion stories have been written with the same basic plots, characters, and objects,
—————————————————————————————————————————— Design of Interactive Computational Media Jan.-Apr Slide T5.1 Scenarios Presented by Faye Baron Prepared.
How Would You Stop Bullying? This WebQuest will ask students to analyze existing anti-bullying programs, evaluate their merits and justify which program.
Common Fantasy Archetypes The Hobbit. The Quest  The main objective that the hero and his party must accomplish in the story  In most fantasy stories,
LCC 6317/4720 Interactive Narrative Lecture 2 January 13, 2005.
Scenarios Presented by Krista Strickland. Definition Scenario: “a narrative or story that describes the activities of one or more persons, including information.
A WALK TO THE JETTY From “Annie John” BY Jamaica Kincaid
TMP Professional Development Session Case Writing as Tool for Math Teacher Professional Development November 25, 2008 Katherine K. Merseth
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
DEVELOPING A DYNAMIC THESIS. It should be a single assertive sentence that contains the writer’s main idea. It should be a single assertive sentence that.
G.M. Adhyanggono, S.S.,M.A..  The study of how narratives (stories) make meaning, and what the basic mechanisms and procedures are which are common to.
Linguistics The third week. Chapter 1 Introduction 1.3 Some Major Concepts in Linguistics.
Guiding Children’s Social Development OBJECTIVES I will be able to…. Analyze some aspects of social development from toddler to school-age Explore the.
Plot Features of Folktales Developed by Amy Thornton Dyer School.
Lesson 1 The family plays an important part in all aspects of a person’s health. It’s important to learn about family dynamics and ways of promoting a.
Social structure. foundations of social structures statuses: the positions people occupy in a group or society statuses: the positions people occupy in.
EXPRESSIVE INTELLIGENCE STUDIO Lecture 9 CS148/248: Interactive Narrative UC Santa Cruz School of Engineering
Intellectual Development of School-Age Children
The Hero’s Journey An Archetypal Story.
California Mathematics Council WORKING WITH PARENTS AND FAMILIES TO SUPPORT THE COMMON CORE MATH STANDARDS.
How To Talk So Your Kids Will Listen, and Listen So Your Kids Will Talk Part III Alternatives to Punishment Tuesday May 14, 2013.
Literary Genres Walsh Publishing Co What is a Literary Genre? A “genre” is a particular style or type of writing. Walsh Publishing Co
LCC 6317/4720 Interactive Narrative Lecture 1 January 10, 2005.
High Frequency Words.
The Hero’s Journey or Quest The “quest” pattern is one of the most popular archetypal stories. It has been used over and over through time, through myths,
Characters 101.
Date: Wednesday, November 11 th 2015 Topic: Yonder Mountain (Part I & II) Objective: To analyze the reading. CLASS # 8 – U2.
Narrative Vocabulary.
Conventions of a fairytale. Name some typical fairytale settings A Far away kingdom A make believe land A woodcutter’s forest A deep, dark forest A castle.
Compiled by Deb Thonus. They come from all over the world.  They have no specific author because they are stories that are handed down from storytellers.
Bellwork March 14, 2016 Copy and answer.. Standard/I can ELAGSE7RL6: Analyze how an author develops and contrasts the points of view of different characters.
Sibling Rivalry and Solutions
LCC 6317/4720 Interactive Narrative Lecture 6 February 8, 2005.
Literary Genres. What is a Genre? When you speak about genre and literature, genre means a category, or kind of story.
Character Selection.
Common Fantasy Archetypes
Fairy Tale Elements.
The Canterbury Tales How are the Canterbury Tales similar to modern stories? How would we classify them? Read the following tales and look for elements.
Common Fantasy Archetypes
The Canterbury Tales How are the Canterbury Tales similar to modern stories? How would we classify them? Read the following tales and look for elements.
Lecture 7: Introduction to Parsing (Syntax Analysis)
Types of Characters.
The Morphology of the Folktale— Vladimir Propp
Presentation transcript:

UC SANTA CRUZ Story generation I: Morphemes & grammars  Morphemes – story events or “functions”  Vladimir Propp analyzed Russian folk tales  Example morphemes: The hero leaves home, the hero is given a difficult task, the hero defeats the villain  Grammars – hierarchic combination rules  Story grammars – use story functions by analogy to linguistic elements

UC SANTA CRUZ  Model authorial knowledge beyond story structure  Examples: Authorial goals, plans, knowledge about the world  We’ll look principally at two systems:  Universe (author plans)  Minstrel (models story goals, plans, creativity via reuse) Story generation II: Author simulation

UC SANTA CRUZ Story generation III: World modeling  Model the a dynamic world and autonomous characters  Stories emerge from the interaction of characters in the world  We’ll look at Tale-Spin, the classic world modeling story generator, as well as more recent character-based AI research  A challenge for this approach: autonomous characters running around in a world don’t necessarily create compelling stories

UC SANTA CRUZ once upon a time there lived a dog. one day it happened that farmer evicted cat. when this happened, dog felt pity for the cat. in response, dog sneaked food to the cat. farmer punished dog. Joseph story generator – R. Raymond Lang story  setting + episodes episodes  episode + episodes episode  story_event + emotional_response + action_response Sample output & story grammar

UC SANTA CRUZ Propp – Proto Grammar  Structuralist analysis of the Russian folk tale  Morphemes (story events)  Rules for combining morphemes  Work in AI story grammars builds on this tradition  Much work in AI-based storytelling references back to Propp

UC SANTA CRUZ Propp noticed regularities in folk tales  Wanted to come up with a taxonomic system for describing folk tales  Consider the regularities in…  “A tsar gives an eagle to a hero. The eagle carries the hero away to another kingdom.”  “An old man gives Sucenko a horse. The horse carries Sucenko away to another kingdom.”  “A sorcerer gives Ivan a little boat. The boat takes Ivan to another kingdom.”  “A princess gives Ivan a ring. Young men appearing from out of the ring carry Ivan away into another kingdom.”  He wanted to capture these regularities in a formal notation

UC SANTA CRUZ Examples of Proppian morphemes  An interdiction is addressed to the Hero  “you dare not look in this closet”  “Take care of your little brother. Do not venture from this courtyard.”  “Don’t pick up the golden feather.”  The villain makes an attempt at reconnaissance  A bear says “What has become of the Tsar’s children?”  A priest during confession: “How were you able to get well so quickly?”  The villain causes harm or injury to a member of the family  The villain abducts a person  The villain seizes or takes away a magical agent  The villain pillages or spoils the crops

UC SANTA CRUZ Example analysis A tsar, three daughters (  ). The daughters go walking (  3 ), overstay in the garden (  1 ). A dragon kidnaps them (A 1 ). A call for aid (B 1 ). Quest of three heros (C  ). Three battles with the dragon (H 1 -I 1 ), rescue of the maidens (K 4 ). Return (  ), reward (w°).

UC SANTA CRUZ The master folktale equation ABC  DEFG HJIK  Pr-RsL LMJNK  Pr-Rs QExTUW*

UC SANTA CRUZ Story grammar systems  Starts with the taxonomic impulse of Propp and uses formal grammars to capture story structure  Formal grammar reminder  Regular expressions: A  a, A  aB  Context free: A    Context sensitive:  A     Universal:     Most story grammars tend to be context free  Context sensitive grammars may be useful for rewriting the story (explicit story/discourse distinction)

UC SANTA CRUZ Joseph  Story grammars have largely been dropped by the AI community because of the problems of over and under generation  Joseph is a more recent system that attempted to show the story grammar project can be successful  To generate concrete stories, adds a world model to instantiate primitives  Models plan execution and its effects in the world  Models all the actions and plans within the story space

UC SANTA CRUZ Joseph

UC SANTA CRUZ Event list in Joseph

UC SANTA CRUZ Rules from Story Grammar

UC SANTA CRUZ World Model  Hero(Agent)  Fact(Fact, World)  Ep_prim(Event, World)  Effect(Act, Result, World)  Consequence(State1, State2, World)  Plan(Title, Steps, World)  Plan_Effect(Plan_title, Effect, World)  Emot_Reaction(Event, Emotion, World)  Action_Motiv(Emotion, Action, World)  Goal_Motiv(Emotion, Goal, World)  Intention(Prot, Goal, Action, World)

UC SANTA CRUZ Output

UC SANTA CRUZ Grammar analysis

UC SANTA CRUZ Story grammar issues  How to “interactivize” story grammars?  Granularity of morphemes – how should the morphemes be grounded?  How do you represent more complex constraints?

UC SANTA CRUZ Author goals and plans in Universe  Universe is an example of an author modeling story system  Author plans and plot fragments  Author goals and plans may make no sense from character viewpoint  Associated with each plot fragment  Author goal it can achieve  Characters  Constraints  Ordered list of subgoals (steps)

UC SANTA CRUZ Example character in Universe Name: Liz Chandler Marriages: Don Craig [1980] Tony Dimera Stereotypes: Actor, Knockout, Socialite, Party-goer Trait modifiers: (Sex F) (Age young-adult) (Wealth 3) (Promiscuity -3) (Intelligence 3) Description: Wealth 8Promiscuity 3Competence NIL Niceness 0Self-Conf 6Guile 7 Naiveté 7Moodiness 6Phys-Att 7 Intelligence 7Age young-adultSex F Goals: (Find-Happiness Become-Famous Meet-Famous-People)

UC SANTA CRUZ Example plot fragment Plot fragment: forced-marriage Characters: ?him ?her ?husband ?parent Constraints: (has-husband ?her) (has-parent ?husband) ( < (trait-value ?parent ‘niceness) –5) (female-adult ?her) (male-adult ?him) Goals: (churn ?him ?her) {prevent them from being happy} Subgoals:(do-threaten ?parent ?her “forget it”) (dump-lover ?her ?him) (worry-about ?him) (together * ?him) (eliminate ?parent) (do-divorce ?husband ?her) (or (churn ?him ?her) (together ?her ?him))

UC SANTA CRUZ Universe algorithm  Loop:  Pick a goal with no missing preconditions  Pick a plot fragment for that goal, achieving extra goals, if possible  Execute the plan, including adding new goals to the goal graph and producing story output  Notice, Universe simultaneously pursues multiple goals  Tries to eventually satisfy all story goals  Tries to opportunistically satisfy several story goals with a single plot fragment  Plot fragments can add new goals

UC SANTA CRUZ Recursively solving author goals Plan (plot-fragment) library Goal: (churn ?him ?her) Plan: forced-marriage Goal: (churn ?him ?her) Plan: lovers-fight Goal: (churn ?him ?her) Plan: job-problem Goal: (together ?per1 ?per2) Plan: seduction Goal: (together ?per1 ?per2) Plan: drunken-sneak-in Pursue goal, e.g. (churn neil liz) Find all applicable plans Evaluate constraints Pick from satisfied plans Pursue subgoals, e.g. (together * neil) Find all applicable plans Evaluate constraints Pick from satisfied plans Pursue subgoals – if atomic, add output to story Add daphne seduces neil

UC SANTA CRUZ Relationship to story grammars churn  do-threaten, dump-lover, worry-about, together, eliminate, do-divorce, continue “forced-marriage” churn  … “lovers-fight” churn  … “job-problem”  The hierarchical structure can be captured with context free rules  Goals on the left hand side, plot fragment steps on the right  Plot fragments are like story grammars in that they are story-centric rather than character centric  But plot fragments have a precondition, plus a story memory (characters) the preconditions can refer to  Can have much more finely tuned constraints on plot fragment selection  Multiple story goals are active at the same time – story grammars have a single line of expansion  The story is factored in terms of author goals – this may lead to different factoring than story-centric factoring of grammars

UC SANTA CRUZ StoryCanvas  StoryCanvas (formerly WideRuled) is a GUI Universe story construction kit  Intended to help non-programmers create generative stories  Differences from Universe  Currently has one goal it’s pursuing (recursive goal descent) – this makes it feel more like a grammar  Has a concept of a “performing” character – used to include player interaction  Doesn’t do any plot fragment generalization – unclear whether this was really implemented in Universe as well