WordScape
收藏资源简介:
WordScape是一个用于从网络爬取数据中提取多语言、视觉丰富的文档,并带有布局注释的管道。该管道能够提取网页中的Word文档,将文档页面渲染为图像,提取文本,并生成语义实体的边界框注释。
WordScape is a pipeline designed for extracting multilingual, visually rich documents with layout annotations from web-crawled data. This pipeline is capable of extracting Word documents from web pages, rendering document pages into images, extracting text, and generating bounding box annotations for semantic entities.
数据集概述
数据集名称
WordScape
数据集功能
WordScape是一个用于从网络爬虫数据中提取多语言、视觉丰富的文档并进行布局标注的管道。该管道能够从网页中提取Word文档,将文档页面渲染为图像,提取文本,并为语义实体生成边界框标注。
数据集组成
- 文档URL列表:包含9.4M个URL,每个URL附带SHA256校验和,用于直接下载文档并验证其完整性。
- 多个Common Crawl快照:
- 2013-48: 57,150个URL
- 2016-50: 309,734个URL
- 2020-40: 959,098个URL
- 2021-43: 1,424,709个URL
- 2023-06: 3,009,335个URL
- 2023-14: 3,658,202个URL
- 全部: 9,418,228个URL
数据集处理流程
- Common Crawl解析:从Common Crawl快照中提取指向Word文件的URL。
- 文档下载:从提取的URL下载文档,并根据多种标准(如HTTP错误、无效格式等)进行筛选。
- 文档标注:处理下载的Word文档,使用FastText识别语言,通过LibreOffice和PDF2Image将文档页面渲染为jpeg,生成边界框标注,并使用Python-docx和PDFPlumber提取文本。
数据集扩展与模型训练
提供工具以根据实体类别、实体数量、语言及语言和质量分数过滤原始数据集,并提供脚本用于训练YOLOv5l模型。
数据集使用
可通过Docker运行整个管道,直接处理预处理的URL列表,下载相关文档并进行标注,创建数据集。
支持平台
该管道已在MacOS和Linux Ubuntu及CentOS上成功测试。
引用信息
@inproceedings{wordscape, author={Weber, Maurice and Siebenschuh, Carlo and Butler, Rory Marshall and Alexandrov, Anton and Thanner, Valdemar Ragnar and Tsolakis, Georgios and Jabbar, Haris and Foster, Ian and Li, Bo and Stevens, Rick and Zhang, Ce}, booktitle = {Advances in Neural Information Processing Systems}, title={WordScape: a Pipeline to extract multilingual, visually rich Documents with Layout Annotations from Web Crawl Data}, year={2023} }




