Controlled Languages for Knowledge Representation in FOL.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

SWG Strategy (C) Copyright IBM Corp. 2006, All Rights Reserved. P4 Task 2 Fact Extraction using a CNL Current Status David Mott, Dave Braines, ETS,
Computational Semantics Aljoscha Burchardt, Alexander Koller, Stephan Walter, Universität des Saarlandes,
Logic Programming Automated Reasoning in practice.
First-Order Logic (and beyond)
Introducing Formal Methods, Module 1, Version 1.1, Oct., Formal Specification and Analytical Verification L 5.
Learning by Reading Micah Clark & Selmer Bringsjord Rensselaer AI & Reasoning (RAIR) Laboratory Department of Cognitive Science Department of Computer.
Knowledge Representation. Essential to artificial intelligence are methods of representing knowledge. A number of methods have been developed, including:
Knowledge Representation Methods
Section 4: Language and Intelligence Overview Instructor: Sandiway Fong Department of Linguistics Department of Computer Science.
Research topics Semantic Web - Spring 2007 Computer Engineering Department Sharif University of Technology.
Artificial Intelligence Modal Logic
Introduction to Computational Linguistics Lecture 2.
Introduction to Semantics To be able to reason about the meanings of utterances, we need to have ways of representing the meanings of utterances. A formal.
9/28/98 Prof. Richard Fikes First-Order Logic Knowledge Interchange Format (KIF) Computer Science Department Stanford University CS222 Fall 1998.
The Semantic Web Week 1 Module Content + Assessment Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
Let remember from the previous lesson what is Knowledge representation
11/8/20051 Ontology Translation on the Semantic Web D. Dou, D. McDermott, P. Qi Computer Science, Yale University Presented by Z. Chen CIS 607 SII, Week.
Slides 00 1 Advanced Logics Part 1: Lambda Calculus and Type Theory Lecturer: Lim Yohanes Stefanus Part 2: Modal Logic Lecturer: Gregory Wheeler.
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.
February 2009Introduction to Semantics1 Logic, Representation and Inference Introduction to Semantics What is semantics for? Role of FOL Montague Approach.
GRAMMAR APPROACH By: Katherine Marzán Concepción EDUC 413 Prof. Evelyn Lugo.
Intro to Discrete Structures
TRANSLATOR: A TRANSlator from LAnguage TO Rules David Hirtle David R. Cheriton School of Computer Science University of Waterloo (Work done at the University.
Shallow “Learning by Reading” In Slate Need either transition section from Selmer to Micah, or Title slide plus not-crappy title!
Artificial Intelligence Dr. Paul Wagner Department of Computer Science University of Wisconsin – Eau Claire.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
© British Council, All rights reserved. Language Awareness in the Primary Classroom An ELIS WSA-EC course, under licence from British Council Session.
Knowledge representation
© 2006 SOUTH-WESTERN EDUCATIONAL PUBLISHING 11th Edition Hulbert & Miller Effective English for Colleges Chapter 9 SENTENCES: ELEMENTS, TYPES, AND STRUCTURES.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
updated CmpE 583 Fall 2008 Ontology Integration- 1 CmpE 583- Web Semantics: Theory and Practice ONTOLOGY INTEGRATION Atilla ELÇİ Computer.
Copy right 2003 Adam Pease permission to copy granted so long as slides and this notice are not altered Language to Logic Translation.
Introduction to Linguistics Ms. Suha Jawabreh Lecture # 2.
Interpreting Language (with Logic)
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Grammars Grammars can get quite complex, but are essential. Syntax: the form of the text that is valid Semantics: the meaning of the form – Sometimes semantics.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
Attempto Controlled English Norbert Fuchs et al. Dept CS, Univ Zurich, Switzerland as (mis-)interpreted by Peter Clark.
Curry A Tasty dish? Haskell Curry!. Curried Functions Currying is a functional programming technique that takes a function of N arguments and produces.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Knowledge Structure Vijay Meena ( ) Gaurav Meena ( )
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Copy right 2004 Adam Pease permission to copy granted so long as slides and this notice are not altered Ontology Overview Introduction.
Discrete Mathematics Lecture # 1. Course Objectives  Express statements with the precision of formal logic.  Analyze arguments to test their validity.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
NATURAL LANGUAGE PROCESSING
Jean-Yves Le Meur - CERN Geneva Switzerland - GL'99 Conference 1.
Welcome to the flashcards tool for ‘The Study of Language, 5 th edition’, Chapter 8 This is designed as a simple supplementary resource for this textbook,
Writing 2 ENG 221 Norah AlFayez. Lecture Contents Revision of Writing 1. Introduction to basic grammar. Parts of speech. Parts of sentences. Subordinate.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Controlled Languages Artificial languages built by simplifying the grammar and reducing the number of words in the language to avoid ambiguity or complexity.
Chapter 7. Propositional and Predicate Logic
Ontology From Wikipedia, the free encyclopedia
TA : Mubarakah Otbi, Duaa al Ofi , Huda al Hakami
Chapter 7. Propositional and Predicate Logic
Introduction to Computational Linguistics
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Controlled Languages for Knowledge Representation in FOL

Motivation: Translate (contrived) English into FOL without solving NLU.

Natural English Controlled English MOCL English T-Complete Formalisms FOL Spec. Lang. L-CL

Commonly Referenced L-CLs: Controlled Language for Inference Purposes (CLIP) [Sukkarieh2003] Controlled English to Logic Translation (CELT) [PeaseMurray2003] Attempto Controlled English (ACE) [FuchsSchwertelSchwitter1999] Processable English (PENG) [Schwitter2002] Common Logic Controlled English (CLCE)[Sowa2004] Several Others (not considered here)

RepresentationKIF SupportTool Support CLIPMcLogicNoMaybe CELTDRSYESMaybe ACEDRS?Yes PENGDRSNo?Yes CLCE?YesNo

CLIP Attributes: McLogic [McAllesterGivan1992] Montagovian syntax (Richard Montague ) Syllogistic Reasoning Criticisms: Lots of inference rules (34) including both forward and backwards chaining Each new language construct can introduce new inference rules

Schubert’s Steamroller in McLogic Every wolf in an animal. Every fox is an animal. Every bird is an animal. Every caterpillar is an animal. Every snail is an animal. Some wolf exists. Some fox exists. Some bird exists. Some caterpillar exists. Some snail exists. Every grain is a plant. Some grain exists. Every caterpillar is smaller than every bird. Every snail is smaller than every bird. Every bird is smaller than every fox. Every fox is smaller than every wolf. It is not true that some wolf eats some fox. It is not true that some wolf eats some grain. Every bird eats every caterpillar. It is not true that some bird eats some snail. Every caterpillar eats some plant. Every snail eats some plant. Every animal X eats every plant or every animal that is smaller than X and eats some plant. (every, wolf, animal). (every, fox, animal). … (some, wolf, exists). … (every, caterpillar, (smaller-than, (every, bird))). … (not, (some, wolf, (eat, (some, fox)))). … (every, animal, (eat, (every, plant)) $LAMBDA(X, (every, X, (eat, (every, animal + ((smaller-than, (some, X)) + (eat, (some, plant)))))))) [SukkariehPulman1999]

CELT Ostensibly KIF plus ACE (minus a few features) coupled with WordNet and SUMO “WordNet provides a very large initial vocabulary and CELT automates the process of mapping sentences with terms from WordNet to their more formal representations in KIF formulas and the Standard Upper Merged Ontology.” [PeaseMurray2003] Also mapped to PhaseBank [ PeaseFellbaum2004 ]

CELT KIF Example John eats every hamburger that he sees. He observes a hamburger at Wendys. [PeaseMurray2003] (and (instance John-1 CognitiveAgent) (attribute John-1 Male) (attribute John-1 FullyFormed) (instance John-1 Human) (exists (?event4 ) (forall (?hamburger ?event13) (=> (and (instance ?hamburger Food) (patient ?event13 ?hamburger) (instance ?hamburger Physical) (experiencer ?event13 John-1) (instance ?event13 Seeing)) (and (instance ?event4 Eating) (agent ?event4 John-1) (patient ?event4 ?hamburger))))) (exists (?event 17 ?hamburger21) (instance ?event17 Seeing) (experiencer ?event17 John-1) (instance ?hamburger21 Food) (patient ?event17 ?hamburger21) (instance Wendys_Burger_Store Building) (located ?event17 Wendys_Burger_Store)))

PENG Also ostensibly ACE (minus a few features) Has a nice editor ECOLE (unification-based grammar formalism) Schwitter was a major contributor to ACE Schwitter also investigates techniques to convert English into Controlled English

ACE Predefined Function words –determiners, –Prepositions, –Conjunctions, … User-defined content words –nouns, –verbs, –adjectives, … Construction Rules Interpretation Rules Unification-based Phase Structure Grammar Single unambiguous semantic interpretation (even if the English seems ambiguous)

Simple ACE Sentences subject + verb + complements + adjuncts A new customer inserts 2 valid cards. John’s customer inserts a card of Mary. The customer Mr Miller inserts a card A. A customer who is new inserts a card that he owns. A customer inserts some cards manually. A customer manually inserts not more than 2 cards. A customer inserts a card into a slot. John’s customer who is new inserts a valid card of Mary manually into a slot A. [???]

Composite ACE Sentences Recursively built from simple sentences using: Coordination (and, or): A customer inserts 2 cards and the machine checks their codes. Subordination (who, which, that): A customer who is new inserts a card that he owns. Quantification: Every customer inserts a card. Negation: No customer inserts more than 2 cards. [???]

ACE Interpretation Rules The customer inserts a card with a code. Rule: A prepositional phrase always modifies the verb. Interpretation: The customer {inserts a card with a code}. The customer inserts a card that carries a code. Rule: A relative sentence always modifies the immediately preceding noun phrase. Interpretation: The customer inserts {a card that carries a code}.

ACE and DRS Every company that buys a standard machine gets a discount. A British company buys a standard machine. paragraph( drs([A,B,C],[drs([D,E,F],[object(D,company)-1,structure(D,atomic)-1, object(E,machine)-1, structure(E,atomic)-1, property(E,standard)-1, predicate(F,event,buy,D,E)-1]) => drs([G,H],[object(G,discount)-1, structure(G,atomic)-1, predicate(H,event,get,D,G)-1]), object(A,company)-2, structure(A,atomic)-2, property(A,'British')-2, object(B,machine)-2, structure(B,atomic)-2, property(B,standard)-2, predicate(C,event,buy,A,B)-2]), text(['Every company that buys a standard machine gets a discount.', 'A British company buys a standard machine.'])) [FuchsSchwertel2003]

ACE Future Work Fixed Modal Phrases can, cannot, must, must not, is/does always, is/does never

CLCE Strong ties to CL, KIF and CGIF Little information available (not a single published work on CLCE) Grammar Specification is incomplete No Parser publicly available but the claim is: “Under the assumption that all words, names, and variables are declared explicitly or implicitly before their first use, the translation of any CLCE text to FOL can be performed in a single pass by a context-free parser augmented with two symbol tables” [Sowa2004]

CLCE Grammar Sentences –Simple, Complex, Compound –Declarative, Interrogative, Imperative –Extended Sentences (ie. Paragraphs)

CLCE Grammar Reserved Words: Boolean operators: not, and, either, or, neither, nor, if, then. Quantifiers: a, an, some, something, someone, every, everything, everyone, no, nothing, no one. Special verbs: is, has, have, does. Interrogatives: who, what, when, where, which. Relative pronoun: that. Definite article: the. List connector: and. Special lists: none, others, nothing else, no one else. Argument markers: of, than, as. Special phrases: there is, such that, only if, if and only if, it is false that, is it true that.

CLCE Example CLCE: Every ancestor of a person x is either a parent of x or a parent of an ancestor of x. FOL: (  y)~(  x:Person)(Ancestor(y,x)  ~(Parent(y,x)  (  z)(Parent(y,z)  Ancestor(z,x)))) CGIF: [(Ancestor [Either: [Or: (Parent ?y ?x)] [Or: (Parent ?y [*z]) (Ancestor ?z ?x)]]

Commonly Cited Books: L. M. Iwanska and S. C. Schapiro (eds). Natural Language Processing and Knowledge Representation. AAAI Press H. Kamp and U. Reyle. From Discourse to Logic, Introduction to Modeltheoretic Semantics of Natural Language, Formal Logic and Discourse Representation Theory P. Blackburn and J. Bos. Representation and Inference for Natural Language: A First Course in Computational Semantics P. Blackburn and J. Bos. Working with Discourse Representation Theory: An Advanced Course in Computational Semantics. Forthcoming.

References Sukkarieh. Mind your Language! Controlled Language for Inference Purposes. Controlled Language Application Workshop (CLAW2003). Dublin, Ireland J. Sukkarieh and S. G. Pulman. Computer Processable English and McLogic. In Proceedings of the Third International Workshop on Computational Semantics, Tilburg, The Netherlands D. McAllester, R. Givan, and S. Shalaby. Natural Language Syntax and First Order Inference. Artificial Intelligence. 56: A. Pease and W. Murray. An English to Logic Translator for Ontology-based Knowledge Representation Languages. In IEEE International Conference on Natural Language Processing and Knowledge Engineering. Beijing, China A. Pease and C. Fellbaum. Language to Logic Translation with PhraseBank. Second International WordNet Conference (GWC2004) N. E. Fuchs, U. Schwertel, R. Schwitter. Attempto Controlled English (ACE) Language Manual, Version 3.0, Technical Report Department of Computer Science, University of Zurich, August R. Schwitter. English as a Formal Specification Language. Proceedings of the Thirteenth International Workshop on Database and Expert Systems Applications (DEXA 2002), W04: Third International Workshop on Natural Language and Information Systems - NLIS, 2-6 September 2002, Aix-en-Provence, France, pp , N. E. Fuchs, U. Schwertel. Reasoning in Attempto Controlled English. In Principles and Practice of Semantic Web Reasoning, International Workshop PPSWR 2003 Lecture Notes in Computer Science Springer Verlag J. F. Sowa. Common Logic Controlled English (CLCE)

Backup Material

History of Controlled Languages

Birth of CL [1920s & 30s] Motivation: “The search for a common scientific language … when Latin stopped serving that purpose.” [Sukkarieh2003] Notable CLs: Esperanto British American Scientific International Commercial (BASIC) English

Growth of CL [1970s & 80s] Motivation: Improve readability of technical writing (manuals) especially for those knowing little English. Notable CLs: Caterpillar Fundamental English (CFE) Douglas Aircraft Simplified English AECMA Simplified Technical English (SE)

Present Day CL [1990s – present] Motivation: Simplify written communication Decrease ambiguity Enable translation

Present Day CL [1990s – present] Notable CLs: International Language of Service and Maintenance (ILSAM) Bull Global English Perkins/Univ. Edinburgh PACE GIFAS Rationalized French General Motors Global English Securities and Exchange Commission (SEC) Plain English Controlled Spanish Caterpillar Technical English (CTE) Attempto Controlled English (ACE) Alcatel COGRAM Xerox Multilingual Customized English Kodak International Service Language IBM Easy English General Motors Controlled Automotive Service Language (CASL) ProLingua LinguaNet Diebold Controlled English Scania Swedish Nortel Standard English (NSE) Sun Controlled English Oracle ORACAL [Allen2004]

2 Axis Continuum for CLs Axis 1 HOCL –Human-Oriented Controlled Language [Huijsen1998] –improves readability and comprehensibility CPCL (MOCL) –Computer Processable Controlled Language [Pulman1996] –Machine-Oriented Controlled Language –Improves translatability Axis 2 Monolingual –Single CL (or several related by core rules) Multilingual –Multi CLs via machine-oriented translation processing techniques

References Sukkarieh. Mind your Language! Controlled Language for Inference Purposes. Controlled Language Application Workshop (CLAW2003). Dublin, Ireland Jeffrey Allen and Kathleen Barthe. Introductory overview of Controlled Languages. Invited talk presented at the Society for Technical Communication meeting of the Paris, France chapter. Paris, France Willem-Olaf Huijsen. Controlled Language – An Introduction. Controlled Language Application Workshop (CLAW1998). Pittsburgh, PA Pulman. Controlled Language for Knowledge Representation. Controlled Language Application Workshop (CLAW1996). Leuven, Belgium