The framework of document spanners abstracts the task of information extraction from text as a function that maps every document (a string) into a relation over the document's spans (intervals identified by their start and end indices). For instance, the regular spanners are the closure under the Relational Algebra (RA) of the regular expressions with capture variables, and the expressive power of the regular spanners is precisely captured by the class of VSet-automata -- a restricted class of transducers that mark the endpoints of selected spans. In this work, we embark on the investigation of document spanners that can annotate extractions with auxiliary information such as confidence, support, and confidentiality measures. To this end, we adopt the abstraction of provenance semirings by Green et al., where tuples of a relation are annotated with the elements of a commutative semiring, and where the annotation propagates through the positive RA operators via the semiring operators. Hence, the proposed spanner extension, referred to as an annotator, maps every string into an annotated relation over the spans. As a specific instantiation, we explore weighted VSet-automata that, similarly to weighted automata and transducers, attach semiring elements to transitions. We investigate key aspects of expressiveness, such as the closure under the positive RA, and key aspects of computational complexity, such as the enumeration of annotated answers and their ranked enumeration in the case of ordered semirings. For a number of these problems, fundamental properties of the underlying semiring, such as positivity, are crucial for establishing tractability.
翻译:文件宽度框架将文本的信息提取任务摘要化为函数,将每个文档(一个字符串)映射到文档的跨度关系中(以其起始和终点指数识别的中间线)。例如,经常的跨线员是在“关系代数(RA)”下关闭带有捕获变量的常规表达式,正常的跨线员的表达力精确地被VSet-autoomata这一类别所捕捉,这是一个有限的传输器类别,它标志了选定跨度的终点。在这项工作中,我们开始调查能够用信任、支持和保密措施等辅助信息来说明提取的文件跨度的跨线员。为此,我们采用了Green et 等人(RA) 所选取的外观符号,其中的外观通过半线操作器操作员通过积极的 RA 操作员传播注释。因此, 拟议的扩展范围,作为注释师, 将每个关键转换过程的直径直线绘制到一个关键基本信息,例如信任、支持、 支持、 支持、 直径的直径的直线关系,作为我们进行加权的排序的排序。