ANSWERING CONTROLLED NATURAL LANGUAGE QUERIES USING ANSWER SET PROGRAMMING Syeed Ibn Faiz.

Slides:



Advertisements
Similar presentations
Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
Advertisements

CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
CILC2011 A framework for structured knowledge extraction and representation from natural language via deep sentence analysis Stefania Costantini Niva Florio.
Proceedings of the Conference on Intelligent Text Processing and Computational Linguistics (CICLing-2007) Learning for Semantic Parsing Advisor: Hsin-His.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Logic.
1 A Description Logic with Concrete Domains CS848 presentation Presenter: Yongjuan Zou.
UNIT-III By Mr. M. V. Nikum (B.E.I.T). Programming Language Lexical and Syntactic features of a programming Language are specified by its grammar Language:-
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
CS 355 – Programming Languages
The Query Compiler Varun Sud ID: 104. Agenda Parsing  Syntax analysis and Parse Trees.  Grammar for a simple subset of SQL  Base Syntactic Categories.
Modular Answer Set Programming. Introduction One common answer set programming (ASP) methodology is to: Encode the problem Enumerate possible solutions.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Introduction to Prolog What is Prolog? Application Areas of Prolog How does Prolog work? (Syntax of Prolog) Program Structure.
Query Processing and Reasoning How Useful are Natural Language Interfaces to the Semantic Web for Casual End-users? Esther Kaufmann and Abraham Bernstein.
1 Programming with Constraints Jia-Huai You Constraint programming languages - based on non-monotonic logic - Answer set programming (ASP) Knowledge Representation.
NaLIX: A Generic Natural Language Search Environment for XML Data Presented by: Erik Mathisen 02/12/2008.
Dynamic Ontologies on the Web Jeff Heflin, James Hendler.
Relational Data Mining in Finance Haonan Zhang CFWin /04/2003.
Visual Web Information Extraction With Lixto Robert Baumgartner Sergio Flesca Georg Gottlob.
Overall Information Extraction vs. Annotating the Data Conference proceedings by O. Etzioni, Washington U, Seattle; S. Handschuh, Uni Krlsruhe.
1 Information Retrieval and Extraction 資訊檢索與擷取 Chia-Hui Chang, Assistant Professor Dept. of Computer Science & Information Engineering National Central.
Information Retrieval and Extraction 資訊檢索與擷取 Chia-Hui Chang National Central University
Ontology-Based Free-Form Query Processing for the Semantic Web Mark Vickers Brigham Young University MS Thesis Defense Supported by:
Information Extraction from Documents for Automating Softwre Testing by Patricia Lutsky Presented by Ramiro Lopez.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
Knowledge Mediation in the WWW based on Labelled DAGs with Attached Constraints Jutta Eusterbrock WebTechnology GmbH.
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!
A Generative and Model Driven Framework for Automated Software Product Generation Wei Zhao Advisor: Dr. Barrett Bryant Computer and Information Sciences.
Artificial intelligence project
School of Computer Science and Technology, Tianjin University
Learning to Transform Natural to Formal Language Presented by Ping Zhang Rohit J. Kate, Yuk Wah Wong, and Raymond J. Mooney.
Author: Graham Hughes, Tevfik Bultan Computer Science Department, University of California, Santa Barbara, CA 93106, USA Source: International Journal.
PETRA – the Personal Embedded Translation and Reading Assistant Werner Winiwarter University of Vienna InSTIL/ICALL Symposium 2004 June 17-19, 2004.
Dimitrios Skoutas Alkis Simitsis
An Ontological Framework for Web Service Processes By Claus Pahl and Ronan Barrett.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
ISBN Chapter 3 Describing Semantics.
A Logical Framework for Web Service Discovery The Third International Semantic Web Conference Hiroshima, Japan, Michael Kifer 1, Rubén Lara.
Metadata Common Vocabulary a journey from a glossary to an ontology of statistical metadata, and back Sérgio Bacelar
User Profiling using Semantic Web Group members: Ashwin Somaiah Asha Stephen Charlie Sudharshan Reddy.
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.
SQL Based Knowledge Representation And Knowledge Editor UMAIR ABDULLAH AFTAB AHMED MOHAMMAD JAMIL SAWAR (Presented by Lei Jiang)
Introduction to Prolog. Outline What is Prolog? Prolog basics Prolog Demo Syntax: –Atoms and Variables –Complex Terms –Facts & Queries –Rules Examples.
Issues in Ontology-based Information integration By Zhan Cui, Dean Jones and Paul O’Brien.
1 MedAT: Medical Resources Annotation Tool Monika Žáková *, Olga Štěpánková *, Taťána Maříková * Department of Cybernetics, CTU Prague Institute of Biology.
Attempto Controlled English Norbert Fuchs et al. Dept CS, Univ Zurich, Switzerland as (mis-)interpreted by Peter Clark.
Raluca Paiu1 Semantic Web Search By Raluca PAIU
Concepts and Realization of a Diagram Editor Generator Based on Hypergraph Transformation Author: Mark Minas Presenter: Song Gu.
A Portrait of the Semantic Web in Action Jeff Heflin and James Hendler IEEE Intelligent Systems December 6, 2010 Hyewon Lim.
The International RuleML Symposium on Rule Interchange and Applications Visualization of Proofs in Defeasible Logic Ioannis Avguleas 1, Katerina Gkirtzou.
Semantic Data Extraction for B2B Integration Syntactic-to-Semantic Middleware Bruno Silva 1, Jorge Cardoso 2 1 2
A Multilingual Hierarchy Mapping Method Based on GHSOM Hsin-Chang Yang Associate Professor Department of Information Management National University of.
Concept mining for programming automation. Problem ➲ A lot of trivial tasks that could be automated – Add field Patronim on Customer page. – Remove field.
Presented by Kyumars Sheykh Esmaili Description Logics for Data Bases (DLHB,Chapter 16) Semantic Web Seminar.
Overview of Compilation Prepared by Manuel E. Bermúdez, Ph.D. Associate Professor University of Florida Programming Language Principles Lecture 2.
Versatile Information Systems, Inc International Semantic Web Conference An Application of Semantic Web Technologies to Situation.
Artificial Intelligence Logical Agents Chapter 7.
What is ASP? CSCE 330 Programming Language Presentation JANICE NEIGHBOR, MICHAEL RICKABAUGH, DAVID THOMAS
Mechanisms for Requirements Driven Component Selection and Design Automation 최경석.
The Semantic Web By: Maulik Parikh.
Semantic Parsing for Question Answering
Kenneth Baclawski et. al. PSB /11/7 Sa-Im Shin
Architecture Components
Problem Solving Skill Area 305.1
Lec00-outline May 18, 2019 Compiler Design CS416 Compiler Design.
ITEC 810: Information Technology Project
Answer Set Programming
Presentation transcript:

ANSWERING CONTROLLED NATURAL LANGUAGE QUERIES USING ANSWER SET PROGRAMMING Syeed Ibn Faiz

Outline  Overview  Controlled Natural Language  Answer Set Programming  Transforming Queries into Programs  Producing Answers  Related Works  Conclusion

Overview  People need to write queries to extract information from biomedical ontologies.  Problem: Formal query languages are not suitable for many of them.  Solution: Natural language query?  Further problem: Ambiguities, Complexities.  Solution: Controlled natural language!

How will it work?  Controlled natural language is unambiguous.  Therefore, a query can be easily and unambiguously translated into a logical form.  Then one can do reasoning with it! Which drug cures Asthma? which_drug(A) ← drug_cure_disease(A,asthma). Formoterol

Controlled Natural Language  Subset of a natural language.  It has a restricted grammar and vocabulary.  It overcomes the ambiguity and complexity of natural language.  Example:  Attempto Controlled English (University of Zurich)

Attempto Controlled English (ACE)  Subset of standard English with a restricted syntax and restricted semantics described by a small set of  Construction rules – Grammar  Interpretation rules – remove ambiguities A customer who enters a card manually types a code.  APE translates ACE text into DRS.

Discourse Representation Structure (DRS)  DRS derived from ACE text is returned as:  drs ( Domain, Conditions)  Uses a fixed number of predefined predicates:  object, predicate, property, relation, modifier_pp, modifier_adv, query.  An example:  A man is mortal.

DRS Contd.  Query: What are the symptoms of the diseases that are related to ADRB1 or that are treated by Epinephrine?

Answer Set Programming (ASP)  ASP is a form of declarative programming oriented towards difficult search problems  In ASP a problem is posed as a logic program and solution is computed by its model or answer set.  It allows to automate reasoning with incomplete information.  Answer set solvers: Smodel, Clasp, DLV etc.

An Example  ide_drive :- hard_drive, not scsi_drive.  scsi_drive :- hard-drive, not ide_drive.  scsi_controller :- scsi_drive.  hard_drive.  M1 = {hard_drive, ide_drive}  M2 = {hard_drive, scsi_drive, scsi_controller}

Converting Query to Program  Three step process  Obtaining DRS produced by APE  Parsing DRS  Generating answer set program

Obtaining DRS  Using APE Webservice  URL:  Example: +man+is+mortal.&solo=drs +man+is+mortal.&solo=drs  Running APE locally

Parsing DRS  Grammar for DRS:  DRS drs( Domain, Conditions )  Domain [] | [ Referent {,Referent}* ]  Conditions [ Condition {,Condition}* ]  Condition Predicate | ComplexStructure  Predicate Object | Property | Relation | Predicate  | Modifier_pp | Modifier_adv | Query  ComplexStructure Question | Negation | Disjunction .....  A Recursive Descent Parser DRSParser Internal Structure

Generating Answer Set Programs  A program consists of rules.  A rule has two parts:  Head :- Body  Generating rules:  Constructing Head atom  Constructing Bodies

Constructing Head Atom  Which drug cures Asthma?  query(A,which)  object(A,drug,countabl e,na,eq,1)  Which_drug(A)  What is the drug that cures Asthma?  query(A,what)  predicate(B,be,A,C)  object(C,drug,countabl e,na,eq,1)  What_be_drug(C) Which QueryWhat Query

Generating Bodies What are the symptoms of the diseases THAT Are related to ADRB1 OR that are treated by Epinephrine?

Generating Bodies Contd.  Depth First Traversal of internal DRS representation  Generate a new body for each leaf  Add an atom to the body for  Each predicate-predicate predicate(D,cure,C,named(Asthma)) drug_cure_disease(C, asthma)  Each relation-predicate relation(A,of,B) Symptom_of_disease(A, B)

Examples  What are the symptoms of the diseases that are related to ADRB1 or that are treated by Epinephrine?  what_be_symptom(C) :- symptom_of_disease(C,D), disease_be_related_to_gene(D,adrb1)  what_be_symptom(C) :- symptom_of_disease(C,D), drug_treat_disease(epinephrine,D)  Which gene is related to a disease that causes Insomnia?  which_gene(A) :- disease_cause_symptom(B,insomnia), gene_be_related_to_disease(A,B)

Producing Answers  We need biomedical knowledge  Knowledge must be encoded  Answer Set Solver  Clasp  We need an interface.

Biomedical Knowledge  Concepts  Gene  Drug  Disease  Symptom  PharmGKB database: Relationships between gene, drug and disease.  MedicineNet.com: Disease and symptom database.

Encoding Knowledge  Facts:  disease_symptom(asthma,cough).  gene_disease(adra1b,asthma).  gene_drug(adra1b,norepinephrine).  drug_disease(norepinephrine,hypertension).  …..  Rules:  drug_symptom(X,Y) :- drug_disease(X,Z), disease_symptom(Z, Y).

System Architecture User Interface Query Pre- processor APE Parser DRS Translator Post Processing Clasp Interface Clasp User Interface

Post Processing  disease_be_related_to_ge ne(D,adrb1)  drug_treat_disease(epine phrine,D)  disease_cause_symptom(B, insomnia)  gene_disease(adrb1,D)  drug_disease(epinephrine,D)  disease_symptom(B,insomn ia) BeforeAfters

Related Works  A preliminary report on answering complex queries related to drug discovery using answer set programming by Oliver Bodenreider et al.  Transforming Controlled Natural Language Biomedical Queries into Answer Set Programs by Esra Erdem et al.

Conclusion  Limitations  Data  Language  Future Directions

Questions?

Thank You!