Knowledge Representation

Similar documents
ABSS HIGH FREQUENCY WORDS LIST C List A K, Lists A & B 1 st Grade, Lists A, B, & C 2 nd Grade Fundations Correlated

Fry Instant Phrases. First 100 Words/Phrases

ENGLISH FILE. Progress Test Files Complete the sentences with the correct form of the. 3 Underline the correct word or phrase.

Countable (Can count) uncountable (cannot count)

Conjunctions ******* There are several types of conjunctions in English grammar. They are:

Instant Words Group 1

We re all back together

1 Family and friends. 1 Play the game with a partner. Throw a dice. Say. How to play

Name. Read each sentence and circle the pronoun. Write S on the line if it is a subject pronoun. Write O if it is an object pronoun.

Foundations in Data Semantics. Chapter 4

Tropes and the Semantics of Adjectives

Unit 6. of Anna s family members in the correct spaces in the family tree. Look at the box with

1 Read the text. Then complete the sentences. (6 x 2 = 12 points)

An Introduction to Description Logic I

Plurals Jean Mark Gawron San Diego State University

Comma Splices and Fused Sentences

Articulating Medieval Logic, by Terence Parsons. Oxford: Oxford University Press,

English Skills Practice and Apply: Grade 5

Lesson 18: Sentence Structure

Use of Language PAST SIMPLE AND PAST CONTINUOUS Read the two sentences below, which describe certain events in the past:

Past Simple Questions

Simple passive GRAMMAR

PHR (A) (slice) (of) something is a thin piece cut from something bigger. N An (accident) is something which happens that was not planned.

Part A Instructions and examples

Units 1 & 2 Pre-exam Practice

Power Words come. she. here. * these words account for up to 50% of all words in school texts

Big Hamburger / Little Hamburger Grover the waiter - Sesame Street

Relative clauses GRAMMAR

Unit 1 Assessment. Read the passage and answer the following questions.

CHAPTER-3 KNOWLEDGE REPRESENTATION. Types of Knowledge Knowledge Pyramid Knowledge Representation Methods

Name: Class: School:

Read the instructions at the beginning of each of the sections below on common sentence errors, then complete the practice exercises which follow.

************************************************

HAVE GOT WAS WERE CAN. Koalatext.com TO BE GRAMMAR CONDITIONAL 0

New Inside Out Beginner Units Tests

LEVEL B Week 10-Weekend Homework

Elementary Podcast Series 02 Episode 06

ENGLISH FILE Intermediate

INTERNATIONAL INDIAN SCHOOL BURAIDAH ENGLISH GRAMMAR WORKSHEET 06 GRADE- 3

Unit 2 The Parrot. 2A Introduction. 2B Song Lyrics. attractive / captivity / carefree / coax / desire / frantic / plead / release / tragic / vast

Lesson 44: Business Lunches (20-25 minutes)

Writing Model. Report. Talk About It. The topic sentence tells what the report is about. Detail sentences tell facts about the topic.

Grammar Flash Cards 3rd Edition Update Cards UPDATE FILE CONTENTS PRINTING TIPS

! Japanese: a wh-in-situ language. ! Taroo-ga [ DP. ! Taroo-ga [ CP. ! Wh-words don t move. Islands don t matter.

Summer Reading Writing Assignment for 6th Going into 7th Grade

UNIT 01 It s mine Pages 12-13

The First Hundred Instant Sight Words. Words 1-25 Words Words Words

ADVERBS MODIFYING VERBS

.Student A ... Student B

THE PASSIVE VOICE A) FORMATION

The Basketball Game We had our game on Friday. We won against the other team. I was happy to win because we are undefeated. The coach was proud of us.

TABLE OF CONTENTS. Free resource from Commercial redistribution prohibited. Language Smarts TM Level D.

2 - I couldn't treat you any better if you were the Queen of England. a - himself b - yourselves c - herself d - ourselves e

LEVEL PRE-A1 LAAS LANGUAGE ATTAINMENT ASSESSMENT SYSTEM. English English Language Language Examinations Examinations. December 2005 May 2012

S. 2 English Revision Exercises. Unit 1 Basic English Sentence Patterns

Re-appraising the role of alternations in construction grammar: the case of the conative construction

RSS - 1 FLUENCY ACTIVITIES

The present perfect: Key (pp.14-18)

Quick Assessment Project EDUC 203

Year 8 Drama. Unit One: Think Quick Unit Two: Let s Act TEACHER BOOKLET

Part A Instructions and examples

MODAL VERBS ABILITY. We can t meet them tomorrow. Can you hear that noise?

Contents. sample. Unit Page Enrichment. 1 Conditional Sentences (1): If will Noun Suffixes... 4 * 3 Infinitives (1): to-infinitive...

A is going usually B is usually going C usually goes D goes usually

Would Like. I would like a cheeseburger please. I would like to buy this for you. I would like to drink orange juice please.

Conversation 1. Conversation 2. Conversation 3. Conversation 4. Conversation 5

ENGLISH FILE. End-of-course Test. 1 Complete the sentences. Use the correct form of the. 3 Underline the correct word(s) in each sentence.

Grammar, Vocabulary, and Pronunciation

ENGLISH LANGUAGE TEST GRADE SIX

Directions: Choose the best word(s) to complete each sentence.

STYLE. Sample Test. School Tests for Young Learners of English. Form A. Level 1

HERE AND THERE. Vocabulary Collocations. Grammar Present continuous: all forms

Peirce's Remarkable Rules of Inference

Lecture 7. Scope and Anaphora. October 27, 2008 Hana Filip 1

Mid Programme Entries Year 2 ENGLISH. Time allowed: 1 hour and 30 minutes

cl Underline the NOUN in the sentence. gl Circle the missing ending punctuation. !.? Watch out Monday Tuesday Wednesday Thursday you are in my class.

Word Fry Phrase. one by one. I had this. how is he for you

Check back at the NCTM site for additional notes and tasks next week.

Ever feel like you re not getting anywhere with your writing???

Food Idioms WHICH IDIOM BEST DESCRIBES THESE PEOPLE?

ONE Escalation and De-escalation Skits Ideas

Copyright Statement. ATTITUDE TRANSFER SCALE: Primary Form (Grades K-l) This test, administered to students individually, is designed to

Guru Kids Pro Reading Comprehension 1 (Level A)

CAMBRIDGE ENGLISH EMPOWER B1 PROGRESS TEST. Test minutes. Time

Anglia ESOL International Examinations. Preliminary Level (A1) Paper CC115 W1 [5] W3 [10] W2 [10]

QualityTime-ESL Podcasts

Welcome to this sample unit from Understanding Everyday Australian Book 2

Lecture 13: Chapter 10: Semantics

Independent and Subordinate Clauses

AVOIDING FRAGMENTS AND RUN-ONS

rskills Progress Monitoring Test 4b

Year 3 and 4 Grammar: Fronted Adverbials Learning From Home Activity Booklet

Show Me Actions. Word List. Celebrating. are I can t tell who you are. blow Blow out the candles on your cake.

ENGLIGH REVIEW. 1ºy 2ºESO Colegio "La Inmaculada" Am, is or are? Write the correct word in the gaps. Then make the sentences negative.

ENGLISH FILE. Progress Test Files Complete the sentences. Use the correct form of the. 3 Complete the sentences with one word.

THE 'ZERO' CONDITIONAL

1. There are some bananas on the table, but there aren t any apples.

Lesson 41: Dining Out (20-25 minutes)

PRESENT TENSES. PRESENT SIMPLE PRESENT CONTINUOUS PRESENT PERFECT and PRESENT PERFECT CONTINUOUS

I Tom. L the film starts does the film start? In past simple questions, we use did: L you. I you live do you Live?

Transcription:

7 Knowledge Representation 7.0 Issues in Knowledge Representation 7.1 A Brief History of AI Representational Systems 7.2 Conceptual Graphs: A Network Language 7.3 Alternatives to Explicit Representation 7.4 Agent Based and Distributed Problem Solving 7.5 Epilogue and References 7.6 Exercises Note: we will skip 7.3 and 7.4 Additional references for the slides: Robert Wilensky s CS188 slides: www.cs.berkeley.edu/~wilensky/cs188/lectures/index.html John F. Sowa s examples: www.jfsowa.com/cg/cgexampw.htm 1

Chapter Objectives Learn different formalisms for Knowledge Representation (KR) Learn about representing concepts in a canonical form Compare KR formalisms to predicate calculus The agent model: Transforms percepts and results of its own actions to an internal representation 2

Shortcomings of logic Emphasis on truth-preserving operations rather than the nature of human reasoning (or natural language understanding) if-then relationships do not always reflect how humans would see it: X (cardinal (X) red(x)) X( red (X) cardinal(x)) Associations between concepts is not always clear snow: cold, white, snowman, slippery, ice, drift, blizzard Note however, that the issue here is clarity or ease of understanding rather than expressiveness. 3

Network representation of properties of snow and ice 4

Semantic network developed by Collins and Quillian (Harmon and King 1985) 5

Meanings of words (concepts) The plant did not seem to be in good shape. Bill had been away for several days and nobody watered it. OR The workers had been on strike for several days and regular maintenance was not carried out. 6

Three planes representing three definitions of the word plant (Quillian 1967) 7

Intersection path between cry and comfort (Quillian 1967) 8

Case oriented representation schemes Focus on the case structure of English verbs Case relationships include: agent location object time instrument Two approaches case frames: A sentence is represented as a verb node, with various case links to nodes representing other participants in the action conceptual dependency theory: The situation is classified as one of the standard action types. Actions have conceptual cases (e.g., actor, object). 9

Case frame representation of Sarah fixed the chair with glue. 10

Conceptual Dependency Theory Developed by Schank, starting in 1968 Tried to get as far away from language as possible, embracing canonical form, proposing an interlingua Borrowed from Colby and Abelson, the terminology that sentences reflected conceptualizations, which combine concepts from case theory, the idea of cases, but rather assigned these to underlying concepts rather than to linguistic units (e.g., verbs) from the dependency grammar of David Hayes, idea of dependency 11

Basic idea Consider the following story: Mary went to the playroom when she heard Lily crying. Lily said, Mom, John hit me. Mary turned to John, You should be gentle to your little sister. I m sorry mom, it was an accident, I should not have kicked the ball towards her. John replied. What are the facts we know after reading this? 12

Basic idea (cont d) Mary went to the playroom when she heard Lily crying. Lily said, Mom, John hit me. Mary turned to John, You should be gentle to your little sister. I m sorry mom, it was an accident, I should not have kicked the ball towards her. John replied. Mary s location changed. Lily was sad, she was crying. John hit Lily (with an unknown object). John is Lily s brother. John is taller (bigger) than Lily. John kicked a ball, the ball hit Lily. 13

John hit the cat. First, classify the situation as of type Action. Actions have cocceptual cases, e.g., all actions require Act (the particular type of action) Actor (the responsible party) Object (the thing acted upon) ACT: ACTOR: OBJECT: [apply a force] or PROPEL john cat o john PROPEL cat 14

Conceptual dependency theory Four primitive conceptualizations: ACTs PPs AAs PAs actions objects (picture producers) modifiers of actions (action aiders) modifiers of objects (picture aiders) 15

Conceptual dependency theory (cont d) Primitive acts: ATRANS PTRANS PROPEL MOVE GRASP INGEST EXPEL MTRANS MBUILD CONC SPEAK ATTEND transfer a relationship (give) transfer of physical location of an object (go) apply physical force to an object (push) move body part by owner (kick) grab an object by an actor (grasp) ingest an object by an animal (eat) expel from an animal s body (cry) transfer mental information (tell) mentally make new information (decide) conceptualize or think about an idea (think) produce sound (say) focus sense organ (listen) 16

Basic conceptual dependencies 17

Examples with the basic conceptual dependencies 18

Examples with the basic conceptual dependencies (cont d) 19

CD is a decompositional approach John took the book from Pat. John < > *ATRANS* book o John Pat The above form also represents: Pat received the book from John. The representation analyzes surface forms into an underlying structure, in an attempt to capture common meaning elements. 20

CD is a decompositional approach John gave the book to Pat. John < > *ATRANS* book o Pat John Note that only the donor and recipient have changed. 21

Ontology Situations were divided into several types: Actions States State changes Causals There wasn t much of an attempt to classify objects 22

John ate the egg. 23

John prevented Mary from giving a book to Bill 24

Representing Picture Aiders (PAs) or states thing < > state-type (state-value) The ball is red John is 6 feet tall John is tall ball < > color (red) john < > height (6 feet) john < > height (>average) John is taller than Jane john < > height (X) jane < > height (Y) X > Y 25

More PA examples John is angry. john < > anger(5) John is furious. john < > anger(7) John is irritated. john < > anger (2) John is ill. john < > health (-3) John is dead. john < > health (-10) Many states are viewed as points on scales. 26

Scales There should be lots of scales The numbers themselves were not meant to be taken seriously But that lots of different terms differ only in how they refer to scales was An interesting question is which semantic objects are there to describe locations on a scale? For instance, modifiers such as very, extremely might have an interpretation as toward the end of a scale. 27

Scales (cont d) What is John grew an inch. This is supposed to be a state change: somewhat like an action but with no responsible agent posited John < Ξ Height (X+1) Height (X) 28

Variations on the story of the poor cat John applied a force to the cat by moving some object to come in contact with the cat John < > *PROPEL* cat o i John < > *PTRANS* [ ] o loc(cat) The arrow labeled i denotes instrumental case 29

Variations on the cat story (cont d) John kicked the cat. John < > *PROPEL* cat i John < > *PTRANS* foot o o loc(cat) kick = hit with one s foot 30

Variations on the cat story (cont d) John hit the cat. John < > *PROPEL* cat o < cat < Health(-2) Hitting was detrimental to the cat s health. 31

Causals John hurt Jane. John < > DO Jane o < Jane < Pain( > X) Pain (X) John did something to cause Jane to become hurt. 32

Causals (cont d) John hurt Jane by hitting her. John < > PROPEL Jane o < Jane < Pain( > X) Pain (X) John hit Jane to cause Jane to become hurt. 33

How about? John killed Jane. John frightened Jane. John likes ice cream. 34

John killed Jane. John < > *DO* < Jane < Health(-10) Health(> -10) 35

John frightened Jane. John < > *DO* < Jane < Fear (> X) Fear (X) 36

John likes ice cream. John < > *INGEST* IceCream o < John < Joy ( > X) Joy ( X ) 37

Comments on CD theory Ambitious attempt to represent information in a language independent way formal theory of natural language semantics, reduces problems of ambiguity canonical form, internally syntactically identical decomposition addresses problems in case theory by revealing underlying conceptual structure. Relations are between concepts, not between linguistic elements prospects for machine translation are improved 38

Comments on CD theory (cont d) The major problem is incompleteness no quantification no hierarchy for objects (and actions), everything is a primitive are those the right primitives? Is there such a thing as a conceptual primitive? (e.g., MOVE to a physiologist is complex) how much should the inferences be carried? CD didn t explicitly include logical entailments such as hit entails being touched, bought entails being at a store fuzzy logic? Lots of linguistic details are very lexicallydependent, e.g., likely, probably still not well studied/understood, a more convincing methodology never arrived 39

Understanding stories about restaurants John went to a restaurant last night. He ordered steak. When he paid he noticed he was running out of money. He hurried home since it had started to rain. Did John eat dinner? Did John pay by cash or credit card? What did John buy? Did he stop at the bank on the way home? 40

Restaurant stories (cont d) Sue went out to lunch. She sat at a table and called a waitress, who brought her a menu. She ordered a sandwich. Was Sue at a restaurant? Why did the waitress bring Sue a menu? Who does she refer to in the last sentence? 41

Restaurant stories (cont d) Kate went to a restaurant. She was shown to a table and ordered steak from a waitress. She sat there and waited for a long time. Finally, she got mad and she left. Who does she refer to in the third sentence? Why did Kate wait? Why did she get mad? (might not be in the script ) 42

Restaurant stories (cont d) John visited his favorite restaurant on the way to the concert. He was pleased by the bill because he liked Mozart. Which bill? (which script to choose: restaurant or concert?) 43

Scripts Entry conditions: conditions that must be true for the script to be called. Results: conditions that become true once the script terminates. Props: things that support the content of the script. Roles: the actions that the participants perform. Scenes: a presentation of a temporal aspect of a script. 44

A RESTAURANT script Script: Track: Props: Roles: RESTAURANT coffee shop Tables, Menu, F = food, Check, Money S= Customer W = Waiter C = Cook M = Cashier O = Owner 45

A RESTAURANT script (cont d) Entry conditions: Results: S is hungry S has money S has less money O has more money S is not hungry S is pleased (optional) 46

A RESTAURANT script (cont d) 47

A RESTAURANT script (cont d) 48

A RESTAURANT script (cont d) 49

Frames Frames are similar to scripts, they organize stereotypic situations. Information in a frame: Frame identification Relationship to other frames Descriptors of the requirements Procedural information Default information New instance information 50

Part of a frame description of a hotel room 51

Conceptual graphs A finite, connected, bipartite graph Nodes: either concepts or conceptual relations Arcs: no labels, they represent relations between concepts Concepts: concrete (e.g., book, dog) or abstract (e.g., like) 52

Conceptual relations of different arities Flies is a unary relation bird flies Color is a binary relation dog color brown Parents is a ternary relation child parents father mother 53

Mary gave John the book. 54

Conceptual graphs involving a brown dog Conceptual graph indicating that the dog named emma dog is brown: Conceptual graph indicating that a particular (but unnamed) dog is brown: Conceptual graph indicating that a dog named emma is brown: 55

Conceptual graph of a person with three names 56

The dog scratches its ear with its paw. 57

The type hierarchy A partial ordering on the set of types: t s where, t is a subtype of s, s is a supertype of t. If t s and t u, then t is a common subtype of s and u. If s v and u v, then v is a common supertype of s and u. Notions of: minimal common supertype maximal common subtype 58

A lattice of subtypes, supertypes, the universal type, and the absurd type r v w s u t 59

Four graph operations copy: exact copy of a graph restrict: replace a concept node with a node representing its specialization join: combines graph based on identical nodes simplify: delete duplicate relations 60

Restriction 61

Join 62

Simplify 63

Inheritance in conceptual graphs 64

Tom believes that Jane likes pizza. person:tom experiencer believe object proposition person:jane agent likes pizza object 65

There are no pink dogs. 66

Translate into English person:john agent eat object pizza instrument part hand 67

Translate into English 1 person between place attr hard 2 rock 68

Translate into English 69

Algorithm to convert a conceptual graph, g, to a predicate calculus expression 1. Assign a unique variable, x 1, x 2,, x n, to each one of the n generic concepts in g. 2. Assign a unique constant to each individual constant in g. This constant may simply be the name or marker used to indicate the referent of the concept. 3. Represent each concept by a unary predicate with the same name as the type of that node and whose argument is the variable or constant given that node. 4. Represent each n-ary conceptual relation in g as an n- ary predicate whose name is the same as the relation. Let each argument of the predicate be the variable or constant assigned to the corresponding concept node linked to that relation. 5. Take the conjunction of all the atomic sentences formed under 3 and 4. This is the body of the predicate calculus expression. All the variables in the expression are existentially quantified. 70

Example conversion 1. Assign variables to generic concepts X 1 2. Assign constants to individual concepts emma 3. Represent each concept node dog(emma) brown(x 1 ) 4. Represent each n-ary relation color(emma, X 1 ) 5. Take the conjunction all the predicates from 3 and 4 dog(emma) color(emma, X 1 ) brown(x 1 ) All the variables are existentially quantified. X 71 1 dog(emma) color(emma, X 1 ) brown(x 1 )

Universal quantification A cat is on a mat. cat on mat Every cat is on a mat. Cat: on mat 72