版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026湖南张家界市永定区大庸桥街道办事处招聘公益性岗位工作人员1人笔试备考试题及答案解析
- 4.7.4选择健康的生活方式教学设计-2025-2026学年人教版2024八年级上册生物
- 2026年安徽省合肥市外企德科安徽派驻蜀山区公立幼儿园多名工勤岗位招笔试备考试题及答案解析
- 2026东部机场集团有限公司子企业市场化选聘职业经理人1人(江苏)笔试备考试题及答案解析
- 2026吉林省彩虹人才开发咨询服务有限公司招聘劳务派遣制岗位工作人员268人笔试备考题库及答案解析
- 2026山东杰出人才发展集团招聘工作人员1人笔试备考题库及答案解析
- 2026年吐鲁番职业技术学院高职单招职业适应性测试模拟试题及答案详细解析
- 2026中华人民共和国沧源海关招聘5人(云南)笔试备考题库及答案解析
- 2026福建泉州惠安县涂寨中心幼儿园春季招聘自聘教师1人笔试备考题库及答案解析
- 2026福建厦门实验中学招聘顶岗教师的1人笔试备考试题及答案解析
- 2026湖南衡阳日报社招聘事业单位人员16人备考题库含答案详解
- 2026时政试卷含答案
- CJ/T 3070-1999城市用水分类标准
- 企业管理人员法治培训
- 污水处理厂工程监理工作总结
- 合作框架协议书模板2024年
- 膝痹中医护理方案效果总结分析报告
- 面向行业重大需求构建和实践地质学多元化人才培养体系
- 丧假证明模板
- 有机光电材料与器件
- 慢性肾病与复方α-酮酸片(科罗迪)
评论
0/150
提交评论