Text Analysis

We develop foundations of declarative languages for analyzing text alongside structured data

The amount of available textual data is rapidly increasing, and so is the potential value for organizations in its analysis. Yet, typical extraction of data from textual resources is done outside of the database, via programs that are fundamentally different from the traditional declarative query languages. We develop foundations of declarative languages for analyzing text alongside structured data. Among our main efforts is the design of efficient algorithms for programs, and their compilation into efficient execution plans.

People

Collaborators

Publications

  1. A Framework for Argument Mining in Halakhic Traditional Texts

    Oren Mishali, Benny Kimelfeld

    ArgMining 2025

    Text Analysis

  2. A Dataset for Metaphor Detection in Early Medieval Hebrew Poetry

    Michael Toker, Yonatan Belinkov, Oren Mishali, Ophir Münz-Manor, Benny Kimelfeld

    EACL 2024

    Text Analysis

  3. Skyline Operators for Document Spanners

    Antoine Amarilli, Benny Kimelfeld, Sébastien Labbé, Stefan Mengel

    ICDT 2024

    Text Analysis

  4. SpannerLib: Embedding Declarative Information Extraction in an Imperative Workflow

    Dean Light, Ahmad Aiashi, Mahmoud Diab, Daniel Nachmias, Stijn Vansummeren, Benny Kimelfeld

    VLDB 2024: 4281-4284

    Text Analysis

  5. Gender-Sensitive Word Embeddings for Healthcare

    Shunit Agmon, Plia Gillis, Eric Horvitz, Kira Radinsky

    JAMIA 2022

    Text Analysis

  6. The Complexity of Aggregates over Extractions by Regular Expressions

    Johannes Doleschal, Noa Bratman, Benny Kimelfeld, Wim Martens

    ICDT 2021

    Text Analysis

  7. VIS-À-VIS: Detecting Similar Patterns in Annotated Literary Text

    Oren Mishali, Moshe Schor, Ophir Münz-Manor

    VIS4DH 2020

    Text Analysis

  8. Weight Annotation in Information Extraction

    Johannes Doleschal, Benny Kimelfeld, Wim Martens, Liat Peterfreund

    ICDT 2020

    Text Analysis

  9. Complexity Bounds for Relational Algebra over Document Spanners

    Dominik D. Freydenberger, Benny Kimelfeld, Markus Kröll, Liat Peterfreund

    PODS 2019: 320-334

    Text Analysis

  10. Learning to Generate Personalized Product Descriptions

    Guy Elad, Ido Guy, Kira Radinsky, Slava Novgorodov, Benny Kimelfeld

    CIKM 2019: 389-398

    Text Analysis

  11. Recursive Programs for Document Spanners

    Liat Peterfreund, Balder ten Cate, Ronald Fagin, Benny Kimelfeld

    ICDT 2019

    Text Analysis

    Abstract

    A document spanner models a program for Information Extraction (IE) as a function that takes as input a text document (string over a finite alphabet) and produces a relation of spans (intervals in the document) over a predefined schema. A well-studied language for expressing spanners is that of the regular spanners: relational algebra over regex formulas, which are regular expressions with capture variables. Equivalently, the regular spanners are the ones expressible in non-recursive Datalog over regex formulas (which extract relations that constitute the extensional database). This paper explores the expressive power of recursive Datalog over regex formulas. We show that such programs can express precisely the document spanners computable in polynomial time. We compare this expressiveness to known formalisms such as the closure of regex formulas under the relational algebra and string equality. Finally, we extend our study to a recently proposed framework that generalizes both the relational model and the document spanners.

  12. Split-Correctness in Information Extraction

    Johannes Doleschal, Benny Kimelfeld, Wim Martens, Yoav Nahshon, Frank Neven

    PODS 2019: 149-163

    Text Analysis

  13. Joining Extractions of Regular Expressions

    Dominik D. Freydenberger, Benny Kimelfeld, Liat Peterfreund

    PODS 2018: 137-149

    Text Analysis Query Optimization Enumeration Algorithms

    Abstract

    Regular expressions with capture variables, also known as “regex formulas,” extract relations of spans (interval positions) from text. These relations can be further manipulated via Relational Algebra as studied in the context of document spanners, Fagin et al.’s formal framework for information extraction. We investigate the complexity of querying text by Conjunctive Queries (CQs) and Unions of CQs (UCQs) on top of regex formulas. We show that the lower bounds (NPcompleteness and W[1]-hardness) from the relational world also hold in our setting; in particular, hardness hits already single-character text! Yet, the upper bounds from the relational world do not carry over. Unlike the relational world, acyclic CQs, and even gamma-acyclic CQs, are hard to compute. The source of hardness is that it may be intractable to instantiate the relation defined by a regex formula, simply because it has an exponential number of tuples. Yet, we are able to establish general upper bounds. In particular, UCQs can be evaluated with polynomial delay, provided that every CQ has a bounded number of atoms (while unions and projection can be arbitrary). Furthermore, UCQ evaluation is solvable with FPT (Fixed-Parameter Tractable) delay when the parameter is the size of the UCQ.

  14. Towards Linked Data of Bible Quotations in Jewish Texts

    Oren Mishali, Benny Kimelfeld

    DH 2018: 455-456

    Text Analysis Knowledge Bases

    Abstract

    The Hebrew Bible (the Tanakh) is the most ancient and sacred collection of Jewish texts. Throughout the history, additional religious Jewish texts have been written such as the Mishna, the Babylonian Talmud, and many more. These additional texts are often related to (or inspired by) the Bible. As such, many of them quote verses from the Bible. Depending mostly on their frequency and location within the text, the quotations may indicate a weak or strong semantic relation between a given text and a specific portion of the Bible. Knowing these semantic relations may be beneficial for those interested in studying or investigating the Bible.

    We report an ongoing project that aims to establish the machinery for the automatic detection and rigorous representation of quotations of Bible verses within Jewish texts. The project consists of three interleaving components. In the first component, an algorithm for identifying Bible quotations in text is developed. In the second, the results of executing the algorithm on a large and open text corpus are represented as a Linked Data graph (RDF dataset). In the third component, we develop a web frontend for making the dataset accessible to end users.

  15. Declarative Cleaning of Inconsistencies in Information Extraction

    Ronald Fagin, Benny Kimelfeld, Frederick Reiss, Stijn Vansummeren

    ACM Trans. Database Syst. 41(1): 6:1-6:44 (2016)

    Text Analysis

    Abstract

    The population of a predefined relational schema from textual content, commonly known as Information Extraction (IE), is a pervasive task in contemporary computational challenges associated with Big Data. Since the textual content varies widely in nature and structure (from machine logs to informal natural language), it is notoriously difficult to write IE programs that unambiguously extract the sought information. For example, during extraction, an IE program could annotate a substring as both an address and a person name. When this happens, the extracted information is said to be inconsistent, and some way of removing inconsistencies is crucial to compute the final output. Industrial-strength IE systems like GATE and IBM SystemT therefore provide a built-in collection of cleaning operations to remove inconsistencies from extracted relations. These operations, however, are collected in an ad hoc fashion through use cases. Ideally, we would like to allow IE developers to declare their own policies. But existing cleaning operations are defined in an algorithmic way, and hence it is not clear how to extend the built-in operations without requiring low-level coding of internal or external functions.

    We embark on the establishment of a framework for declarative cleaning of inconsistencies in IE through principles of database theory. Specifically, building upon the formalism of document spanners for IE, we adopt the concept of prioritized repairs, which has been recently proposed as an extension of the traditional database repairs to incorporate priorities among conflicting facts. We show that our framework captures the popular cleaning policies, as well as the POSIX semantics for extraction through regular expressions. We explore the problem of determining whether a cleaning declaration is unambiguous (i.e., always results in a single repair) and whether it increases the expressive power of the extraction language. We give both positive and negative results, some of which are general and some of which apply to policies used in practice.

  16. Document Spanners: A Formal Approach to Information Extraction

    Ronald Fagin, Benny Kimelfeld, Frederick Reiss, Stijn Vansummeren

    J. ACM 62(2): 12:1-12:51 (2015)

    Text Analysis

    Abstract

    An intrinsic part of information extraction is the creation and manipulation of relations extracted from text. In this article, we develop a foundational framework where the central construct is what we call a document spanner (or just spanner for short). A spanner maps an input string into a relation over the spans (intervals specified by bounding indices) of the string. The focus of this article is on the representation of spanners. Conceptually, there are two kinds of such representations. Spanners defined in a primitive representation extract relations directly from the input string; those defined in an algebra apply algebraic operations to the primitively represented spanners. This framework is driven by SystemT, an IBM commercial product for text analysis, where the primitive representation is that of regular expressions with capture variables.

    We define additional types of primitive spanner representations by means of two kinds of automata that assign spans to variables. We prove that the first kind has the same expressive power as regular expressions with capture variables; the second kind expresses precisely the algebra of the regularspanners—the closure of the first kind under standard relational operators. The core spanners extend the regular ones by string-equality selection (an extension used in SystemT). We give some fundamental results on the expressiveness of regular and core spanners. As an example, we prove that regular spanners are closed under difference (and complement), but core spanners are not. Finally, we establish connections with related notions in the literature.