Efficient Enumeration Algorithms for Regular Document Spanners
Authors:
Open Access
- 8 February 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 45 (1) , 1-42
Abstract
Regular expressions and automata models with capture variables are core tools in rule-based information extraction. These formalisms, also called regular document spanners , use regular languages to locate the data that a user wants to extract from a text document and then store this data into variables. Since document spanners can easily generate large outputs, it is important to have efficient evaluation algorithms that can generate the extracted data in a quick succession, and with relatively little precomputation time. Toward this goal, we present a practical evaluation algorithm that allows output-linear delay enumeration of a spanner’s result after a precomputation phase that is linear in the document. Although the algorithm assumes that the spanner is specified in a syntactic variant of variable-set automata, we also study how it can be applied when the spanner is specified by general variable-set automata, regex formulas, or spanner algebras. Finally, we study the related problem of counting the number of outputs of a document spanner and provide a fine-grained analysis of the classes of document spanners that support efficient enumeration of their results.Keywords
Funding Information
- Fondo Nacional de Desarrollo Científico y Tecnológico (11160383 and 11150653)
- Innoviris (SPICES)
This publication has 16 references indexed in Scilit:
- Constant Delay Enumeration for Conjunctive QueriesACM SIGMOD Record, 2015
- Document SpannersJournal of the ACM, 2015
- Cleaning inconsistencies in information extraction via prioritized repairs2014
- Database principles in information extraction2014
- Enumeration of monadic second-order queries on treesACM Transactions on Computational Logic, 2013
- Linear delay enumeration and monadic second-order logicDiscrete Applied Mathematics, 2009
- SystemTACM SIGMOD Record, 2009
- Type inference for unique pattern matchingACM Transactions on Programming Languages and Systems, 2006
- A very hard log-space counting classTheoretical Computer Science, 1993
- The Complexity of Enumeration and Reliability ProblemsSIAM Journal on Computing, 1979