Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

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.

image

PDF OCR Classification Dataset

This dataset contains PDF documents with annotations for OCR classification tasks.

Dataset Structure

Each row contains:

  • filename: Original PDF filename
  • pdf: PDF file as binary data (using Pdf feature type)
  • class: Binary classification label (OCR/NOCR)
  • truncation_type: Whether the PDF is truncated or non-truncated
  • pdf_size_bytes: Size of the PDF file in bytes

Class Distribution

class NOCR 1393 OCR 227

Usage

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']

License

Please check the original data source for licensing information.

Downloads last month
83

Collection including HuggingFaceFW/ocr-annotations