Skip to content

Transform natural language to logical representation with Neo-Davidsonian event semantics

Notifications You must be signed in to change notification settings

vulecoff/text2logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text2logic

Transforming text to logical representations using Universal Dependency, Generative Grammar, Lambda Calculus, and Neo-Davidsonian Semantics. This module contains hand-crafted Lambda structures for each dependency relation, which are then composed hierarchically with beta-reduction. The logical representation makes uses of Neo-Davidsonian semantics with thematic roles.

Usage

python -m src "Brutus stabs Caesar"

The equivalent logical representation is ∃x.∃y. stabs(e, x, y) & Brutus(x) & Ceasar(y)

Or with quantificational event semantics + thematic roles (in development)

python -m src -q "John kissed every girl"

which produces ∀x[girl(x) → ∃e[kissed(e) & Ag(e, John) & Th(e, x)]]

References & Further readings

  1. Transforming Dependency Structures to Logical Forms for Semantic Parsing
  2. The interaction of compositional semantics and event semantics

About

Transform natural language to logical representation with Neo-Davidsonian event semantics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages