Explanation Producing Combination of NLP and Logical Reasoning through Translation of Text to KR Formalisms CHITTA BARAL ARIZONA STATE UNIVERSITY 1 School.

Slides:



Advertisements
Similar presentations
Pat Langley Computational Learning Laboratory Center for the Study of Language and Information Stanford University, Stanford, California
Advertisements

Mitsunori Ogihara Center for Computational Science
The 20th International Conference on Software Engineering and Knowledge Engineering (SEKE2008) Department of Electrical and Computer Engineering
Computational language: week 10 Lexical Knowledge Representation concluded Syntax-based computational language Sentence structure: syntax Context free.
CILC2011 A framework for structured knowledge extraction and representation from natural language via deep sentence analysis Stefania Costantini Niva Florio.
Semantics (Representing Meaning)
Proceedings of the Conference on Intelligent Text Processing and Computational Linguistics (CICLing-2007) Learning for Semantic Parsing Advisor: Hsin-His.
Statistical Methods and Linguistics - Steven Abney Thur. POSTECH Computer Science NLP Lab Shim Jun-Hyuk.
Recognizing Implicit Discourse Relations in the Penn Discourse Treebank Ziheng Lin, Min-Yen Kan, and Hwee Tou Ng Department of Computer Science National.
Robust Textual Inference via Graph Matching Aria Haghighi Andrew Ng Christopher Manning.
Dialogue – Driven Intranet Search Suma Adindla School of Computer Science & Electronic Engineering 8th LANGUAGE & COMPUTATION DAY 2009.
January 12, Statistical NLP: Lecture 2 Introduction to Statistical NLP.
Research topics Semantic Web - Spring 2007 Computer Engineering Department Sharif University of Technology.
Applications Chapter 9, Cimiano Ontology Learning Textbook Presented by Aaron Stewart.
Ontologies and the Semantic Web by Ian Horrocks presented by Thomas Packer 1.
1/27 Semantics Going beyond syntax. 2/27 Semantics Relationship between surface form and meaning What is meaning? Lexical semantics Syntax and semantics.
Shared Ontology for Knowledge Management Atanas Kiryakov, Borislav Popov, Ilian Kitchukov, and Krasimir Angelov Meher Shaikh.
Introduction to CL Session 1: 7/08/2011. What is computational linguistics? Processing natural language text by computers  for practical applications.
Information Retrieval and Extraction 資訊檢索與擷取 Chia-Hui Chang National Central University
March 1, 2009 Dr. Muhammed Al-Mulhem 1 ICS 482 Natural Language Processing INTRODUCTION Muhammed Al-Mulhem March 1, 2009.
Statistical Natural Language Processing. What is NLP?  Natural Language Processing (NLP), or Computational Linguistics, is concerned with theoretical.
ANSWERING CONTROLLED NATURAL LANGUAGE QUERIES USING ANSWER SET PROGRAMMING Syeed Ibn Faiz.
Erasmus University Rotterdam Introduction With the vast amount of information available on the Web, there is an increasing need to structure Web data in.
Logic Programming for Natural Language Processing Menyoung Lee TJHSST Computer Systems Lab Mentor: Matt Parker Analytic Services, Inc.
MASTERS THESIS DEFENSE MASTERS THESIS DEFENSE Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning.
Empirical Methods in Information Extraction Claire Cardie Appeared in AI Magazine, 18:4, Summarized by Seong-Bae Park.
Lecture 12: 22/6/1435 Natural language processing Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
RuleML-2007, Orlando, Florida1 Towards Knowledge Extraction from Weblogs and Rule-based Semantic Querying Xi Bai, Jigui Sun, Haiyan Che, Jin.
“How much context do you need?” An experiment about context size in Interactive Cross-language Question Answering B. Navarro, L. Moreno-Monteagudo, E.
Artificial intelligence project
Interpreting Dictionary Definitions Dan Tecuci May 2002.
Based on “Semi-Supervised Semantic Role Labeling via Structural Alignment” by Furstenau and Lapata, 2011 Advisors: Prof. Michael Elhadad and Mr. Avi Hayoun.
Learning to Transform Natural to Formal Language Presented by Ping Zhang Rohit J. Kate, Yuk Wah Wong, and Raymond J. Mooney.
L’età della parola Giuseppe Attardi Dipartimento di Informatica Università di Pisa ESA SoBigDataPisa, 24 febbraio 2015.
Dimitrios Skoutas Alkis Simitsis
Introduction to CL & NLP CMSC April 1, 2003.
NATURAL LANGUAGE UNDERSTANDING FOR SOFT INFORMATION FUSION Stuart C. Shapiro and Daniel R. Schlegel Department of Computer Science and Engineering Center.
©Ferenc Vajda 1 Semantic Grid Ferenc Vajda Computer and Automation Research Institute Hungarian Academy of Sciences.
Chapter 13 Artificial Intelligence and Expert Systems.
Indirect Supervision Protocols for Learning in Natural Language Processing II. Learning by Inventing Binary Labels This work is supported by DARPA funding.
Artificial Intelligence: Natural Language
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
Natural Language Processing Menu Based Natural Language Interfaces -Kyle Neumeier.
CSE467/567 Computational Linguistics Carl Alphonce Computer Science & Engineering University at Buffalo.
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.
Semantic web Bootstrapping & Annotation Hassan Sayyadi Semantic web research laboratory Computer department Sharif university of.
CPSC 422, Lecture 27Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 27 Nov, 16, 2015.
Commonsense Reasoning in and over Natural Language Hugo Liu, Push Singh Media Laboratory of MIT The 8 th International Conference on Knowledge- Based Intelligent.
AUTONOMOUS REQUIREMENTS SPECIFICATION PROCESSING USING NATURAL LANGUAGE PROCESSING - Vivek Punjabi.
Word classes and part of speech tagging. Slide 1 Outline Why part of speech tagging? Word classes Tag sets and problem definition Automatic approaches.
Semantic Data Extraction for B2B Integration Syntactic-to-Semantic Middleware Bruno Silva 1, Jorge Cardoso 2 1 2
Using Semantic Relations to Improve Information Retrieval
Overview of Statistical NLP IR Group Meeting March 7, 2006.
NATURAL LANGUAGE PROCESSING
Network Management Lecture 13. MACHINE LEARNING TECHNIQUES 2 Dr. Atiq Ahmed Université de Balouchistan.
Rule-based Reasoning in Semantic Text Analysis
Using Winograd Schemas for Evaluation of Implicit Information Extraction Systems Ivan Rygaev, Dialogue 2017 Laboratory of Computational Linguistics Institute.
Knowledge Representation
Linguistic Graph Similarity for News Sentence Searching
Web News Sentence Searching Using Linguistic Graph Similarity
Topics Beyond the imitation game Reading the web Turing test
Semantic Parsing for Question Answering
David W. Embley Brigham Young University Provo, Utah, USA
Eiji Aramaki* Sadao Kurohashi* * University of Tokyo
Automatic Detection of Causal Relations for Question Answering
CS246: Information Retrieval
Knowledge Representation
The Winograd Schema Challenge Hector J. Levesque AAAI, 2011
Habib Ullah qamar Mscs(se)
Presentation transcript:

Explanation Producing Combination of NLP and Logical Reasoning through Translation of Text to KR Formalisms CHITTA BARAL ARIZONA STATE UNIVERSITY 1 School of Computing, Informatics, and Decision Systems Engineering Arizona State University

2 Our Assumptions and Approaches  Shonan Meeting Title: Towards Explanation Production Combining NLP and Logical Reasoning  Broader Goals:  Natural language understanding: Answer questions with respect to natural language text and to able to explain our answer in a logical manner; Build NL interfaces for various systems.  Make “reasoning” (with knowledge) more wide spread in intelligent systems: a big bottleneck is knowledge acquisition.  Methodology: Translate natural language (both question and text) to Knowledge Representation formalisms and follow it up with reasoning, interfacing etc.  Two Approaches  NL2KR: Developed an NL2KR platform that can be used to translate NL text to formal representation of choice via training.  Kparser: Developed a Knowledge Parser that translates text to a collection of triplets (RDF style). School of Computing, Informatics, and Decision Systems Engineering Arizona State University Explanation Producing Combination of NLP and Logical Reasoning through Translation of Text to KR Formalisms

3 Some Guiding Problems  Winograd Schema Challenge (Kparser)  Natural Language Interfaces to various systems (NL2KR)  Geoquery  Clang – Robocup command language  Datanet policy generation  Solving logic puzzles described in English (NL2KR) School of Computing, Informatics, and Decision Systems Engineering Arizona State University Explanation Producing Combination of NLP and Logical Reasoning through Translation of Text to KR Formalisms

The town councilors refused to give the demonstrators a permit because they feared violence. Who feared violence? The town councilors refused to give the demonstrators a permit because they advocated violence Who advocated violence? 4  Contains a pair of sentences that differ in only one or two words  The sentences contain an ambiguity that is resolved in opposite ways in the two sentences  Requires the use of world knowledge and reasoning for its resolution School of Computing, Informatics, and Decision Systems Engineering Arizona State University Winograd Schema Challenge Example

5  A Question Answering test  A Collection of 141 Winograd Schemas.  282 Total Sentences  A Question about each Sentence. School of Computing, Informatics, and Decision Systems Engineering Arizona State University Winograd Schema Challenge The town councilors refused to give the demonstrators a permit because they feared violence. Who feared violence ? The town councilors refused to give the demonstrators a permit because they advocated violence. Who advocated violence? Example

6

School of Computing, Informatics, and Decision Systems Engineering Arizona State University NL2KR Platform 7

The NL2KR Framework A framework to develop translation systems that translate natural language to a wide variety of formal language representations. Inspired by Montague’s approach

Learning Algorithms Inverse Lambda Computes a λ expression F such that H = or H = given H and G. Generalization ◦Learn from syntactically similar words with known meanings. ◦Can learn meanings of words that are not even present in training

NL2KR Architecture

11

12

Kparser and System to address Winograd schema challenge 13

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning The Workflow 14 Given Sentence and Question Answer Automatic Background Knowledge Extractor Logical Reasoning Module Background Sentence Semantic Representation of the Sentence and question Semantic Representation of the Background Sentence Pronoun Extractor Semantic Parser Pronoun to Be Resolved

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Semantic Parser & Pronoun Extractor 15

A system which converts an English text to a formal representation. An attempt to overcome challenges in representation. WHAT IS K-PARSER ? “John loves the smell of daisies”

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Semantic Parser: initial version Represent text into an Expressive Formal Representation Preserve Grammatical Structure Syntactic Dependency Parse Disambiguate words Ontology (WordNet) Uses General Set of Relations Knowledge Machine (KM) Slot Dictionary 17

SYNTACTIC DEPENDENCY PARSE Stanford Dependency Parse of: “The man loves his hat” loves VBZ man NN hat NN his PRP$ The DT det nsubj dobj poss

Knowledge Machine Slot Dictionary Mapping KM Slot dictionary is a set of relations Event-Event relations Event-Entity relations Entity-Entity relations Event-Role relations Entity-Value relations etc. Approx 100 relations Example: agent, recipient, causes,trait etc. We map Stanford Dependency Relations to KM Slot Dictionary

Knowledge Machine Slot Dictionary Mapping Semantic Parse of “The man loves his hat” loves VBZ man NN hat NN his PRP$ agent recipient possessed_by loves VBZ man NN hat NN his PRP$ The DT det nsubj dobj poss KM mapping Stanford Dependency Parse Graph Graph obtained after Stanford to KM slots mapping

Ontology Addition Ontology Addition to the Semantic Parse of “Tom loves Mary because Mary loves him”

Kparser Graph Properties Roots: KM relations are represented using directional edge. The nodes with no incoming edge are considered roots. A root can be an event or an entity Other Nodes: Leaf nodes represent classes The nodes with incoming edge instance_of represent the first level of classes. Acquired by using Lemmatization on words Edges: Edges represent KM relations Kparser graph is an acyclic graph

Word Sense Disambiguation WSD used for determining correct superclass of words. Example:- Tom walks slowly (walks has superclass motion)

Named Entity Recognition NER is used to get correct superclass of named entities. Example: John loves Mia (John and Mia are NE, hence the superclass person)

Semantic Roles of Entities We label the agent and recipients of verbs with their semantic roles extracted from Propbank frame sets

Representing Quantifiers Represents quantifiers like “every” and “a” Every boxer walksA boxer walks

Co-reference Resolution An option for co-reference resolution Example:Fish ate the worm because it was tasty

28

29

30

31

32

33

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor 34

35 The Idea is, to learn the usage of English words and the contexts in which they are used School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor  Creating query by using formal representation of the given sentence and the question  Extracting background knowledge sentences from a big source of raw text That is done by,

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor Creating Queries The man could not lift his son because he was so weak. Who was weak ? Query Set 1 (Q1): “.*not.*lift.*because.*weak.*” “.*not.*lift.*because.*so.*weak.*”  Use semantic graph of the given sentence and the question  Trace all nodes of the question into the given sentence (except “Wh” nodes)  Extract semantically important words (except entities)  Also consider the connective words  Combine the words in their order of occurrence in the sentence and join them using wildcard (.*) and quotes (“”) 36

37  Using big source of raw text  Use search engine School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor Extracting Background Knowledge Sentences

38  Two ways in which sentences are extracted from WWW  Example Query: “.*not.*lift.*because.*weak.*” School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor Extracting Background Knowledge Sentences

39  Filtering the extracted sentences  Should not contain the original sentence  Should contain all the words in the query (in any form)  Should not contain partial sentences School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor Extracting Background Knowledge Sentences The man could not lift his son because he was so weak. Query: “.*not.*lift.*because.*weak.*” Filtered sentences:  She could not lift it off the floor because she is a weak girl  She could not even lift her head because she was so weak  I could not even lift my leg to turn over because the muscles were weak after surgery  …..

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Automatic Background Knowledge Extractor Parsing the Background Sentences 40 She could not lift it off the floor because she is a weak girl

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Logical Reasoning Engine 41

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Logical Reasoning Engine Given Sentence Logical Reasoning Engine (ASP Rules) Answer Background Knowledge Sentence Background Knowledge Sentences 42 Pronoun

43  Answer Set Programming  Represent the Semantic Representation of the Given Sentence and the Background sentence in ASP predicates  Use ASP Reasoning Rules School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Logical Reasoning Engine

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning System Evaluation & Error Analysis 44

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning System Evaluation 45  Total 282 sentences in WSC  Causal category has >200  Causal sub-categories, Type1 and Type2, combined have 100 sentences  Results Total Number of Sentences Evaluated AnsweredBackground Knowledge Not Found Answered Correctly Answered Incorrectly Percentage Correct (among attempted)

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Error Analysis 46  20 out of 100 not answered  Suitable background knowledge was not found Mark ceded the presidency to John because he was less popular

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Solving Winograd Schema Challenge: Using Semantic Parsing, Automatic Knowledge Acquisition and Logical Reasoning Error Analysis 47 Bob paid for Charlie’s college education, he is very grateful  10 out of 80 incorrectly answered  Deeper analysis of background knowledge is required I paid the price for my stupidity. How grateful I am. Background Sentence: Winograd Sentence:

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Conclusion and Future directions 48

School of Computing, Informatics, and Decision Systems Engineering Arizona State University Conclusion 49  For greater usage of knowledge representation and reasoning, we need ways to obtain knowledge automatically.; hand-crafted knowledge is not scalable, but may me needed for some parts.  For explainable reasoning with natural language it is important to translate natural language to some formal language.  Winograd schema challenge has been proposed as a way to test reasoning ability of systems (as opposed to black-box learning)  We are pursuing two approaches for the above goals: NL2KR platform and Kparser

50 School of Computing, Informatics, and Decision Systems Engineering Arizona State University THANK YOU!!!