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 numeric semirings. For a number of these problems, fundamental properties of the underlying semiring, such as positivity, are crucial for establishing tractability.
翻译:文档宽度框架将文本的信息提取任务摘要化为函数, 将每个文档( 字符串) 映射到文档范围的关系( 以其起始和终点指数识别的中间线) 。 例如, 常规的分隔符是在“ 关系代数( RA) ” 下关闭含有捕获变量的常规表达式, 而常规的宽度的表达力正是由VSet- automata 类( 显示选定跨度终点的限制性导体) 通过( 积极的) RA 操作者通过 预断点来传播的。 因此, 在这项工作中, 我们开始对文件宽度测量者进行调查, 用信任、 支持和保密措施等辅助信息来说明精确度提取。 为此, 我们采用Green et 等人( 等) 的外观符号的缩略图, 其中的外观通过精度通过半导线操作者( RA 操作者) 传递注释。 因此, 拟议的宽度扩展值, 是指一个注释, 将每串的精度 的直径直径直径直线绘制为 底的直径直径直径直径, 。