gravityocr-dev / README.md
tl-hyungguk's picture
Fix loading instructions in the card
447ce14 verified
|
Raw History Blame Contribute Delete
2.89 kB
---
dataset_info:
features:
- name: id
dtype: string
- name: image
dtype: image
- name: prompt
dtype: string
- name: target
dtype: string
- name: task_type
dtype: string
- name: kind
dtype: string
- name: source
dtype: string
- name: source_detail
dtype: string
- name: lang
dtype: string
- name: degradation
dtype: string
- name: width
dtype: int32
- name: height
dtype: int32
- name: gt_status
dtype: string
- name: domain
dtype: string
- name: note
dtype: string
- name: render
dtype: string
- name: difficulty
dtype: string
splits:
- name: dev
num_bytes: 23788218
num_examples: 402
download_size: 23657073
dataset_size: 23788218
configs:
- config_name: default
data_files:
- split: dev
path: data/dev-*
---
# gravityocr-dev
GravityOCR region-level OCR dev set: 402 cropped regions (Korean text, tables and formulas, plus English text), each with its prompt and target.
**Shared with participants** for their own testing and tuning.
```python
from datasets import load_dataset
ds = load_dataset("trillionlabs/gravityocr-dev", split="dev") # 402 rows
```
Gated: request access on this page first and log in (`hf auth login`) with the account that was approved.
## Composition
| source | text | table | formula | total |
|---|---|---|---|---|
| blog | 125 | 10 | 27 | 162 |
| screenshot | 2 | 3 | 1 | 6 |
| authored | – | – | 34 | 34 |
| synthetic | – | 50 | – | 50 |
| aihub-479 | 33 | – | 67 | 100 |
| omnidocbench (en) | 50 | – | – | 50 |
| **total** | 210 | 63 | 129 | **402** |
## Tasks
Each row is one cropped region, its `prompt`, and the `target` the model should output.
| task | prompt | target format |
|---|---|---|
| text | `Text Recognition:` | plain text, with inline math as `$…$` |
| table | `Table Recognition:` | HTML `<table>`, header rows as `td`, merged cells as `rowspan`/`colspan` |
| formula | `Formula Recognition:` | bare LaTeX, with no `$` (`\tag` is ignored when scoring) |
## Scoring
Scoring follows OmniDocBench's own metric code:
- **text:** 1 − normalized edit distance, after removing spaces and punctuation; BLEU is a secondary metric.
- **table:** TEDS; TEDS-S is a secondary metric.
- **formula:** CDM.
Overall = mean(text 1−NED, table TEDS, formula CDM) × 100. Report the score per `source` as well: the handwritten (aihub-479)
and English (omnidocbench) parts have their own difficulty.
## Columns
id, image, prompt, target, task_type, kind, source, source_detail, lang, degradation, width, height, gt_status,
domain, note, render, difficulty.
`gt_status` describes the target:
- empty: exact by construction, i.e. rendered from the target;
- `human_verified`: screenshots;
- `aihub_label`: AI Hub human labels, which have some noise;
- `omnidocbench_gt`: OmniDocBench annotations.