跨不同文档类别的PDF解析工具比较研究
A Comparative Study of PDF Parsing Tools Across Diverse Document Categories
AI总结:
本研究使用DocLayNet数据集比较了10种PDF解析工具在6类文档上的文本提取与表格检测能力,发现工具表现因文档类型而异,强调需根据任务和文档类型选择合适工具。
摘要:
PDF是最突出的数据格式之一,使得PDF解析对信息提取和检索至关重要,尤其是在RAG系统兴起的背景下。尽管存在各种PDF解析工具,但它们在不同文档类型上的有效性仍缺乏研究,尤其是在学术论文之外的领域。我们的研究旨在通过使用DocLayNet数据集比较6个文档类别中的10种流行PDF解析工具来填补这一空白。这些工具包括PyPDF、pdfminer-six、PyMuPDF、pdfplumber、pypdfium2、Unstructured、Tabula、Camelot,以及基于深度学习的工具Nougat和Table Transformer(TATR)。我们评估了文本提取和表格检测能力。在文本提取方面,PyMuPDF和pypdfium总体上优于其他工具,但所有解析器在处理科学和专利文档时都遇到困难。对于这些具有挑战性的类别,像Nougat这样的基于学习的工具表现出更优越的性能。在表格检测方面,TATR在金融、专利、法律法规和科学类别中表现突出。表格检测工具Camelot在招标文档中表现最佳,而PyMuPDF在手册类别中表现更优。我们的发现强调了根据文档类型和具体任务选择合适解析工具的重要性,为处理多样化文档来源的研究人员和从业者提供了有价值的见解。
英文摘要:
PDF is one of the most prominent data formats, making PDF parsing crucial for information extraction and retrieval, particularly with the rise of RAG systems. While various PDF parsing tools exist, their effectiveness across different document types remains understudied, especially beyond academic papers. Our research aims to address this gap by comparing 10 popular PDF parsing tools across 6 document categories using the DocLayNet dataset. These tools include PyPDF, pdfminer-six, PyMuPDF, pdfplumber, pypdfium2, Unstructured, Tabula, Camelot, as well as the deep learning-based tools Nougat and Table Transformer(TATR). We evaluated both text extraction and table detection capabilities. For text extraction, PyMuPDF and pypdfium generally outperformed others, but all parsers struggled with Scientific and Patent documents. For these challenging categories, learning-based tools like Nougat demonstrated superior performance. In table detection, TATR excelled in the Financial, Patent, Law & Regulations, and Scientific categories. Table detection tool Camelot performed best for tender documents, while PyMuPDF performed superior in the Manual category. Our findings highlight the importance of selecting appropriate parsing tools based on document type and specific tasks, providing valuable insights for researchers and practitioners working with diverse document sources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。