rocess-story version of the script applier mechanism (SAM) by Cullingford. Param
ID: 3598412 • Letter: R
Question
rocess-story version of the script applier mechanism (SAM) by Cullingford. Parametors are the list of CDs representing a story, a database of previous events, the currently active script, and a list of the events in the curent script that have not yet been seen. At the end of story processing, the current script is added to the database and the updated database is returned STORY A story is a list of co forms. A CD form is a predicate (PTRANS, PERSo, ete.) with zero or more (role filler) pairs Sample story"Jack vent to the store. Be got a kite. He went home. (def kite-story (PTRANS (ACTOR (PERSON (NAME Jack))) (OBJECT (PERSON (NAME Jack))) (TO (STORE))) (TO (PERSON))) (OBJECT (PERSON) (ATRANS (OBJECT (KITE)) (PTRANS (ACTOR (PERSON)) (TO (HOUSE)) SCRIPT : A script is a frame of the form (script-nane event-list). :Known scripts (def "idynamic known-seripts (SCRIPTS (shopping ( (PTRANS (ACTOR ?SHOPPER) (OBJECT 2SHOPPER) (To 2STORE) ) (PTRANS (ACTOR ?SHOPPER) (OBJECT 2BOUGHT) (TO 2SHOPPER) ) (ATRANS (ACTOR ?STORE) (OBJECT?BOUGET) FROM 2STORE) (TO 2SBOPPER) ) (ATRANS (ACTOR 2SBOPPER) OBJECT (MONEY) ) (PROM 7SHOPPER) (TO 2STORE) ) (PTRANS (ACTOR 2SHOPPER) OBJECT SHOPPER) (FROM 2STORE) (TO 2ELSEWHERE)))) :: Known predicate/script associations. (def "dynanic known-script-associations (SCRIPT-ASSOCIATIONS (STORE shopping)))Explanation / Answer
;;Below is the description of events happening in the script. (def^dynamic*known-scripts* '(SCRIPTS (shopping ;; You go to the store ((PTRANS (ACTOR ?SHOPPER) (OBJECT ?SHOPPER) (TO ?STORE)) ;; You Pick(bought) up the items from the store. (PTRANS (ACTOR ?SHOPPER) (OBJECT ?BOUGHT) (TO ?SHOPPER)) ;; You pay the money to the store. (ATRANS (ACTOR ?SHOPPER) (OBJECT (MONEY)) (FROM ?SHOPPER) (TO ?STORE)) ;; Now the Store transfer the items to you. (ATRANS (ACTOR ?STORE) (OBJECT ?BOUGHT) (FROM ?STORE) (TO ?SHOPPER)) ;; You Leave (left) the store . (PTRANS (ACTOR ?SHOPPER) (OBJECT ?SHOPPER) (FROM ?STORE) (TO ?ELSEWHERE)))))) (def^dynamic*known-scripts-associations* (SCRIPT ASSOCIATIONS(STORE shopping))) ;; Here the story is that You went to the store , Picked up items from the store . You pay the money to the store . Store transfer items to you.You leave the store. ;; Here some of the predictates have the associated scripts. For an example,the shopping. ;; Here the script shopping is associated with the STORE.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.