Enumerating grammar-based extractions

被引:0
|
作者
Peterfreund, Liat [1 ,2 ]
机构
[1] Hebrew Univ Jerusalem, Sch Comp Sci & Engn, Jerusalem, Israel
[2] Gustave Eiffel Univ, CNRS, LIGM, Paris, France
关键词
Information extraction; Document spanners; Context-free grammars; Constant-delay enumeration; Regular expressions; Pushdown automata; SYSTEM;
D O I
10.1016/j.dam.2023.08.014
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
We propose a new grammar-based language for defining information extractors from documents (text) that is built upon the well-studied framework of document spanners for extracting structured data from text. While previously studied formalisms for document spanners are mainly based on regular expressions, we use an extension of context-free grammars, called extraction grammars, to define the new class of context free spanners. Extraction grammars are simply context-free grammars extended with variables that capture interval positions of the document, namely spans. While regular expressions are efficient for tokenizing and tagging, context-free grammars are also efficient for capturing structural properties. Indeed, we show that context-free spanners are strictly more expressive than their regular counterparts. We reason about the expressive power of our new class and present a pushdown-automata model that captures it. We show that extraction grammars can be evaluated with polynomial data complexity. Nevertheless, as the degree of the polynomial depends on the query, we present an enumeration algorithm for unambiguous extraction grammars that, after quintic preprocessing, outputs the results sequentially, without repetitions, with a constant delay between every two consecutive ones.(c) 2023 Elsevier B.V. All rights reserved.
引用
收藏
页码:372 / 392
页数:21
相关论文
共 50 条
  • [1] Grammar-based Fuzzing
    Sargsyan, Sevak
    Kurmangaleev, Shamil
    Mehrabyan, Matevos
    Mishechkin, Maksim
    Ghukasyan, Tsolak
    Asryan, Sergey
    [J]. 2018 IVANNIKOV MEMORIAL WORKSHOP (IVMEM 2018), 2018, : 32 - 35
  • [2] Grammar-based Encoding of Facades
    Haegler, Simon
    Wonka, Peter
    Arisona, Stefan Mueller
    Van Gool, Luc
    Mueller, Pascal
    [J]. COMPUTER GRAPHICS FORUM, 2010, 29 (04) : 1479 - 1487
  • [3] Grammar-Based Evolution of Polyominoes
    Megane, Jessica
    Medvet, Eric
    Lourenco, Nuno
    Machado, Penousal
    [J]. GENETIC PROGRAMMING, EUROGP 2024, 2024, 14631 : 56 - 72
  • [4] Grammar-Based Tree Compression
    Lohrey, Markus
    [J]. DEVELOPMENTS IN LANGUAGE THEORY (DLT 2015), 2015, 9168 : 46 - 57
  • [5] Grammar-based immune programming
    Bernardino, Heder S.
    Barbosa, Helio J. C.
    [J]. NATURAL COMPUTING, 2011, 10 (01) : 209 - 241
  • [6] Grammar-based whitebox fuzzing
    Godefroid, Patrice
    Kiezun, Adam
    Levin, Michael Y.
    [J]. ACM SIGPLAN NOTICES, 2008, 43 (06) : 206 - 215
  • [7] Grammar-based Whitebox Fuzzing
    Godefroid, Patrice
    Kiezun, Adam
    Levin, Michael Y.
    [J]. PLDI'08: PROCEEDINGS OF THE 2008 SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN & IMPLEMENTATION, 2008, : 206 - +
  • [8] Grammar-based graph compression
    Maneth, Sebastian
    Peternek, Fabian
    [J]. INFORMATION SYSTEMS, 2018, 76 : 19 - 45
  • [9] Grammar-based immune programming
    Heder S. Bernardino
    Helio J. C. Barbosa
    [J]. Natural Computing, 2011, 10 : 209 - 241
  • [10] Grammar-based whitebox fuzzing
    Microsoft Research, Redmond, WA, United States
    不详
    不详
    [J]. ACM SIGPLAN Not., 6 (206-215):