dp-bench
收藏资源简介:
DP-Bench是一个用于文档解析的基准数据集,旨在评估解析器将复杂文档(如PDF和扫描图像)转换为结构化文本格式(如HTML和Markdown)的性能。数据集包含来自多个来源的样本,涵盖广泛的文档结构和复杂性。评估指标包括用于元素检测和序列化的NID,以及用于表格结构识别的TEDS和TEDS-S。数据集以JSON格式提供,包含每个元素的详细注释,包括坐标、类别和内容。
DP-Bench is a benchmark dataset for document parsing, aiming to evaluate the performance of parsers in converting complex documents such as PDF and scanned images into structured text formats including HTML and Markdown. The dataset contains samples from multiple sources, covering a wide range of document structures and complexities. Evaluation metrics include NID for element detection and serialization, as well as TEDS and TEDS-S for table structure recognition. The dataset is provided in JSON format, with detailed annotations for each element including coordinates, categories and content.
DP-Bench: Document Parsing Benchmark
概述
DP-Bench 是一个用于评估文档解析器性能的基准数据集。该数据集旨在将复杂的文档(如PDF和扫描图像)转换为结构化的文本格式(如HTML和Markdown),并提供了一套新的评估指标来衡量解析器的性能。
评估指标
- NID (Normalized Indel Distance): 用于评估元素检测和序列化的性能。
- TEDS (Tree Edit Distance-based Similarity): 用于评估表格结构识别的性能。
- TEDS-S (Tree Edit Distance-based Similarity-Struct): 专门用于评估表格结构的相似性。
数据集来源
- Library of Congress: 90个样本
- Open Educational Resources: 90个样本
- Upstage: 20个样本
布局元素
数据集包含12种布局元素:
- Paragraph: 804
- Heading1: 194
- Footer: 168
- Caption: 154
- Header: 101
- List: 91
- Chart: 67
- Footnote: 63
- Equation: 58
- Figure: 57
- Table: 55
- Index: 10
数据集格式
数据集以JSON格式存储,每个元素包含位置、布局类别和内容。内容格式包括文本、HTML和Markdown。
文档领域
数据集涵盖多个领域,包括社会科学、自然科学、技术和数学与信息科学。
使用方法
设置
- 需要安装Git LFS来处理大文件。
- 通过克隆仓库并安装依赖项来设置环境。
推理
提供推理脚本以从各种文档解析服务请求结果。
评估
- Element detection and serialization evaluation: 使用NID指标评估文档布局结果。
- Table structure recognition evaluation: 使用TEDS和TEDS-S指标评估表格识别性能。
排行榜
| Source | Request date | TEDS ↑ | TEDS-S ↑ | NID ↑ | Avg. Time (secs) ↓ |
|---|---|---|---|---|---|
| upstage | 2024-10-10 | 92.06 | 93.81 | 96.23 | 3.79 |
| aws | 2024-10-10 | 86.39 | 90.22 | 95.94 | 14.47 |
| llamaparse | 2024-10-10 | 73.36 | 76.29 | 92.22 | 4.14 |
| unstructured | 2024-10-10 | 64.49 | 69.90 | 90.42 | 13.14 |
| 2024-10-10 | 64.64 | 70.95 | 90.09 | 5.85 | |
| microsoft | 2024-10-10 | 85.54 | 89.07 | 87.03 | 4.44 |




