We use cookies to improve your experience with our site.

从长文档中提取深度可变的文档逻辑结构:方法、评估和应用

Extracting Variable-Depth Logical Document Hierarchy from Long Documents: Method, Evaluation, and Application

  • 摘要: 1、研究背景:近期,随着信息技术渗透到各个垂直领域(例如金融,法律,政府和教育领域),电子文档的数量迅速增加。为了从这些非结构化文档中获得有价值的信息,获取基础文档结构至关重要,这样可以方便对这些文档进行重新编辑、重新设置样式或重新排列。并且文档结构也对支持许多下游NLP和文本挖掘应用程序至关重要。 但是,从这些文档的编辑格式(例如WORD和LaTeX)到其显示格式(例如PDF和JPG)的转换过程,仅仅保证了文档布局的不变性,但文档中基本的物理和逻辑结构则部分或完全丢失了。因此,使得这种转换过程总体上是可逆的仍然是一个未解决的问题。处于这些原因,本文旨在研究从长文档中提取深度可变的文档逻辑结构。
    2、目标:本文的研究目标是从长文档中提取深度可变的文档逻辑结构。换句话说,旨在将已经识别出来的文档物理对象重新组织成层级结构。难点在于长文档包含众多的物理对象,并且这些物理对象处于不同层次从而导致不同文档的层级深度不同。
    3、方法:受人类如何在阅读中文档层级结构的启发,我们提出了一种基于神经网络的新模型。本模型的输入是已经识别出来的文档物理对象组成的一个有序序列,本模型的输出是这些文档物理对象组成的层级结构树。具体来说,按照物理对象的序列顺序,我们依次将每个物理对象插入树的适当位置。对于某一个待插入的对象,按照确定的遍历顺序,我们查询当前树中所有可能的插入位置,直到找到合适的位置为止。 确定每个可能的插入位置是否合适可以用二分类问题来表示,即“放置或跳过”。如此,生成层次树,直到所有物理对象都已插入。进一步,我们还探究了该模型的一些变种,包括:插入节点时不同的遍历顺序的影响,显式或隐式地检测标题,插入过程中对错误节点的容错等。为了判断逻辑结构树的准确率,我们提出了一种新的评估指标。除此之外,我们还探索了逻辑结构树对下游的段落检索任务的影响。
    4、结果:依据实验结果,本文提出的模型在中文年报数据集、英文年报数据集和arXiv文档数据集中分别获得0.9726,0.7291和0.9578的F1值。而对比的基准模型的准确率都低于本文提出的模型。另外,在前两个个数据集上,显式地提取标题使得准确率提升了0.0148、0.1184的F1值。在下游的段落检索任务中,使用了逻辑层级树的特征后,在mAP指标上获得了0.189的提升。
    5、结论:依据实验结果,本文提出的模型相比于两个基准模型,在准确率上都获得了明显地提升。同时,由于显式地提取标题明确地提高了准确率和效率,因此我们选择了两阶段模型。从根到叶的遍历顺序实现了准确率和效率之间的最优权衡,而从叶到根的遍历方法则牺牲一部分效率的前提下获得最高的准确率。并且,获得了文档逻辑层次之后,也能提升后续任务中段落检索的准确率。综上所述,我们提出的长文档逻辑结构提取模型是有效的。

     

    Abstract: In this paper, we study the problem of extracting variable-depth "logical document hierarchy" from long documents, namely organizing the recognized "physical document objects" into hierarchical structures. The discovery of logical document hierarchy is the vital step to support many downstream applications (e.g., passage-based retrieval and high-quality information extraction). However, long documents, containing hundreds or even thousands of pages and a variable-depth hierarchy, challenge the existing methods. To address these challenges, we develop a framework, namely Hierarchy Extraction from Long Document (HELD), where we "sequentially" insert each physical object at the proper position on the current tree. Determining whether each possible position is proper or not can be formulated as a binary classification problem. To further improve its effectiveness and efficiency, we study the design variants in HELD, including traversal orders of the insertion positions, heading extraction explicitly or implicitly, tolerance to insertion errors in predecessor steps, and so on. As for evaluations, we find that previous studies ignore the error that the depth of a node is correct while its path to the root is wrong. Since such mistakes may worsen the downstream applications seriously, a new measure is developed for a more careful evaluation. The empirical experiments based on thousands of long documents from Chinese financial market, English financial market and English scientific publication show that the HELD model with the "root-to-leaf" traversal order and explicit heading extraction is the best choice to achieve the tradeoff between effectiveness and efficiency with the accuracy of 0.972,6, 0.729,1 and 0.957,8 in the Chinese financial, English financial and arXiv datasets, respectively. Finally, we show that the logical document hierarchy can be employed to significantly improve the performance of the downstream passage retrieval task. In summary, we conduct a systematic study on this task in terms of methods, evaluations, and applications.

     

/

返回文章
返回