Top Banner
cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State University of New York at Buffalo [email protected]
38

Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

cse@buff

alo

S.C. Shapiro

An Introduction to SNePS 3

Stuart C. Shapiro

Department of Computer Science and Engineering

and Center for Cognitive Science

State University of New York at Buffalo

[email protected]

Page 2: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Outline

• Setting

• Basic SNePS Principles

• Examples

• 4 Kinds of Inference

• Summary

Page 3: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Parentage of SNePS 3

• SNePS 2.5

• ANALOG– Structured (Conceptually Complete) Variables

• Currently being implemented– in CLOS and/or Java.

Page 4: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

SNePS KRR Style

• Network-based

• Logic-based

• Intended as the LOT of a NL-competent cognitive agent.

Page 5: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Outline

• Setting

• Basic SNePS Principles

• Examples

• 4 Kinds of Inference

• Summary

Page 6: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Basic SNePS PrinciplesA Summary of Syntax and Semantics

• Propositional Semantic Network

• Term Logic

• Intensional Representation

• Uniqueness Principle

• Paraconsistent Logic.

Page 7: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Propositional Semantic Network

• The only well-formed SNePS expressions are nodes.– Arcs do not have semantics

• Do not have assertional import

Page 8: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Term Logic

• Every well-formed SNePS expression is a term.– Even propositions are denoted by terms.– Propositions can be arguments without leaving first-

order logic.

Page 9: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Intensional Representation

• SNePS terms represent (denote) intensional (mental) entities.– Cognitively distinct entities denoted by distinct terms

• Even if co-extensional

– Every term denotes a mental entity.• No term for purely technical reasons

Page 10: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Uniqueness Principle

• No two SNePS terms denote the same entity.– Syntactically distinct terms are semantically distinct.– Full structure sharing.

Page 11: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Paraconsistent Logic

• A contradiction does not imply anything whatsoever.– A contradiction in one subdomain does not

corrupt another.

Page 12: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Outline

• Setting

• Basic SNePS Principles

• Examples

• 4 Kinds of Inference

• Summary

Page 13: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example: Term Logic& Conceptual Relations

Page 14: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 15: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 16: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 17: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 18: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 19: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Example SNePS Ontology

Page 20: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Cassie talks to Stu

Page 21: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Outline

• Setting

• Basic SNePS Principles

• Examples

• 4 Kinds of Inference

• Summary

Page 22: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Wire-Based Inference

Page 23: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Wire-Based Inference

Page 24: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Path-Based Inference

Page 25: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Path-Based Inference

member

class

class

Page 26: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Path-Based Inference

Page 27: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Node-Based Inference

If B1 is a talking robot,then B1 is intelligent.

Page 28: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Node-Based Inference

Page 29: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Node-Based Inference

Page 30: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Node-Based Inference

Page 31: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

SNePS 2.5 Generic Version

Page 32: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Subsumption Inference

Page 33: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Outline

• Setting

• Basic SNePS Principles

• Examples

• 4 Kinds of Inference

• Summary

Page 34: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Summary

• SNePS: a Logic- and Network-Based KRR• with its own Syntax, Semantics, Proof Theory• SNePS 3 has 4 kinds of inference

– Wire-based– Path-based– Node-based– Subsumption

• SNePS 3 is currently being implemented.

Page 35: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

SNeRG Home Page

http://www.cse.buffalo.edu/sneps/

Page 36: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Wire-Based Inference

• Assume

(define-relation

:name “member”

:type entity

:adjust reduce

:limit 1)

Page 37: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Path-Based Inference

• Assume

(define-path

class

(compose class

(kstar (compose

subclass- !

superclass)))

Page 38: Cse@buffalo S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.

S.C. Shapiro

cse@buff

alo

Node-Based Inference

E.g. Using and-entailment

{P1, …, Pn} &=> {Q1, …, Qm}