File size: 1,187 Bytes
1d9bbde 48a1a17 c5c0b31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
---
license: odc-by
language:
- en
pretty_name: OCR-Annotations
size_categories:
- n>1T
---

# PDF OCR Classification Dataset
This dataset contains PDF documents with annotations for OCR classification tasks.
## Dataset Description
- **Total samples**: 1620
- **Classes**: OCR (requires OCR processing), NOCR (no OCR needed)
## 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
```python
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.
|