ocr-annotations
收藏资源简介:
PDF OCR分类数据集包含带有OCR分类注释的PDF文档。总共有1620个样本,分为两个类别:需要OCR处理的OCR类别和不需要OCR处理的NOCR类别。每个样本包括原始PDF文件名、PDF文件的二进制数据、二进制分类标签(OCR/NOCR)、PDF是否截断的信息以及PDF文件的大小(以字节为单位)。数据集的类分布为:NOCR类别有1393个样本,OCR类别有227个样本。
The PDF OCR Classification Dataset contains PDF documents annotated with OCR classification tags. There are 1620 samples in total, divided into two categories: the OCR category requiring OCR processing and the NOCR category not requiring OCR processing. Each sample includes the original PDF filename, the binary data of the PDF file, the binary classification label (OCR/NOCR), information on whether the PDF is truncated, and the size of the PDF file in bytes. The class distribution of the dataset is: the NOCR category has 1393 samples, while the OCR category has 227 samples.
PDF OCR分类数据集概述
数据集基本信息
- 数据集名称: OCR-Annotations
- 许可证类型: odc-by
- 支持语言: 英语
- 数据规模: 超过1TB
- 总样本数量: 1620个
数据集内容描述
该数据集包含用于OCR分类任务的带标注PDF文档。
数据结构
每条数据记录包含以下字段:
filename: 原始PDF文件名pdf: 二进制格式的PDF文件数据class: 二元分类标签(OCR/NOCR)truncation_type: PDF文件是否被截断pdf_size_bytes: PDF文件大小(字节)
类别分布
- NOCR类别: 1393个样本
- OCR类别: 227个样本
使用方式
python from datasets import load_dataset
加载数据集
dataset = load_dataset("HuggingFaceFW/ocr-annotations")
访问训练集
train_data = dataset[train]
访问样本
sample = train_data[0] pdf_bytes = sample[pdf] # 字节格式 label = sample[class]
许可证说明
请查阅原始数据源获取详细的许可证信息。




