版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Chapter 5 Knowledge RepresentationXiu-jun GONG (Ph. D)School of Computer Science and Technology, Tianjin U http:/ OutlinepKnowledge & Knowledge representationpMethodology for KRnLogicnProduction SystemnSemantic NetnFramenScriptnObject-OrientedpSummaryKnowledge What is Knowledge ?InformationKnowledge
2、Knowledge = FactsRulesControl Strategy +(sometimes ) FaithsData Signal Taxonomy of KnowledgepFacts: declarative knowledgenthief(john), likes(john, wine)pRules: procedural knowledgenmay_steal(X, Y) if thief(X) and likes(X, Y)pControl Strategy: meta, super knowledgenreasoning strategynnote formnsearch
3、 strategyAttributes of KnowledgepRange :Special GeneralpIntend :Expository InstructionalpCertainty :Certain UncertainpContain/Conflict :Contain Conflict(in faith)Knowledge RepresentationpKnowledge representation is an issue that arises in both cognitive science and AI. nIn cognitive science it is co
4、ncerned with how people store and process information. nIn AI, the primary aim is to store knowledge so that programs can process it and achieve the verisimilitude of human intelligence. nAI researchers have borrowed representation theories from cognitive science. Some issues in KRpHow do people rep
5、resent knowledge? pWhat is the nature of knowledge and how do we represent it? pShould a representation scheme deal with a particular domain or should it be general purpose? pHow expressive is a representation scheme? pShould the scheme be declarative or procedural? Methodology of KRpLogicpProductio
6、n SystempSemantic NetpFramepScriptPropositional LogicpPropositional logic uses true statements to form or prove other true statements. nRepresentation (syntax): How to represent a proposition.nReasoning (algorithm): How to create or prove new propositions. pRepresentation of propositional logicnA pr
7、opositional symbol and connectives (!, *, +, =, )nExample:pC = “Its cold outside” ; C is a propositionpO = “Its October” ; O is a propositionpIf O then C ;if its October then its cold outsidePredicate LogicpSame connectives as propositional logicpPropositions have structure: Predicate/Function + arg
8、uments. nR, 2 ; Terms. Terms are not individuals, not propositionsnRed(R), (Red R) ; A proposition, written in two waysn(southOf UnicornCafe UniHall) ;a propositionn(+ 2 2) ; Term, since the function + ranges over numberspQuantifiers enable general axioms to be writtenn(forall ?x (iff (Triangle ?x)
9、(and (polygon ?x) (numberOfSides ?x 3)Easy to inferenceLogic as a KR language padvantages nWith a semantics nExpressiveness pDisadvantages nInefficient nUndecidability nUnable to express procedural knowledge nUnable to do default reasoning nNo abductionProduction System (1)pProduction rules are one
10、of the most popular and widely used knowledge representation languages pProduction rule system consists of three components nworking memory contains the information that the system has gained about the problem thus far. nrule base contains information that applies to all the problems that the system
11、 may be asked to solve. ninterpreter solves the control problem, i.e., decide which rule to execute on each selection-execute cycle. pUsed both for KR and Problem solving systemProduction System (2)pAdvantages: nNaturalness of expression nModularity nRestricted syntaxnAbility to Represent Uncertain
12、KnowledgepDisadvantages nInefficient nLess expressive Semantic Nets pIntuition base:nAn important feature of human memory is the high number of connections or associations between the different pieces of information contained in it. pThere are two types of primitive nNodes correspond to objects, or
13、classes of objects, in the world nLinks are unidirectional connections between nodes and correspond to relationships between these objects Semantic Nets pMajor problem with semantic nets is that although the name of this knowledge representation language is semantic nets, there is not, ironically, c
14、lear semantics of the various network representations. For the above example, nit can be interpreted as the representation of a specific bird named Tweety, or nit can be interpreted as a representation of some relationship between Tweety, birds and animals. Common used linkspIS-ApPART-OFpMODIFILES:
15、on, down, up, bottom, moveto,pLink types are set up for specific domain knowledgeExamples of Semantic Net (1)pRepresent a tableleg4leg1leg3tableleg2topSupportis-aAnalysis of Semantic NetpFor a particular Domain, you nmake up a set of link-typesncreate a set of nodes nconnect them together nascribe m
16、eaningpWrite Programs to manipulate the knowledgenLispnCLExamples of Semantic Net (2)pMy car is tan and Johns car is greencarcar1tancar2greenIjohnownerownercolorcoloris-ais-aInference in a Semantic Net (1)pInheritancenthe is-a and instance-of representation provide a mechanism to implement this.nInh
17、eritance also provides a means of dealing with default reasoningACABCIS-AIS-AIS-Aclydebirdbirdflyclyde flyIS-AcancanInference in a Semantic Net (2)pIntersection searchnThe notion that spreading activation out of two nodes and finding their intersection finds relationships among objects.nMany advanta
18、ges including entity-based organization and fast parallel implementation.n However very structured questions need highly structured networksInference in a Semantic Net (3)carcar1tancar2greenIjohnIcar1what?caris-ais-ais-a owner owner ownercolorcolorcolorWhat color is the car1?tanFrame representationp
19、Frame: a knowledge representation technique which attempts to organize concepts into a form which exploits interrelatioships and common beliefspframe-based KR is analogous to object-oriented programming; the difference is the entities encodedpA frame is similar to a record data structure or database
20、 record:pFrame has slot names and slot fillers, and usually arranged in a hierarchyStructure of frame (1)Frame name slot: value , value, . . . slot: facet: value, value, facet: value, value, Frame: printer superset: office-machine subset: laser-printer, ink-jet-printer energy-source: wall-outlet mak
21、er: Epson date: 1-April-2003 Structure of frame (2)pFrames often allowed slots to contain procedures.n“if-needed” procedures, run when value needednif-added” procedures, run when a value is added (to update rest of data, or inform user).Class and instance framesp(frame) instance: representing” lowes
22、t-level” object; a single object or entityp(frame) class: describes different frames (either instances or classes)pevery instance has an “is-a” link, pointing to its classnpossibly more than one “is-a”Example of frames (1)Frame Name:Properties:BirdColourWingsFliesUnknown2TrueFrame Name:Class:Propert
23、ies:TweetyBirdColourWingsFliesYellow1FalseClass frameInstance frameExample of frames (2)PandaType: AnimalColour: Black and whiteFood: EatFunc: .Name:Height:Age: 0SiblingBambooType: PlantGrowFunc: .Location: Height: 2JennyName: JennyHeight: 1.6Age: 5Sibling: VickyName: VickyHeight: 0.7Age: 1Sibling:
24、Capability of frame representationpAdvantagesnDomain knowledge model reflected directlynSupport default reasoningnEfficientnSupport procedural knowledgepDisadvantagesnLack of semanticsnExpressive limitationsScripts for KRpRather similar to frames: uses inheritance and slots; describes stereotypical
25、knowledge, (i.e. if the system isnt told some detail of whats going on, it assumes the default information is true), but concerned with events.pSomewhat out of the mainstream of expert systems work. More a development of natural-language-processing research. Definition of scriptspA script is a remem
26、bered precedent, consisting of tightly coupled, expectation-suggesting primitive-action and state-change frames Winston, 1992pA script is a structured representation describing a stereotyped sequence of events in a particular context Luger, Stubblefield,1998Why scripts? (1)pBecause real-world events
27、 do follow stereotyped patterns. Human beings use previous experiences to understand verbal accounts; computers can use scripts instead.pBecause people, when relating events, do leave large amounts of assumed detail out of their accounts. People dont find it easy to converse with a system that cant
28、fill in missing conversational detailWhy scripts? (2)pScripts predict unobserved events.pScripts can build a coherent account from disjointed observations.pApplicationsnThis sort of knowledge representation has been used in intelligent front-ends, for systems whose users are not computer specialists. nIt has been employed in story-understanding and news-report-understanding systems.Components of ScriptspScript namenEntry conditions:nRolesnPropsnScene 1nScene 2nnResultsScript: resta
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【 生物 】进化与生物多样性教学课件-2025-2026学年人教版生物八年级下册
- 巨结肠术后康复
- 皮肤撕脱伤护理
- 肺癌手术康复课
- 2024北京高三一模地理汇编:自然地理1
- 2024届高考仿真卷数学试卷含解析 (一)
- 2023年湖南省双峰高考数学二模试卷含解析
- 2023年国家电网招聘之财务会计类每日一练试卷B卷含答案
- 2023年教师资格之中学美术学科知识与教学能力模拟考试试卷A卷含答案
- 2023年社会工作师考试社会工作法规与政策(中级)真题
- 融媒体技术与运营试题及答案
- 杜甫草堂介绍
- 高支模支架与周边结构拉结技术专题
- 国家职业标准 6-11-01-03 化工总控工S (2025年版)
- 2025年中国低压差(LDO)线性稳压器市场调查研究报告
- 2025年北京市东城区高三一模数学试卷(含答案)
- 幼儿园防蚊灭蚊课件图片
- 2024届高考模拟作文“突破认知局限创造辉煌人生”导写及范文5篇
- 离散数学(第三版)陈建明-刘国荣课后习题答案
- 《经济与社会》韦伯
- 医师定期考核人文医学考试题库500题(含参考答案)
评论
0/150
提交评论