Knowledge Representation. Key Issue in AI 1. Mapping between objects and relations in a problem domain and computational objects and relations in a program.

Slides:



Advertisements
Similar presentations
Dr. David A Ferrucci -- Logic Programming and AI Lecture Notes Knowledge Structures Building the Perfect Object.
Advertisements

March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Semantics (Chapter 17) Muhammed Al-Mulhem March 1, 2009.
Natural Language Processing Lecture 2: Semantics.
Semantics (Representing Meaning)
1 CS 388: Natural Language Processing Story Understanding Raymond J. Mooney University of Texas at Austin.
Knowledge Representation
Intelligent systems Lection 7 Frames, selection of knowledge representation, its combinations.
Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Knowledge Representation. Essential to artificial intelligence are methods of representing knowledge. A number of methods have been developed, including:
Knowledge Representation.  What is Knowledge Representation What is Knowledge Representation  Type of knowledge in AI Type of knowledge in AI  Declarative.
Semiotics and Ontologies. Ontologies contain categories, lexicons contain word senses, terminologies contain terms, directories contain addresses, catalogs.
CPSC 322 Introduction to Artificial Intelligence November 5, 2004.
Representations One of the major distinctions between ordinary software and AI is the need to represent domain knowledge (or other forms of worldly knowledge)
1 Pertemuan 14 Strong Slot-and-Filler Structures Matakuliah: T0264/Inteligensia Semu Tahun: Juli 2006 Versi: 2/1.
Conceptual Dependency
Knowledge Representation
ISBN Chapter 3 Describing Syntax and Semantics.
 Contrary to the beliefs of early workers in AI, experience has shown that Intelligent Systems cannot achieve anything useful unless they contain a large.
Knowing Semantic memory.
Cognitive Processes PSY 334 Chapter 5 – Meaning-Based Knowledge Representation July 24, 2003.
1 Pertemuan 13 Strong Slot-and-Filler Structures Matakuliah: T0264/Inteligensia Semu Tahun: 2005 Versi: 1/0.
Knowledge Representation
Describing Syntax and Semantics
Objects Objects are at the heart of the Object Oriented Paradigm What is an object?
Meaning and Language Part 1.
Syntax.
Chapter 9 Domain Models 1CS6359 Fall 2012 John Cole.
Albert Gatt LIN 3098 Corpus Linguistics. In this lecture Some more on corpora and grammar Construction Grammar as a theoretical framework Collostructional.
Knowledge Representation
Review Topics Test 1. Background Topics Definitions of Artificial Intelligence & Turing Test Physical symbol system hypothesis vs connectionist approaches.
Knowledge Representation Semantic Network dan Frame.
Lectures 5,6 MACHINE LEARNING EXPERT SYSTEMS. Contents Machine learning Knowledge representation Expert systems.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Knowledge Management in Theory and Practice
Chapter 6. Semantics is the study of the meaning of words, phrases and sentences. In semantic analysis, there is always an attempt to focus on what the.
Representations One of the major distinctions between ordinary software and AI is the need to represent domain knowledge (or other forms of worldly knowledge)
A Procedural Model of Language Understanding Terry Winograd in Schank and Colby, eds., Computer Models of Thought and Language, Freeman, 1973 발표자 : 소길자.
Early Work Masterman: 100 primitive concepts, 15,000 concepts Wilks: Natural Language system using semantic networks Shapiro: Propositional calculus based.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
Semantic Nets, Frames, World Representation CS – W February, 2004.
Rules, Movement, Ambiguity
Cognitive Processes PSY 334 Chapter 5 – Meaning-Based Knowledge Representation.
Knowledge Representation
1 CS 385 Fall 2006 Chapter 7 Knowledge Representation 7.1.1, 7.1.5, 7.2.
Knowledge Management in Theory and Practice
Lecture 5 Frames. Associative networks, rules or logic do not provide the ability to group facts into associated clusters or to associate relevant procedural.
Artificial Intelligence Knowledge Representation.
Knowledge Representation
Knowledge Engineering. Sources of Knowledge - Books - Journals - Manuals - Reports - Films - Databases - Pictures - Audio and Video Tapes - Flow Diagram.
Artificial Intelligence – CS364 Knowledge Representation Lectures on Artificial Intelligence – CS364 Conceptual Dependency 20 th September 2005 Dr Bogdan.
Definition and Technologies Knowledge Representation.
Knowledge Representation. A knowledge base can be organised in several different configurations to facilitate fast inferencing Knowledge Representation.
Module 5 Other Knowledge Representation Formalisms
Knowledge Representation Techniques
Knowledge Representation
Knowledge Representation
ARTIFICIAL INTELLIGENCE
Knowledge Representation
Conceptual Dependency (CD)
Strong Slot-and-Filler Structures
Issues in Knowledge Representation
Strong Slot-and-Filler Structures
ARTIFICIAL INTELLIGENCE
KNOWLEDGE REPRESENTATION
Weak Slot-and-Filler Structures
Semantic Nets and Frames
Structured Knowledge Representation
Subject : Artificial Intelligence
Habib Ullah qamar Mscs(se)
Presentation transcript:

Knowledge Representation

Key Issue in AI 1. Mapping between objects and relations in a problem domain and computational objects and relations in a program. 2. Results of inferences on the knowledge base (KB) should correspond to the results of actions or observations in the world.

Have Already Examined Two (related) KR Schemes  First Order Predicate Logic  Production Systems

We’ll look at four others 1. Semantic Nets 2. Conceptual Dependency Schemes 3. Frames 4. Scripts 1 & 2 are called network schemes 3 & 4 are called structured schemes (alternatively slot and filler schemes)

Problems with FOPL 1. Emphasis is on truth-preserving relations 2. Sometimes at odds with the way that humans acquire and use knowledge 3. Leads to problems in mapping human language to FOPL

For Example If … then In English suggests causality But In FOPL specifies a relationship between truth values of antecedent and consequent (2+2 = 5)  color(elephants, green) This is true, but without common sense meaning.

Categorical Interlude Category  A group of objects that seem to go together  Because they have significant attributes in common  Example: DOG

 Allows us to use our finite mental resources efficiently –When identifying an objects, we can abstract key attributes from all sensory information presented to us. –I am trying to determine whether that flying object is a bird or a wasp. –I don’t care that robins have orange breasts and sparrows have grey. –What matters are those attributes of category bird that exclude instances of category wasp

 Categories license inductive inferences –Most birds pose no threat to humans –Common wasps do –Inference from category wasp tells us to avoid its members

Gelman & Markman’s Experiment Children were  Shown a picture of a fish  Told that it breathes under water  Shown a picture of a dolphin  Told that it breathes by jumping out of the water  Shown a picture of a shark  Told that it is a fish (though it looks like a dolphin)  Were asked how it breathes  Answered “Under water.”

Semantic Nets  Proposed by Quillian in the late 1960’s  Tries to provide a formalism that captures taxonomic hierarchies  A graph where –Nodes are categories –Arcs are of three types  Isa links, indicating a subset relationship (a dog isa mammal)  Inst links, indicating an element-set relationship (mazel is a dog)  Attribute links, indicating a property held by a category (simcha is grey)

Example thing Animate thing Table_1 legs Ponderosa pine animal plant green Inanimate Thing Block_1 Furniture Table cubic Block color isa Instance_of Supported_by shape

In (what else?) Prolog In (what else?) Prolog

Strengths of Semantic Nets 1. Provides for inheritance 2. Organizes knowledge using interconnected concepts 3. Let’s us discover relationships between pairs of concepts (block_1 and table_1 are both inanimate things and are supported by legs)

Weaknesses of Semantic Nets 1. Generality of the attribute links 2. As task grows in complexity, so does the representation 3. No systematic basis for structuring semantic relationships 4. Puts the burden of constructing facts & links on programmer

Key Issue  Isolation of primitives for semantic network languages  Primitives are those things that the interpreter is programmed in advance to understand.  We need a more systematic basis for structuring semantic relationships

Case Structure Grammars  C.J. Fillmore, 1968  Verb oriented (as opposed to concept-oriented)  Sentences are represented as verb nodes with links to specific roles played by nouns and noun phrases  Important links –Agent –Object –Instrument –Location –Time

“Mary caught the ball with her glove.” Mary agent catch ball glove instrument past object time

Advantages  Representational language captures some of the deep structure of natural languages (i.e., the relationship between any verb and its subject is the agent relationship)  This deep structure is independent of any sentence or even of any distinct language

Leading To  Conceptual Dependency Theory –Associated with Robert Schank (then of Yale, most recently of Northwestern) –Attempts to model the semantic structure of natural language –Attempts to provide a canonical form for the meaning of sentences –That is, all sentences that mean the same thing (whatever that means) will be represented internally by identical graphs –Idea is to parse two sentences that use different words but mean the same thing into identical internal representations –Example: John gave the book to mary/Mary was given the book by John.

Primitives in CD Theory  ACTs – actions  PPs – picture producers  AAs – modifiers of actions (action aiders)  PAs – Modifiers of objects (picture aiders)

Further Breakdown Each of these classes has a well-defined number of primitives (luger, pp ) All ACTs (actions) can be reduced to: 1. ATRANS – transfer a relationship (give) 2. PTRANS – transfer a physical location (go) 3. PROPEL – apply physical force (push) 4. MOVE – move body part by owner (kick) … 12. ATTEND – focus sense organ (listen)

Yet More  Indicates direction of dependency  P indicates past  F indicates future  Indicates agent-verb relationship  Indicates the object of an action ACT PP  Agent instrument is an arrow pointing left o

pp pp ACT Recipient of an action

“John gave the book to mary.” John p ATRANS book R mary john

Basic Idea 1. Parse the sentence 2. Fit it into canonical form 3. Group sentences with similar meanings

Strengths 1. Provides a formal theory of language semantics 2. Reduces the problem of ambiguity 3. Attempts to reduce the complexity of natural language by grouping sentences of similar meaning together.

Weaknesses 1. Reduction is not computable in polynomial time 2. No evidence that humans store knowledge in canonical forms 3. Does not address the difficult issue of meaning in discourse Example: Bill and John always walk home together. One afternoon, Bill said to John, “Let’s leave early.” In effect, he asked him to go along with his plan of playing hooky. What are the referents of these three pronouns?

Canonical Sentences leads to Canonical Events  NLP programs must use a large amount of background knowledge  Evidence that we organize this information into structures corresponding to typical situations  Example: if we read a story about baseball, we resolve any ambiguities in the text in a way consistent with baseball

Example 1. City Council refused to give the demonstrators a permit because they feared violence. 2. City Council refused to give the demonstrators a permit because they advocated revolution. Background knowledge lets us determine the correct referent to they in each case.

Script  Structural representation that describes a stereotypical sequence of events in a particular context.  May be viewed as a causal chain

Components 1. Entry conditions: must be satisfied before the script is activated 2. Result: things that will be true after script completes 3. Props: slots representing objects that are involved in the events of the script. 4. Roles: slots representing people involved in the events of the script. 5. Track: Specific variation on a general pattern 6. Scene: The actual sequence of events

Notice  Entry Conditions/Result are pre/post conditions  Props and Roles are Data Structures  Track is overloading  Scene is an algorithm

Example John went to a restaurant last night. He ordered penne arrabiata. When he paid, he noticed he was running out of money. He hurried home, since it had started to rain. Question: Did he eat?

In Action  Activate Script: Restaurant  Roles: –S = Customer –W= Waiter  Props: –F = Food  Scene –Entering:  S ptrans s into restaurant –Ordering: … –Eating  S ingest F –Exiting  S atrans money to W  Result: Answer to question is yes

Frames  Associated with Marvin Minsky  Semantic nets informally represent –inheritance through isa links –Relationships among entities  Frames –More structured semantic net –Assign structure to nodes as well as links –Definition  A frame is a collection of attributes (slots) and associated values (along with constraints) that describe something in the world  Each frame –Represents a set of items (isa) with given properties that are inherited by its members –Represents an instance (inst) of a class of items with given properties, some of which are inherited

Example Semantic Net person Male ML baseball player pitcheroutfielder KoufaxMaysDodgers.106 Giants right is a inst ht

Transformed to a Frame Issue Some attributes are to be inherited Some refer only to the frame itself Person has both cardinality (8,000,000,000) and locomotion (biped) Only locomotion is to be inherited— indicate with an *

Person  isa: Mammal  Card: 8,000,000,000  *handed: right We have a frame with three slots Male  Isa: Person  Card: 4,000,000,000  *height: 5-10

Baseball Player  Isa: male  Card: 624  *Height: 6-1  *avg:.252  *team:  *uniform color

Slots  Have inherited default values  Can be structured objects –Frames to which it can be attached (*avg makes sense for baseball player but not for water fowl) –Constraints on values (0 <= avg <= 1) –Default value –Rules for computing a value separate from inheritance –Whether a slot is single or multi-valued