Joining Extractions of Regular Expressions

被引:22
|
作者
Freydenberger, Dominik D. [1 ]
Kimelfeld, Benny [2 ]
Peterfreund, Liat [2 ]
机构
[1] Loughborough Univ, Loughborough, Leics, England
[2] Technion Israel Inst Technol, Haifa, Israel
基金
以色列科学基金会;
关键词
Information Extraction; Document Spanners; Regular Expressions; Unions of Conjunctive Queries; Polynomial Delay; KNOWLEDGE-BASE; SYSTEM;
D O I
10.1145/3196959.3196967
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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 the 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. Such queries have been investigated in prior work on document spanners, but little is known about the (combined) complexity of their evaluation. We show that the lower bounds (NP-completeness 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.
引用
收藏
页码:137 / 149
页数:13
相关论文
共 50 条
  • [41] Regular expressions with timed dominoes
    Dima, C
    DISCRETE MATHEMATICS AND THEORETICAL COMPUTER SCIENCE, PROCEEDINGS, 2003, 2731 : 141 - 154
  • [42] Fuzzy regular tree expressions
    Huang, Xiaofeng
    Mo, Zhiwen
    Shu, Lan
    PROCEEDINGS OF THE 2013 JOINT IFSA WORLD CONGRESS AND NAFIPS ANNUAL MEETING (IFSA/NAFIPS), 2013, : 703 - 708
  • [43] Enumerating regular expressions and their languages
    Lee, J
    Shallit, J
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, 2005, 3317 : 2 - 22
  • [44] AYMMETRIC AND ANTISYMMETRIC REGULAR EXPRESSIONS
    GILL, A
    SIAM JOURNAL ON APPLIED MATHEMATICS, 1970, 18 (03) : 539 - &
  • [45] Repairing Regular Expressions for Extraction
    Chida, Nariyoshi
    Terauchi, Tachio
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (PLDI):
  • [46] The inclusion problem for regular expressions
    Hovland, Dag
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2012, 78 (06) : 1795 - 1813
  • [47] Regular expressions for program computations
    Prather, RE
    AMERICAN MATHEMATICAL MONTHLY, 1997, 104 (02): : 120 - 130
  • [48] Higher Order Regular Expressions
    Sicak, Michal
    2015 13TH INTERNATIONAL CONFERENCE ON ENGINEERING OF MODERN ELECTRIC SYSTEMS (EMES), 2015,
  • [49] On Lookaheads in Regular Expressions with Backreferences
    Chida, Nariyoshi
    Terauchi, Tachio
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2023, E106D (05) : 959 - 975
  • [50] REWRITING EXTENDED REGULAR EXPRESSIONS
    ANTIMIROV, VM
    MOSSES, PD
    THEORETICAL COMPUTER SCIENCE, 1995, 143 (01) : 51 - 72