Download Scripts - CSUN.edu

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Star Trek: The Motion Picture wikipedia , lookup

Knowledge representation and reasoning wikipedia , lookup

Transcript
S c r i pt s
A script is a knowledge representation scheme similar to a frame, but instead of
describing an object, the script describes a sequence of events. Like the frame, the script
portrays a stereotyped situation. Unlike the frame, it is usually presented in a
particular context. To describe a sequence of events, the script uses a series of slots
containing information about the people, objects, and actions that are involved in the events.
Some of the elements of a typical script include entry conditions, props, roles,
tracks, and scenes. The entry conditions describe situations that must be satisfied before
events in this script can occur or be valid. Props refer to objects that are used in the
sequence of events that occur. Roles refer to the people invol v ed in the script. The
result is conditions that exist after the events in the script have occurred. Track
refers to variations that mi ght occur in a particular script. And finally, scenes describe
the actual sequence of events that occur.
A typical script is shown in Figure 5.7. It is a variation of the well -known r est aur a nt
e xa mpl e t hat has b een use d i n A I t o s ho w h o w kn o wl ed ge i s represented in script
format. Going to a restaurant is a stereotyped situation with predictable entry
conditions, props, roles, and scenes. As you can see, such a script accurately describes
what occurs in almost every fast-food restaurant situation. The scenes are miniscripts
within the main script that describes the various subdivisions of the entire process. Note
the optional scene that describes a take-out situation rather than a n eat-in situation.
Another option may be a drive-through scene. Finally, note the results.
A script is useful i n predicting what will happen i n a specific situation. Even though
certain events have not been observed, the script permits the computer to predict what
will happen to whom and when. If t he computer triggers a script, questions can be asked
and accurate answers derived with little or no original input knowledge. Like frames,
scripts are a particularly useful form of knowledge representation because there are so
many stereotypical situations and events that people use every day. Knowledge like this
is generally taken for granted, but in computer problem -solving situations, such knowledge must often be simulated to solve a particular problem using artificial intelligence.
To use the script, you store knowledge in the computer in symbolic form. This is best
done using LISP or another symbolic language. You can then ask questions about various
persons and conditions. A search and pattern -matching p r o c e s s e x a m i n e s t h e s c r i p t f o r
t h e a n s w e r s . F o r e x a m p l e , w h a t d o e s the customer do first? Well, he parks the car,
then goes into the restaurant. W h o m d o e s h e p a y? T h e s e r ve r , o f c o u r s e . T h e w h o l e
t h i n g i s t o t a l l y predictable.
Script representation is interrelated with case-based reasoning.