📄 FinePDFs
Collection
82 items • Updated • 29
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
This dataset contains PDF documents with annotations for OCR classification tasks.
Each row contains:
filename: Original PDF filenamepdf: PDF file as binary data (using Pdf feature type)class: Binary classification label (OCR/NOCR)truncation_type: Whether the PDF is truncated or non-truncatedpdf_size_bytes: Size of the PDF file in bytesclass NOCR 1393 OCR 227
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("HuggingFaceFW/ocr-annotations")
# Access train split
train_data = dataset['train']
# Access a sample
sample = train_data[0]
pdf_bytes = sample['pdf'] # This will be bytes
label = sample['class']
Please check the original data source for licensing information.