[论文解读] A Comparative Study of PDF Parsing Tools Across Diverse Document Categories
本文在六类文档中使用 DocLayNet,对 10 种 PDF 解析工具进行比较,评估文本提取和表格检测,以识别不同文档类型下的工具优势。
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.
研究动机与目标
- Evaluate how well state-of-the-art PDF parsers extract text across diverse document categories using a large, multi-domain dataset.
- Assess the table detection capabilities of rule-based and learning-based parsers across document types.
- Analyze how document category affects extraction quality and identify tool-specific strengths and weaknesses.
- Provide guidance on selecting parsers based on document type and task (text vs. table extraction).
提出的方法
- Use DocLayNet as ground truth for six document categories (Financial, Manuals, Scientific, Laws & Regulations, Patents, Government Tenders).
- Ground truth text is generated from DocLayNet JSON annotations with a defined token ordering process.
- Evaluate text extraction with Levenshtein-based F1, BLEU-4, and local alignment metrics.
- Evaluate table detection using Jaccard/IoU thresholds depending on whether bounding boxes are available.
- Compare 10 open-source tools (rule-based and learning-based) across text and table extraction tasks.
- Ground truth and parser outputs are aligned to produce category-wise performance tables.
实验结果
研究问题
- RQ1Which PDF parsers provide the best overall text extraction quality across different document categories?
- RQ2How do learning-based tools compare to rule-based parsers in challenging categories like Scientific articles and Patents?
- RQ3Which tools perform best for table detection across document types, and how does document category influence performance?
- RQ4What recommendations can be given for selecting parsers based on document category and specific extraction tasks?
主要发现
- PyMuPDF and pypdfium often provide superior text extraction performance in several categories.
- Nougat (learning-based) outperforms rule-based parsers in Scientific documents.
- For table detection, Table Transformer (TATR) excels in Financial, Patent, Law & Regulations, and Scientific categories, while Camelot performs best for Government Tenders and PyMuPDF for Manual documents.
- In Scientific and Patent documents, several parsers struggle, with learning-based approaches offering notable improvements in these challenging categories.
- Overall, tool performance strongly depends on document type and the extraction task (text vs. table).
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。