SlideShare a Scribd company logo
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

PDF
Contexts for Quantification
PDF
Learning Morphological Rules for Amharic Verbs Using Inductive Logic Programming
PDF
Little engines of inference: contexts for quantification
PPTX
Jarrar: Introduction to logic and Logic Agents
PDF
Entrega2_MALGTN_DEFINITVA
PDF
Contexts for Quantification
PPT
Jarrar.lecture notes.aai.2011s.ch7.p logic
Contexts for Quantification
Learning Morphological Rules for Amharic Verbs Using Inductive Logic Programming
Little engines of inference: contexts for quantification
Jarrar: Introduction to logic and Logic Agents
Entrega2_MALGTN_DEFINITVA
Contexts for Quantification
Jarrar.lecture notes.aai.2011s.ch7.p logic

What's hot (15)

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

Similar to Towards a Rewriting Framework for Textual Entailment (20)

PDF
Lean Logic for Lean Times: Varieties of Natural Logic
PDF
Lean Logic for Lean Times: Entailment and Contradiction Revisited
PDF
Introduction to set theory by william a r weiss professor
PDF
Constructive Description Logics 2006
PPTX
Coreference_Resolution in Natural language processing
PPT
Predicate logic_2(Artificial Intelligence)
PPT
INFO-2950-Languages-and-Grammars.ppt
PPTX
Natural Language Processing
PDF
pretraining text.pdf
PPTX
Prolog Programming : Basics
PDF
Portuguese Linguistic Tools: What, Why and How
PPTX
Word embeddings
PDF
(Kpi summer school 2015) word embeddings and neural language modeling
PDF
J79 1063
ODP
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
PDF
Constructive Hybrid Logics
PDF
Next Steps in Propositional Horn Contraction
PPT
A Distributed Architecture System for Recognizing Textual Entailment
PDF
Benchmarking Linear Logic Proofs
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Introduction to set theory by william a r weiss professor
Constructive Description Logics 2006
Coreference_Resolution in Natural language processing
Predicate logic_2(Artificial Intelligence)
INFO-2950-Languages-and-Grammars.ppt
Natural Language Processing
pretraining text.pdf
Prolog Programming : Basics
Portuguese Linguistic Tools: What, Why and How
Word embeddings
(Kpi summer school 2015) word embeddings and neural language modeling
J79 1063
How to Ground A Language for Legal Discourse In a Prototypical Perceptual Sem...
Constructive Hybrid Logics
Next Steps in Propositional Horn Contraction
A Distributed Architecture System for Recognizing Textual Entailment
Benchmarking Linear Logic Proofs
Ad

More from Valeria de Paiva (20)

PDF
Dialectica Comonoids
PDF
Dialectica Categorical Constructions
PDF
Logic & Representation 2021
PDF
Constructive Modal and Linear Logics
PDF
Dialectica Categories Revisited
PDF
PLN para Tod@s
PDF
Networked Mathematics: NLP tools for Better Science
PDF
Going Without: a modality and its role
PDF
Problemas de Kolmogorov-Veloso
PDF
Natural Language Inference: for Humans and Machines
PDF
Dialectica Petri Nets
PDF
The importance of Being Erneast: Open datasets in Portuguese
PDF
Negation in the Ecumenical System
PDF
Constructive Modal and Linear Logics
PDF
Semantics and Reasoning for NLP, AI and ACT
PDF
NLCS 2013 opening slides
PDF
Dialectica Comonads
PDF
Categorical Explicit Substitutions
PDF
Logic and Probabilistic Methods for Dialog
PDF
Dialectica and Kolmogorov Problems
Dialectica Comonoids
Dialectica Categorical Constructions
Logic & Representation 2021
Constructive Modal and Linear Logics
Dialectica Categories Revisited
PLN para Tod@s
Networked Mathematics: NLP tools for Better Science
Going Without: a modality and its role
Problemas de Kolmogorov-Veloso
Natural Language Inference: for Humans and Machines
Dialectica Petri Nets
The importance of Being Erneast: Open datasets in Portuguese
Negation in the Ecumenical System
Constructive Modal and Linear Logics
Semantics and Reasoning for NLP, AI and ACT
NLCS 2013 opening slides
Dialectica Comonads
Categorical Explicit Substitutions
Logic and Probabilistic Methods for Dialog
Dialectica and Kolmogorov Problems

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
Indian roads congress 037 - 2012 Flexible pavement
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Empowerment Technology for Senior High School Guide
PDF
Trump Administration's workforce development strategy
PPTX
Introduction to Building Materials
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
advance database management system book.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Indian roads congress 037 - 2012 Flexible pavement
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
My India Quiz Book_20210205121199924.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
What if we spent less time fighting change, and more time building what’s rig...
Empowerment Technology for Senior High School Guide
Trump Administration's workforce development strategy
Introduction to Building Materials
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
advance database management system book.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Introduction to pro and eukaryotes and differences.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Computer Architecture Input Output Memory.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf

Towards a Rewriting Framework for Textual Entailment

  • 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