SlideShare a Scribd company logo
1 of 20
Download to read offline
Textual Entailment
KIML
Inference Rules
Maude
Towards a Rewriting Framework
for Textual Entailment
Valeria de Paiva Vivek Nigam
Nuance Communications, CA, US
Universidade Federal da Para´ıba, PA, Brazil
LSFA 2014, September, 2014
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Textual Entailment
Textual entailment methods recognize, generate, and
extract pairs T, H of natural language expressions, such
that a human who reads (and trusts) T would infer that H is
most likely also true (Dagan, Glickman & Magnini, 2006)
Example:
(T) The drugs that slow down Alzheimer’s disease work best
the earlier you administer them.
(H) Alzheimer’s disease can be slowed down using drugs.
T ⇒ H
A series of competitions since 2004, ACL “Textual Entailment
Portal”, many different systems...
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Basic Idea of Work
Use Xerox’s PARC Bridge system as a black box to produce
NL representations of sentences in KIML (Knowledge
Inference Management Language).
KIML + inference rules = TIL (version of) Textual Inference
Logic
Translate TIL formulas to a theory in Maude, the SRI
rewriting system.
Use Maude rewriting to prove Textual Entailment “theorems”.
NB: Bridge has its own reasoning module called ECD (for
entailment and contradiction detection) which does packed
rewriting...
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
An example: a crow slept
Conceptual Structure:
role(cardinality restriction,crow-1,sg)
role(sb,sleep-4,crow-1)
subconcept(crow-1,[crow#n#1,crow#n#2,brag#n#1])
subconcept(sleep-4,[sleep#v#1,sleep#v#2])
Contextual Structure:
instantiable(crow-1,t)
instantiable(sleep-4,t)
top context(t)
Temporal Structure:
trole(when,sleep-4,interval(before,Now))
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
KIML
A representation language based on events (neo-Davidsonian),
concepts, roles and contexts, McCarthy-style
Using events, concepts and roles is traditional in NL semantics
(Lasersohn)
Usually equivalent to FOL (first-order logic), ours a small
extension, contexts are like modalities
Language based on linguists’ intuitions
Exact formulation still being decided: e.g. not considering
temporal assertions, yet...
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
KIML versus FOL
In FOL could write ∃Crow∃Sleep.Sleep(crow)
Instead we will use basic concepts from a parameter ontology
O (could be Cyc, SUMO, UL, KM, etc...)
Instead of FOL have Skolem constant crow-1 a subconcept of
an ambiguous list of concepts:
subconcept(crow-1,[crow#n#1,crow#n#2,brag#n#1])
Same for sleep-2 and have roles relating concepts
role(sb,sleep-4,crow-1)
meaning that the sb=subject of the sleeping event is a crow
concept
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
What is Different?
Corresponding to formulas in FOL, KIML has a collection of
assertions that, read conjunctively, correspond to the semantics of
a (fragment of a) sentence in English.
Concepts in KIML – similar to Description Logic concepts
primitive concepts from an idealized version of the chosen
ontology
constructed-on-the-fly concepts, always sub-concepts of some
primitive concept.
concepts are as fine or as coarse as needed by the application
Roles connect concepts: deciding which roles with which
concepts a big problem... for linguists
Roles assigned in a consistent, coherent and maximally
informative way by the NLP module
Contexts as a quantification device
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Contexts for Quantification
Contexts for modelling negation, implication, as well as
propositional attitudes and other intensional phenomena.
There is a first initial context (written as t), roughly what the
author of the sentence takes the world to be.
Contexts for existential statements about the existence and
non-existence in specified possible worlds of entities that
satisfy the intensional descriptions specified by our concepts.
Propositional attitudes predicates (knowing, believing,
saying,...) relate contexts and concepts in our logic.
Concepts like knowing, believing, saying introduce context
that represents the proposition that is known, believed or said.
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Ed knows that the crow slept
alias(Ed-0,[Ed])
role(prop,know-1,ctx(sleep-8))
role(sb,know-1,Ed-0)
role(sb,sleep-8,crow-6)
subconcept(Ed-0,[male#n#2])
subconcept(crow-6,[crow#n#1,crow#n#2,brag#n#1])
subconcept(know-1,[know#v#1,...,sleep-together#v#1])
subconcept(sleep-8,[sleep#v#1,sleep#v#2])
context(ctx(sleep-8)), context(t)
context-lifting-relation(veridical,t,ctx(sleep-8))
context-relation(t,ctx(sleep-8),crel(prop,know-1))
instantiable(Ed-0,t)
instantiable(crow-6,ctx(sleep-8))
instantiable(sleep-8,ctx(sleep-8))
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Inference to build reps and to reason with them
In previous example can conclude:
instantiable(sleep-8,t)
if knowing X implies X is true.
(Can conclude instantiable(crow-6,t) too, for definitiveness
reasons..)
Happening or not of events is dealt with by the
instantiability/uninstantiability predicate that relates concepts
and contexts e.g. Negotiations prevented a strike
Contexts can be:
veridical, antiveridical or averidical
with respect to other contexts.
Have ‘context lifting rules’ to move instantiability assertions
between contexts.
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Inference Rules
The totally obvious
s → s
s → t s → r
r → t
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Inference Rules
Inheritance rules
Nina has a canary, canary bird
Nina has a bird
Ed kissed Nina, kiss touch
Ed touched Nina
Every carp is a fish, carp koi
Every koi is a fish
She didn’t give him a bird, bird canary
She didn’t give him a canary
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Modifiers Inference Rules
Ed arrived in the city by bus
Ed arrived in the city
Ed did not arrive in the city
Ed did not arrive in the city by bus
Ed arrived in the city, Ed person
A person arrived in the city
Ed arrived in Rome, Rome city
Ed arrived in a city
Note that Ed did not arrive in the city by bus does not entail that
Ed did not arrive in the city.
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Implicative Commitments Rules
Preserving polarity:
“Ed managed to close the door” → “Ed closed the door”
“Ed didn’t manage to close the door” → “Ed didn’t close the
door”.
The verb “forget (to)” inverts polarities:
“Ed forgot to close the door” → “Ed didn’t close the door”
“Ed didn’t forget to close the door” → “Ed closed the door”.
There are six such classes, depending on whether positive
environments are taken to positive or negative ones.
Accommodating this fine-grained analysis into traditional logic
description is further work. (Nairn et al 2006 presents an
implemented recursive algorithm for composing these rules)
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Today: Towards a Rewriting Framework
A implementation of TIL, using the traditional rewriting
system Maude to reason about the logical representations
produced by the NLP module we are considering.
Hand-correct the representations given by the NLP module:
the goal here is not to obtain correct representations, but to
work logically with correct representations.
Maude system is an implementation of rewriting logic
developed at SRI International.
Maude modules (rewrite theories) consist of a term-language
plus sets of equations and rewrite-rules. Terms in rewrite
theory are constructed using operators (functions taking 0 or
more arguments of some sort, which return a term of a
specific sort).
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
A Rewriting Framework
A rewrite theory is a triple (Σ, E, R), with (Σ, E) an
equational theory with Σ a signature of operations and sorts,
and E a set of (possibly conditional) equations, and with R a
set of (possibly conditional) rewrite rules.
A few logical predicates for our natural languages
representations: (sub)concepts, roles, contexts and a few
relations between these.
But the concepts that the representations would use in a
minimally working system in the order of 135 thousand,
concepts in WordNet. Scaling issues!
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Maude Rewriting Framework
Basic rewriting sorts: Relations, SBasic and UnifSet
TIL basic assertions such as canary bird belong to
Relations.
Concept and contextual assertions, such as
instantiable(drink-0,t) belong to the SBasic basic
statements sort.
The third basic sort, UnifSet, contains unification of skolem
constants, such as crow-6 := bird-1. This last sort is
necessary for for unifying skolem constants, engine of
derivations here.
Much more is needed...
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Experimental Results: a few theorems
1. a crow was thirsty a thirsty crow
2. a thirsty crow a crow
3. ed arrived and the crow flew away the crow flew away
4. ed knew that the crow slept the crow slept
5. ed did not forget to force the crow to fly the crow flew
6 the crow came out in search of water the crow came out
7. a crow was thirsty a bird was thirsty
All easy, but the state-of-the-art winner does not do all of them...
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Conclusions
Proof-of-concept framework
Introduced a general rewriting framework, using KIML
assertions and TIL inference system for textual entailment
Demonstrated by example that framework can be implemented
in Maude and used it to prove in an semi-automated fashion
whether a sentence follows from another
‘shallow theorem proving’ for common sense applications?
Many problems: black box, ambiguity, temporal information,
etc..
Valeria de Paiva LSFA 2014
Textual Entailment
KIML
Inference Rules
Maude
Thanks!
WOLLIC 2015 in Bloomington, Indiana, USA.
Valeria de Paiva LSFA 2014

More Related Content

What's hot

Ecml2010 Slides
Ecml2010 SlidesEcml2010 Slides
Ecml2010 Slidesfanizzi
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prologRakhi Sinha
 
MACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULEMACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULEDrBindhuM
 
Jarrar.lecture notes.aai.2012s.descriptionlogic
Jarrar.lecture notes.aai.2012s.descriptionlogicJarrar.lecture notes.aai.2012s.descriptionlogic
Jarrar.lecture notes.aai.2012s.descriptionlogicSinaInstitute
 
Jarrar: Description Logic
Jarrar: Description LogicJarrar: Description Logic
Jarrar: Description LogicMustafa Jarrar
 
Glue Semantics for Proof Theorists
Glue Semantics for Proof TheoristsGlue Semantics for Proof Theorists
Glue Semantics for Proof TheoristsValeria de Paiva
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agentsMegha Sharma
 
Jarrar: Introduction to Information Retrieval
Jarrar: Introduction to Information RetrievalJarrar: Introduction to Information Retrieval
Jarrar: Introduction to Information RetrievalMustafa Jarrar
 
Unsupervised analysis for decipherment problems
Unsupervised analysis for decipherment problemsUnsupervised analysis for decipherment problems
Unsupervised analysis for decipherment problemsAttaporn Ninsuwan
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 
Probabilistic Abductive Logic Programming using Possible Worlds
Probabilistic Abductive Logic Programming using Possible WorldsProbabilistic Abductive Logic Programming using Possible Worlds
Probabilistic Abductive Logic Programming using Possible WorldsFulvio Rotella
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Valeria de Paiva
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaValeria de Paiva
 

What's hot (15)

Ecml2010 Slides
Ecml2010 SlidesEcml2010 Slides
Ecml2010 Slides
 
Introduction to prolog
Introduction to prologIntroduction to prolog
Introduction to prolog
 
MACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULEMACHINE LEARNING-LEARNING RULE
MACHINE LEARNING-LEARNING RULE
 
Jarrar.lecture notes.aai.2012s.descriptionlogic
Jarrar.lecture notes.aai.2012s.descriptionlogicJarrar.lecture notes.aai.2012s.descriptionlogic
Jarrar.lecture notes.aai.2012s.descriptionlogic
 
Fol
FolFol
Fol
 
Jarrar: Description Logic
Jarrar: Description LogicJarrar: Description Logic
Jarrar: Description Logic
 
Glue Semantics for Proof Theorists
Glue Semantics for Proof TheoristsGlue Semantics for Proof Theorists
Glue Semantics for Proof Theorists
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Jarrar: Introduction to Information Retrieval
Jarrar: Introduction to Information RetrievalJarrar: Introduction to Information Retrieval
Jarrar: Introduction to Information Retrieval
 
Unsupervised analysis for decipherment problems
Unsupervised analysis for decipherment problemsUnsupervised analysis for decipherment problems
Unsupervised analysis for decipherment problems
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
Probabilistic Abductive Logic Programming using Possible Worlds
Probabilistic Abductive Logic Programming using Possible WorldsProbabilistic Abductive Logic Programming using Possible Worlds
Probabilistic Abductive Logic Programming using Possible Worlds
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
 
AI Lesson 11
AI Lesson 11AI Lesson 11
AI Lesson 11
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de Paiva
 

Similar to Textual Entailment Framework Using KIML Representations and Maude Rewriting

Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicValeria de Paiva
 
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedLean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedValeria de Paiva
 
Introduction to set theory by william a r weiss professor
Introduction to set theory by william a r weiss professorIntroduction to set theory by william a r weiss professor
Introduction to set theory by william a r weiss professormanrak
 
Constructive Description Logics 2006
Constructive Description Logics 2006Constructive Description Logics 2006
Constructive Description Logics 2006Valeria de Paiva
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
INFO-2950-Languages-and-Grammars.ppt
INFO-2950-Languages-and-Grammars.pptINFO-2950-Languages-and-Grammars.ppt
INFO-2950-Languages-and-Grammars.pptLamhotNaibaho3
 
pretraining text.pdf
pretraining text.pdfpretraining text.pdf
pretraining text.pdfssuserf2f0fe
 
Prolog Programming : Basics
Prolog Programming : BasicsProlog Programming : Basics
Prolog Programming : BasicsMitul Desai
 
Portuguese Linguistic Tools: What, Why and How
Portuguese Linguistic Tools: What, Why and HowPortuguese Linguistic Tools: What, Why and How
Portuguese Linguistic Tools: What, Why and HowValeria de Paiva
 
Word embeddings
Word embeddingsWord embeddings
Word embeddingsShruti kar
 
(Kpi summer school 2015) word embeddings and neural language modeling
(Kpi summer school 2015) word embeddings and neural language modeling(Kpi summer school 2015) word embeddings and neural language modeling
(Kpi summer school 2015) word embeddings and neural language modelingSerhii Havrylov
 
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...L. Thorne McCarty
 
Constructive Hybrid Logics
Constructive Hybrid LogicsConstructive Hybrid Logics
Constructive Hybrid LogicsValeria de Paiva
 
Next Steps in Propositional Horn Contraction
Next Steps in Propositional Horn ContractionNext Steps in Propositional Horn Contraction
Next Steps in Propositional Horn ContractionIvan Varzinczak
 
A Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual EntailmentA Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual EntailmentFaculty of Computer Science
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsValeria de Paiva
 
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...Association for Computational Linguistics
 

Similar to Textual Entailment Framework Using KIML Representations and Maude Rewriting (20)

Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural Logic
 
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedLean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction Revisited
 
Introduction to set theory by william a r weiss professor
Introduction to set theory by william a r weiss professorIntroduction to set theory by william a r weiss professor
Introduction to set theory by william a r weiss professor
 
Constructive Description Logics 2006
Constructive Description Logics 2006Constructive Description Logics 2006
Constructive Description Logics 2006
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
INFO-2950-Languages-and-Grammars.ppt
INFO-2950-Languages-and-Grammars.pptINFO-2950-Languages-and-Grammars.ppt
INFO-2950-Languages-and-Grammars.ppt
 
Nlp
NlpNlp
Nlp
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
pretraining text.pdf
pretraining text.pdfpretraining text.pdf
pretraining text.pdf
 
Prolog Programming : Basics
Prolog Programming : BasicsProlog Programming : Basics
Prolog Programming : Basics
 
Portuguese Linguistic Tools: What, Why and How
Portuguese Linguistic Tools: What, Why and HowPortuguese Linguistic Tools: What, Why and How
Portuguese Linguistic Tools: What, Why and How
 
Word embeddings
Word embeddingsWord embeddings
Word embeddings
 
(Kpi summer school 2015) word embeddings and neural language modeling
(Kpi summer school 2015) word embeddings and neural language modeling(Kpi summer school 2015) word embeddings and neural language modeling
(Kpi summer school 2015) word embeddings and neural language modeling
 
J79 1063
J79 1063J79 1063
J79 1063
 
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
 
Constructive Hybrid Logics
Constructive Hybrid LogicsConstructive Hybrid Logics
Constructive Hybrid Logics
 
Next Steps in Propositional Horn Contraction
Next Steps in Propositional Horn ContractionNext Steps in Propositional Horn Contraction
Next Steps in Propositional Horn Contraction
 
A Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual EntailmentA Distributed Architecture System for Recognizing Textual Entailment
A Distributed Architecture System for Recognizing Textual Entailment
 
Benchmarking Linear Logic Proofs
Benchmarking Linear Logic ProofsBenchmarking Linear Logic Proofs
Benchmarking Linear Logic Proofs
 
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...
Jena Hwang - Double Trouble: The Problem of Construal in Semantic Annotation ...
 

More from Valeria de Paiva

Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical ConstructionsValeria de Paiva
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories RevisitedValeria de Paiva
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceValeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its roleValeria de Paiva
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoValeria de Paiva
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesValeria de Paiva
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseValeria de Paiva
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical SystemValeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTValeria de Paiva
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit SubstitutionsValeria de Paiva
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogValeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsValeria de Paiva
 

More from Valeria de Paiva (20)

Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
 
Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better Science
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and Machines
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in Portuguese
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACT
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit Substitutions
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Textual Entailment Framework Using KIML Representations and Maude Rewriting

  • 1. Textual Entailment KIML Inference Rules Maude Towards a Rewriting Framework for Textual Entailment Valeria de Paiva Vivek Nigam Nuance Communications, CA, US Universidade Federal da Para´ıba, PA, Brazil LSFA 2014, September, 2014 Valeria de Paiva LSFA 2014
  • 2. Textual Entailment KIML Inference Rules Maude Textual Entailment Textual entailment methods recognize, generate, and extract pairs T, H of natural language expressions, such that a human who reads (and trusts) T would infer that H is most likely also true (Dagan, Glickman & Magnini, 2006) Example: (T) The drugs that slow down Alzheimer’s disease work best the earlier you administer them. (H) Alzheimer’s disease can be slowed down using drugs. T ⇒ H A series of competitions since 2004, ACL “Textual Entailment Portal”, many different systems... Valeria de Paiva LSFA 2014
  • 3. Textual Entailment KIML Inference Rules Maude Basic Idea of Work Use Xerox’s PARC Bridge system as a black box to produce NL representations of sentences in KIML (Knowledge Inference Management Language). KIML + inference rules = TIL (version of) Textual Inference Logic Translate TIL formulas to a theory in Maude, the SRI rewriting system. Use Maude rewriting to prove Textual Entailment “theorems”. NB: Bridge has its own reasoning module called ECD (for entailment and contradiction detection) which does packed rewriting... Valeria de Paiva LSFA 2014
  • 4. Textual Entailment KIML Inference Rules Maude An example: a crow slept Conceptual Structure: role(cardinality restriction,crow-1,sg) role(sb,sleep-4,crow-1) subconcept(crow-1,[crow#n#1,crow#n#2,brag#n#1]) subconcept(sleep-4,[sleep#v#1,sleep#v#2]) Contextual Structure: instantiable(crow-1,t) instantiable(sleep-4,t) top context(t) Temporal Structure: trole(when,sleep-4,interval(before,Now)) Valeria de Paiva LSFA 2014
  • 5. Textual Entailment KIML Inference Rules Maude KIML A representation language based on events (neo-Davidsonian), concepts, roles and contexts, McCarthy-style Using events, concepts and roles is traditional in NL semantics (Lasersohn) Usually equivalent to FOL (first-order logic), ours a small extension, contexts are like modalities Language based on linguists’ intuitions Exact formulation still being decided: e.g. not considering temporal assertions, yet... Valeria de Paiva LSFA 2014
  • 6. Textual Entailment KIML Inference Rules Maude KIML versus FOL In FOL could write ∃Crow∃Sleep.Sleep(crow) Instead we will use basic concepts from a parameter ontology O (could be Cyc, SUMO, UL, KM, etc...) Instead of FOL have Skolem constant crow-1 a subconcept of an ambiguous list of concepts: subconcept(crow-1,[crow#n#1,crow#n#2,brag#n#1]) Same for sleep-2 and have roles relating concepts role(sb,sleep-4,crow-1) meaning that the sb=subject of the sleeping event is a crow concept Valeria de Paiva LSFA 2014
  • 7. Textual Entailment KIML Inference Rules Maude What is Different? Corresponding to formulas in FOL, KIML has a collection of assertions that, read conjunctively, correspond to the semantics of a (fragment of a) sentence in English. Concepts in KIML – similar to Description Logic concepts primitive concepts from an idealized version of the chosen ontology constructed-on-the-fly concepts, always sub-concepts of some primitive concept. concepts are as fine or as coarse as needed by the application Roles connect concepts: deciding which roles with which concepts a big problem... for linguists Roles assigned in a consistent, coherent and maximally informative way by the NLP module Contexts as a quantification device Valeria de Paiva LSFA 2014
  • 8. Textual Entailment KIML Inference Rules Maude Contexts for Quantification Contexts for modelling negation, implication, as well as propositional attitudes and other intensional phenomena. There is a first initial context (written as t), roughly what the author of the sentence takes the world to be. Contexts for existential statements about the existence and non-existence in specified possible worlds of entities that satisfy the intensional descriptions specified by our concepts. Propositional attitudes predicates (knowing, believing, saying,...) relate contexts and concepts in our logic. Concepts like knowing, believing, saying introduce context that represents the proposition that is known, believed or said. Valeria de Paiva LSFA 2014
  • 9. Textual Entailment KIML Inference Rules Maude Ed knows that the crow slept alias(Ed-0,[Ed]) role(prop,know-1,ctx(sleep-8)) role(sb,know-1,Ed-0) role(sb,sleep-8,crow-6) subconcept(Ed-0,[male#n#2]) subconcept(crow-6,[crow#n#1,crow#n#2,brag#n#1]) subconcept(know-1,[know#v#1,...,sleep-together#v#1]) subconcept(sleep-8,[sleep#v#1,sleep#v#2]) context(ctx(sleep-8)), context(t) context-lifting-relation(veridical,t,ctx(sleep-8)) context-relation(t,ctx(sleep-8),crel(prop,know-1)) instantiable(Ed-0,t) instantiable(crow-6,ctx(sleep-8)) instantiable(sleep-8,ctx(sleep-8)) Valeria de Paiva LSFA 2014
  • 10. Textual Entailment KIML Inference Rules Maude Inference to build reps and to reason with them In previous example can conclude: instantiable(sleep-8,t) if knowing X implies X is true. (Can conclude instantiable(crow-6,t) too, for definitiveness reasons..) Happening or not of events is dealt with by the instantiability/uninstantiability predicate that relates concepts and contexts e.g. Negotiations prevented a strike Contexts can be: veridical, antiveridical or averidical with respect to other contexts. Have ‘context lifting rules’ to move instantiability assertions between contexts. Valeria de Paiva LSFA 2014
  • 11. Textual Entailment KIML Inference Rules Maude Inference Rules The totally obvious s → s s → t s → r r → t Valeria de Paiva LSFA 2014
  • 12. Textual Entailment KIML Inference Rules Maude Inference Rules Inheritance rules Nina has a canary, canary bird Nina has a bird Ed kissed Nina, kiss touch Ed touched Nina Every carp is a fish, carp koi Every koi is a fish She didn’t give him a bird, bird canary She didn’t give him a canary Valeria de Paiva LSFA 2014
  • 13. Textual Entailment KIML Inference Rules Maude Modifiers Inference Rules Ed arrived in the city by bus Ed arrived in the city Ed did not arrive in the city Ed did not arrive in the city by bus Ed arrived in the city, Ed person A person arrived in the city Ed arrived in Rome, Rome city Ed arrived in a city Note that Ed did not arrive in the city by bus does not entail that Ed did not arrive in the city. Valeria de Paiva LSFA 2014
  • 14. Textual Entailment KIML Inference Rules Maude Implicative Commitments Rules Preserving polarity: “Ed managed to close the door” → “Ed closed the door” “Ed didn’t manage to close the door” → “Ed didn’t close the door”. The verb “forget (to)” inverts polarities: “Ed forgot to close the door” → “Ed didn’t close the door” “Ed didn’t forget to close the door” → “Ed closed the door”. There are six such classes, depending on whether positive environments are taken to positive or negative ones. Accommodating this fine-grained analysis into traditional logic description is further work. (Nairn et al 2006 presents an implemented recursive algorithm for composing these rules) Valeria de Paiva LSFA 2014
  • 15. Textual Entailment KIML Inference Rules Maude Today: Towards a Rewriting Framework A implementation of TIL, using the traditional rewriting system Maude to reason about the logical representations produced by the NLP module we are considering. Hand-correct the representations given by the NLP module: the goal here is not to obtain correct representations, but to work logically with correct representations. Maude system is an implementation of rewriting logic developed at SRI International. Maude modules (rewrite theories) consist of a term-language plus sets of equations and rewrite-rules. Terms in rewrite theory are constructed using operators (functions taking 0 or more arguments of some sort, which return a term of a specific sort). Valeria de Paiva LSFA 2014
  • 16. Textual Entailment KIML Inference Rules Maude A Rewriting Framework A rewrite theory is a triple (Σ, E, R), with (Σ, E) an equational theory with Σ a signature of operations and sorts, and E a set of (possibly conditional) equations, and with R a set of (possibly conditional) rewrite rules. A few logical predicates for our natural languages representations: (sub)concepts, roles, contexts and a few relations between these. But the concepts that the representations would use in a minimally working system in the order of 135 thousand, concepts in WordNet. Scaling issues! Valeria de Paiva LSFA 2014
  • 17. Textual Entailment KIML Inference Rules Maude Maude Rewriting Framework Basic rewriting sorts: Relations, SBasic and UnifSet TIL basic assertions such as canary bird belong to Relations. Concept and contextual assertions, such as instantiable(drink-0,t) belong to the SBasic basic statements sort. The third basic sort, UnifSet, contains unification of skolem constants, such as crow-6 := bird-1. This last sort is necessary for for unifying skolem constants, engine of derivations here. Much more is needed... Valeria de Paiva LSFA 2014
  • 18. Textual Entailment KIML Inference Rules Maude Experimental Results: a few theorems 1. a crow was thirsty a thirsty crow 2. a thirsty crow a crow 3. ed arrived and the crow flew away the crow flew away 4. ed knew that the crow slept the crow slept 5. ed did not forget to force the crow to fly the crow flew 6 the crow came out in search of water the crow came out 7. a crow was thirsty a bird was thirsty All easy, but the state-of-the-art winner does not do all of them... Valeria de Paiva LSFA 2014
  • 19. Textual Entailment KIML Inference Rules Maude Conclusions Proof-of-concept framework Introduced a general rewriting framework, using KIML assertions and TIL inference system for textual entailment Demonstrated by example that framework can be implemented in Maude and used it to prove in an semi-automated fashion whether a sentence follows from another ‘shallow theorem proving’ for common sense applications? Many problems: black box, ambiguity, temporal information, etc.. Valeria de Paiva LSFA 2014
  • 20. Textual Entailment KIML Inference Rules Maude Thanks! WOLLIC 2015 in Bloomington, Indiana, USA. Valeria de Paiva LSFA 2014