Multi-Contextual Knowledge Base and Inference Engine

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing Semantics (Chapter 17) Muhammed Al-Mulhem March 1, 2009.
Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
Copyright © 2002 Cycorp Introduction Fundamental Expression Types Top Level Collections Time and Dates Spatial Properties and Relations Event Types Information.
Introducing Formal Methods, Module 1, Version 1.1, Oct., Formal Specification and Analytical Verification L 5.
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
27 January Semantically Coordinated E-Market Semantic Web Term Project Prepared by Melike Şah 27 January 2005.
Proceedings of the Conference on Intelligent Text Processing and Computational Linguistics (CICLing-2007) Learning for Semantic Parsing Advisor: Hsin-His.
Reasoning Forward and Backward Chaining Andrew Diniz da Costa
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
CPSC 322 Introduction to Artificial Intelligence September 15, 2004.
Copyright © 2002 Cycorp Why use logic? CycL Syntax Collections and Individuals (#$isa and #$genls) Microtheories Foundations of Knowledge Representation.
Copyright © 2002 Cycorp Why use logic? CycL Syntax Collections and Individuals (#$isa and #$genls) Microtheories Foundations of Knowledge Representation.
Overview of Cyc Tom O'Hara NMSU AI Seminar 18 February 2002.
1 CIS607, Fall 2005 Semantic Information Integration Instructor/Organizer: Dejing Dou Week 1 (Sept. 28)
Natural Language Processing AI - Weeks 19 & 20 Natural Language Processing Lee McCluskey, room 2/07
Input Validation For Free Text Fields ADD Project Members: Hagar Offer & Ran Mor Academic Advisor: Dr Gera Weiss Technical Advisors: Raffi Lipkin & Nadav.
1 Information Retrieval and Extraction 資訊檢索與擷取 Chia-Hui Chang, Assistant Professor Dept. of Computer Science & Information Engineering National Central.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Chapter 1 Program Design
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
CYC: The Common Sense Knowledge Base By: Jeremy Berman Alok Sahgal Dr. Reed CSC 550.
ANSWERING CONTROLLED NATURAL LANGUAGE QUERIES USING ANSWER SET PROGRAMMING Syeed Ibn Faiz.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2005 Lecture 1 21 July 2005.
MDC Open Information Model West Virginia University CS486 Presentation Feb 18, 2000 Lijian Liu (OIM:
Artificial Intelligence What’s Possible, What’s Not, How Do We Move Forward? Adam Cheyer Co-Founder, VP Engineering Siri Inc.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
CSCI 4410 Introduction to Artificial Intelligence.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
QUIRK: QUestion Answering = Information Retrieval + Knowledge Cycorp IBM Presenter: Stefano Bertolo (Cycorp)
Parser-Driven Games Tool programming © Allan C. Milne Abertay University v
Author: William Tunstall-Pedoe Presenter: Bahareh Sarrafzadeh CS 886 Spring 2015.
Artificial intelligence project
Artificial Intelligence
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
RELATIONAL FAULT TOLERANT INTERFACE TO HETEROGENEOUS DISTRIBUTED DATABASES Prof. Osama Abulnaja Afraa Khalifah
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Searching for Common Sense: Populating Cyc from the Web Presented by Yu-Chung Shen 2007/05/03.
An Intelligent Analyzer and Understander of English Yorick Wilks 1975, ACM.
Natural Language Generation Eric Clark CSC
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Srihari Sadagoparamanujam. Agenda IntroductionCharacteristicsCYC.
Unit-1 Introduction Prepared by: Prof. Harish I Rathod
Next Generation Search Engines Ehsun Daroodi 1 Feb, 2003.
QUIRK:Project Progress Report December Cycorp IBM.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Volgograd State Technical University Applied Computational Linguistic Society Undergraduate and post-graduate scientific researches under the direction.
Problems with XML & XML Schemas XML falls apart on the Scalability design goal. 1.The order in which elements appear in an XML document is significant.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
MIT Artificial Intelligence Laboratory — Research Directions The START Information Access System Boris Katz
Cyc Jaehui Park Summarized by Jaehui Park, IDS Lab., Seoul National University Presented by Jaehui Park, IDS Lab., Seoul National University.
Artificial Intelligence Logical Agents Chapter 7.
CYC: The Common Sense Knowledge Base
CSCI-235 Micro-Computer Applications
Kenneth Baclawski et. al. PSB /11/7 Sa-Im Shin
Architecture Components
Survey of Knowledge Base Content
Chapter 15 QUERY EXECUTION.
Patrick McCauley CMSC 691S - Semantic Web Spring 2009
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
CS246: Information Retrieval
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Multi-Contextual Knowledge Base and Inference Engine OpenCyc Aruna Weerakoon CSCI 8986: Natural Language Understanding Fall - 2012

Outline Introduction (What is Cyc?) The Cyc Technology (What’s in Cyc?) The Cyc Knowledgebase The Cyc Inference Engine The CycL Representation Language The Natural Language Processing Subsystem Cyc Semantic Integration Bus Cyc Developer Toolsets Cyc Reasoning System Applications Cyc in RTE Mention: few examples for existing game-based systems.

What people say…  ”Cyc has not only the world's largest knowledge base, but the best represented from a technical  point of view."  ~ Edward Feigenbaum  "The scale of the Cyc Project  elicits awe-struck appreciation from supporters and critics alike.“ ~ L.A. Times Mention: few examples for existing game-based systems. "People have silly reasons why computers don't really think. The answer is we haven't  programmed them right; they just don't have much common sense. There's been only one large project to do something about that, that's the famous Cyc project.“ ~ Marvin Minsky, MIT

What is Cyc? Very large, multi-contextual knowledge base and inference engine. Founded in 1984 by Stanford professor Doug Lenat (president and founder of the Cycorp, Inc.). What is the objective of Cyc? to assemble an comprehensive ontology and Knowledge Base of common sense knowledge. to codify, in machine-usable form, millions of pieces of knowledge that comprise human common sense. Example: “Every tree is a plant” && “Plants eventually die” from which we can infer “All trees die”. Mention: few examples for existing game-based systems.

What’s in Cyc? The Cyc technology is made of the following components. The Cyc Knowledgebase The Cyc Inference Engine The CycL Representation Language The Natural Language Processing Subsystem Cyc Semantic Integration Bus Cyc Developer Toolsets

The Cyc Knowledgebase A formalized representation of a vast quantity of fundamental human knowledge : facts, rules, common sense, etc. Primarily the knowledgebase(KB) consists of a collection of terms and assertions written in Cyc’s logical language, CycL. Assertions include both simple ground assertions and rules which relate the terms in the collection. The Cyc KB is divided into many “microtheories(contexts)”. A microtheory is a way of grouping assertions and rules which share a set of assumptions; about a domain, level of detail, period in time, source, topic, etc. Ground assertion – CycL formulas with no variables Rule – CycL formulas wit variables

The Cyc KB (Cont.) Why Microtheory? Maintains local consistency. Example: Reduces the search space. Speed up the inference process. CHILD: Who is Dracula, Dad? FATHER: A vampire. CHILD: Are there really vampires? FATHER: No, vampires don’t exist.

The Cyc KB (Cont.) Cyc KB is being created to hold information that most people would consider to be common sense knowledge. The idea is to create a KB that would supply the basic knowledge needed to be applicable to many different applications. By building a KB with this general knowledge, it is hoped that the KB will be able to learn by itself and be able to tell when it does not have enough information in a particular domain to resolve a problem.

The Cyc Inference Engine An Inference engine is a computer program that tries to derive answers from a knowledge base.  The CYC inference engine performs general logical deduction (including modus ponens, modus tollens, and universal and existential quantification) Uses microtheories to optimize inferencing by restricting search domains. Includes several special-purpose inferencing modules for handling a few specific classes of inference. Examples: quality reasoning, temporal reasoning, mathematical reasoning.

The CycL Representation Language Constants (prefix: #$) Some thing or concept in the world that many people know about and/or that most could understand. Examples: #$MapleTree, #$BarackO, #$massOfObject Variables Case-insensitive identifier prefixes with ?. Examples: ?X, ?Y, ?TYPE Predicates Terms that represent relation types defined in the KB Examples: #$isa, #$genls, #$maritalStatus

CycL (Cont.) Formulas Logical connectors Quantifiers An expression of the form (predicate arg1 arg2 …) Examples: (#$isa #$Dog #$BiologicalSpecies) (#$genls #$Dog #$Carnivore) (#$maritalStatus #$BillClinton #$Married) (#$colorOfObject ?CAR ?COLOR) Logical connectors Examples: not, and, or, implies (#$and (#$colorOfObject #$FredsBike #$RedColor) (#$objectFoundInLocation #$FredsBike #$FredsGarage)) Quantifiers Examples: forAll, thereExists #$forAll takes two arguments, a variable and a formula in which the variable appears. (#$forAll ?X (#$implies (#$owns #$Fred ?X) (#$objectFoundInLocation ?X #$FredsHouse)))

The Natural Language Processing Subsystem Consider the following pair of sentences: Fred saw the plane flying over Zurich. Fred saw the mountains flying over Zurich. Cyc “knows” that: Planes fly. People fly in planes. Mountains do not fly. Zurich is a city.

Cyc-NL System(Cont.) The Cyc’s-NL system has three components. The Lexicon The Syntactic Parser The Semantic Interpreter Backbone of the NL system. Contains syntactic and semantic information about English words. Each word is represented as a Cyc constant. When Cyc-NL processes an input sentence it first checks the lexicon to assign possible POS es.

Cyc-NL System(Cont.) The Syntactic parser Using a number of rules, the parser builds tree-structures, bottom-up, over the input string. The parser outputs all trees allowed by the rule system, so multiple parses are possible in cases of syntactic ambiguity. Example: In the first tree, the prepositional phrase "with a telescope" attaches to the verb phrase In the second tree, the prepositional phrase attaches to the noun phrase, corresponding to the interpretation "John saw the light which had a telescope".

Cyc-NL System(Cont.) The Semantic Interpreter Cyc-NL’s semantic component transforms syntactic parser into CycL formulas. The output of the semantic component is pure CycL. Therefore, A parsed sentence can immediately be asserted in to the KB, A parsed question can be presented to the SQL generator in order to pose a database query. For each syntactic rule, there is a corresponding semantic procedure which applies. Cyc-NL's clausal semantics is basically "verb-driven". Verbs are stored in the lexicon with "templates" for their translation into CycL. For example, the template for "believe" when followed by a that-clause might look like this: (#$believes :SUBJECT :CLAUSE).

Cyc Semantic Integration Bus

Developer Toolsets The Cyc system also includes a variety of interface tools that permit the user to browse, edit, and extend the Cyc KB, to pose queries to the inference engine, and to interact with the natural-language. The most commonly-used tool, Cyc’s HTML browser, allows the user to view the KB in a hypertexty way and database integration modules. HTML pages describing Cyc terms are generated on the fly by the Cyc system. Each page describes a Cyc term by showing all the assertions in which it is involved, organized according to a standard schema.

(with Natural Language Dialog) Cyc Reasoning System Knowledge Users User Interface (with Natural Language Dialog) Knowledge Authors Other Applications Knowledge Entry Tools Cyc API Cyc Reasoning Modules Cyc Ontology & Knowledge Base Interface to External Data Sources External Data Sources Data Bases Web Pages Text Sources Other KBs

Cyc in RTE

References [1] Cyc 101 Tutorial. Cycorp Corporation, http://opencyc.org/doc/tut, 2002. [2] About cycorp. Webpage, Cycorp Corporation, http://cyc.com/cyc/company/about [3] Cycorp. Foundations of knowledge representation in cyc microtheories. In Cyc 101 Tutorial. Cycorp Corporation, http://www.cyc.com/doc/tut/ppoint/Microtheories les/v3 document.htm, 2002. [4] Cycorp. Survey of knowledge base content. In Cyc 101 Tutorial. Cycorp Corporation, http://www.cyc.com/doc/tut/ppoint/MoreContentAreas les/v3 document.htm, 2002. [5] Cycorp. Technical report, Cyc.com, http://www.cyc.com, 2012. [6] OpenCyc. Webpage, OpenCyc.org, http://www.opencyc.org, 2012. [7] Panton K. et al., Common Sense Reasoning – From Cyc to Intelligent Assistant, 2006. [8] OpenCyc. Opencyc documentation. Technical report, OpenCyc.org, http://opencyc.org/doc, 2012. [9] OpenCyc. Opencyc introduction. Technical report, OpenCyc.org, http://www.opencyc.org/cb/welcome, 2012. [10] OpenCyc. Opencyc java api. Technical report, OpenCyc.org, http://www.cyc.com/doc/opencyc api/java api/, 2012. [11] Buntain C., The Cyc Knowledge Server CMSC828D Report 1, Department Computer Science, University of Maryland, 2012. [12] Cox C., Getting Cyc-ed About Inference, Stanford Univerisity.

Q & A ~Thank you ~