文档生成器的递归程序
Recursive Programs for Document Spanners
摘要:
文档抽取器将用于信息抽取(IE)的程序建模为一个函数,该函数将文本文档(有限字母表上的字符串)作为输入,并在预定义的模式上产生跨度(文档中的间隔)的关系。一种研究得很好的语言是正则空间:regex公式上的关系代数,它是通过将捕获变量添加到正则表达式中获得的。等价地,正则空间是在正则表达式公式上的非递归数据库中可表达的空间(从输入文档中提取扮演EDB角色的关系)。在本文中,我们研究的表达能力,递归Datasheet上正则表达式公式。我们的主要结果是,这样的程序捕捉精确的文件空间可计算的多项式时间。额外的结果比较递归程序已知的形式主义,如语言的核心sparkle(通过允许测试字符串的平等性扩展常规sparkle)和其关闭下的差异。最后,我们扩展我们的主要结果,最近提出的框架,概括了关系模型和文档空间。
英文摘要:
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 obtained by adding capture variables to regular expressions. Equivalently, the regular spanners are the ones expressible in non-recursive Datalog over regex formulas (extracting relations that play the role of EDBs from the input document). In this paper, we investigate the expressive power of recursive Datalog over regex formulas. Our main result is that such programs capture precisely the document spanners computable in polynomial time. Additional results compare recursive programs to known formalisms such as the language of core spanners (that extends regular spanners by allowing to test for string equality) and its closure under difference. Finally, we extend our main result to a recently proposed framework that generalizes both the relational model and document spanners.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。