Datasets:
Formats:
json
Size:
1K - 10K
Tags:
ocr
visual-question-answering
text-recognition
document-understanding
scene-text
synthetic-data
License:
Polish SGOCR v1 release card
Browse files- README.md +72 -97
- assets/examples/example_1.jpg +3 -0
- assets/examples/example_2.png +3 -0
README.md
CHANGED
|
@@ -13,129 +13,104 @@ tags:
|
|
| 13 |
- metadata-only
|
| 14 |
size_categories:
|
| 15 |
- 1K<n<10K
|
| 16 |
-
pretty_name: SGOCR
|
| 17 |
---
|
| 18 |
|
| 19 |
-
# SGOCR
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
-
|
| 28 |
-
|
| 29 |
-
- `data/source_images.jsonl`: one row per source image referenced by accepted QA rows.
|
| 30 |
-
|
| 31 |
-
- `metadata/accepted_dataset_original.jsonl.gz`: compressed original accepted rows as emitted by the run.
|
| 32 |
-
|
| 33 |
-
- `metadata/rejected_dataset.jsonl.gz` and `metadata/raw_results.jsonl.gz`: compressed audit artifacts from generation.
|
| 34 |
-
|
| 35 |
-
- `metadata/summary.json`, `metadata/source_manifest.json`, `metadata/run_report.json`: run metadata and provenance.
|
| 36 |
-
|
| 37 |
-
## Counts
|
| 38 |
-
|
| 39 |
-
- Accepted QA rows: `5737`
|
| 40 |
-
|
| 41 |
-
- Referenced source images: `1958`
|
| 42 |
-
|
| 43 |
-
- Raw teacher rows: `15214`
|
| 44 |
-
|
| 45 |
-
- Rejected rows: `9477`
|
| 46 |
-
|
| 47 |
-
## Source Breakdown
|
| 48 |
-
|
| 49 |
-
- `chartqa`: `1964` QA rows, `754` images
|
| 50 |
-
|
| 51 |
-
- `coco_text`: `1987` QA rows, `570` images
|
| 52 |
-
|
| 53 |
-
- `textocr`: `1786` QA rows, `634` images
|
| 54 |
-
|
| 55 |
-
## Question Type Breakdown
|
| 56 |
-
|
| 57 |
-
- `DIRECT_READ`: `2778` rows
|
| 58 |
-
|
| 59 |
-
- `REVERSE_GROUND`: `409` rows
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
##
|
| 66 |
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
## Example
|
| 74 |
|
| 75 |
-
### Example 1
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
-
|
| 82 |
|
| 83 |
-
|
| 84 |
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
### Example 2
|
| 90 |
-
|
| 91 |
-
- Source: `chartqa` / `shared` / `ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c`
|
| 92 |
-
|
| 93 |
-
- Question type: `YES_NO`
|
| 94 |
-
|
| 95 |
-
- Question: Does the black label's upper-left text near the upper-left area of the image say '25-34'?
|
| 96 |
-
|
| 97 |
-
- Answer: `No`
|
| 98 |
-
|
| 99 |
-
- Anchor: `blue bar`; reference: `None`; relation: `on`
|
| 100 |
-
|
| 101 |
-
- Source path hint: `data/vm_ssl/raw/chartqa/images/ce/ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c.png`
|
| 102 |
-
|
| 103 |
-
## How To Join Images
|
| 104 |
-
|
| 105 |
-
This repo intentionally does not redistribute images. Download the upstream datasets yourself, then join using `source_dataset`, `source_split`, and `source_image_id`.
|
| 106 |
-
|
| 107 |
-
- `chartqa`: download ChartQA from its official distribution. Join `source_image_id` to the image file stem, usually `<source_image_id>.png`; the original local path hint is in `source_image_path`.
|
| 108 |
-
|
| 109 |
-
- `textocr`: download TextOCR v0.1 train data. Join `source_image_id` to `TextOCR_0.1_train.json["imgs"][source_image_id]["file_name"]`.
|
| 110 |
-
|
| 111 |
-
- `coco_text`: download COCO train2014 images and COCO-Text metadata if needed. Join `source_image_id` to `COCO_train2014_<12-digit-source_image_id>.jpg`.
|
| 112 |
-
|
| 113 |
-
## Field Guide
|
| 114 |
-
|
| 115 |
-
### Identity and source columns
|
| 116 |
-
|
| 117 |
-
`sample_id`, `image_id`, `source_dataset`, `source_split`, `source_image_id`, `source_image_path`, `source_file_name`, `upstream_dataset`, `join_hint`, `dataset_source`
|
| 118 |
-
|
| 119 |
-
### QA columns
|
| 120 |
-
|
| 121 |
-
`question`, `answer`, `question_type`, `answer_level`, `answer_type`, `answer_source`, `text_length_bin`, `text_case`
|
| 122 |
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
-
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
-
|
| 134 |
|
| 135 |
-
|
| 136 |
|
| 137 |
-
|
| 138 |
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
|
|
|
| 13 |
- metadata-only
|
| 14 |
size_categories:
|
| 15 |
- 1K<n<10K
|
| 16 |
+
pretty_name: SGOCR
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# SGOCR
|
| 20 |
|
| 21 |
+
SGOCR is a source-referenced OCR visual question answering dataset. It contains synthetic question-answer pairs grounded in text regions and visual anchors from ChartQA, TextOCR, and COCO/COCO-Text images.
|
| 22 |
|
| 23 |
+
This repository is intentionally metadata-first: it does not redistribute the full upstream image corpora. Each sample includes source-specific image identifiers so users can join against their own licensed copies of the source datasets.
|
| 24 |
|
| 25 |
+
- Project repo: https://github.com/cothogonal/sgocr-dataset-pipeline
|
| 26 |
+
- Current release tag: `v1.0.0`
|
| 27 |
+
- Hugging Face revisions: this dataset repo is Git-backed. Future releases can add rows or columns while preserving this snapshot through tags and commit history.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## Dataset Snapshot
|
| 30 |
|
| 31 |
+
| Split | QA rows | Source images | Image hosting |
|
| 32 |
+
|---|---:|---:|---|
|
| 33 |
+
| `train` | 5,737 | 1,958 | Source-referenced; full image corpus not redistributed |
|
| 34 |
|
| 35 |
+
## Source Mix
|
| 36 |
|
| 37 |
+
| Source | QA rows | Source images | Join key |
|
| 38 |
+
|---|---:|---:|---|
|
| 39 |
+
| `chartqa` | 1,964 | 754 | `source_image_id` = ChartQA image stem |
|
| 40 |
+
| `textocr` | 1,786 | 634 | `source_image_id` = TextOCR image id |
|
| 41 |
+
| `coco_text` | 1,987 | 570 | `source_image_id` = COCO train2014 numeric id |
|
| 42 |
|
| 43 |
+
## Question Types
|
| 44 |
|
| 45 |
+
| Question type | Rows | Description |
|
| 46 |
+
|---|---:|---|
|
| 47 |
+
| `DIRECT_READ` | 2,778 | Read visible text in a grounded region. |
|
| 48 |
+
| `REVERSE_GROUND` | 409 | Identify or localize an anchor from text-region context. |
|
| 49 |
+
| `TEXT_PROPERTY` | 915 | Ask about properties of visible text, such as count or case. |
|
| 50 |
+
| `YES_NO` | 1,635 | Verify whether a grounded region contains a proposed text/value. |
|
| 51 |
|
| 52 |
+
## Example Samples
|
| 53 |
|
| 54 |
+
### Example 1: Direct Read
|
| 55 |
|
| 56 |
+

|
| 57 |
|
| 58 |
+
| Field | Value |
|
| 59 |
+
|---|---|
|
| 60 |
+
| Source | `coco_text` / `train` / `282357` |
|
| 61 |
+
| Question | What does the sign say, specifically the upper-left text around the top-center area of the image? |
|
| 62 |
+
| Answer | `BHAR` |
|
| 63 |
+
| Anchor | `sign` |
|
| 64 |
+
| Relation | `above` |
|
| 65 |
|
| 66 |
+
### Example 2: Yes No
|
| 67 |
|
| 68 |
+

|
| 69 |
|
| 70 |
+
| Field | Value |
|
| 71 |
+
|---|---|
|
| 72 |
+
| Source | `chartqa` / `shared` / `ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c` |
|
| 73 |
+
| Question | Does the black label's upper-left text near the upper-left area of the image say '25-34'? |
|
| 74 |
+
| Answer | `No` |
|
| 75 |
+
| Anchor | `blue bar` |
|
| 76 |
+
| Relation | `on` |
|
| 77 |
|
| 78 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
+
| Path | Purpose |
|
| 81 |
+
|---|---|
|
| 82 |
+
| `data/train.jsonl` | Main training/evaluation table, one QA sample per row. |
|
| 83 |
+
| `data/source_images.jsonl` | Image-level join table with one row per referenced source image. |
|
| 84 |
+
| `metadata/summary.json` | Compact generation summary and aggregate statistics. |
|
| 85 |
+
| `metadata/source_manifest.json` | Source-image manifest for the sampled image universe. |
|
| 86 |
+
| `metadata/run_report.json` | Provenance metadata for this release. |
|
| 87 |
+
| `metadata/*.jsonl.gz` | Compressed audit artifacts for users who need generation traces. |
|
| 88 |
|
| 89 |
+
## Main Columns
|
| 90 |
|
| 91 |
+
| Group | Columns |
|
| 92 |
+
|---|---|
|
| 93 |
+
| Identity | `sample_id`, `image_id` |
|
| 94 |
+
| Source join | `source_dataset`, `source_split`, `source_image_id`, `source_file_name`, `upstream_dataset`, `join_hint` |
|
| 95 |
+
| QA | `question`, `answer`, `question_type`, `answer_level`, `answer_type`, `answer_source` |
|
| 96 |
+
| Text and anchors | `anchor_label`, `ref_label`, `relation`, `text_node_ids`, `text_polygon`, `text_bbox_xywh_*`, `anchor_xyxy_*`, `ref_xyxy_*` |
|
| 97 |
+
| Image metadata | `image_width`, `image_height` |
|
| 98 |
+
| Quality/provenance | `ocr_confidence`, `resolvable`, `unique`, `quality_tier`, `inline_frontier_correct`, `teacher_provider`, `teacher_model`, `prompt_variant` |
|
| 99 |
|
| 100 |
+
## Joining Images
|
| 101 |
|
| 102 |
+
| Source | How to obtain images | Join procedure |
|
| 103 |
+
|---|---|---|
|
| 104 |
+
| ChartQA | Download ChartQA from its official distribution. | Join `source_image_id` to the ChartQA image stem, typically `<source_image_id>.png`. |
|
| 105 |
+
| TextOCR | Download TextOCR v0.1 train data. | Join `source_image_id` through `TextOCR_0.1_train.json["imgs"][source_image_id]["file_name"]`. |
|
| 106 |
+
| COCO / COCO-Text | Download COCO train2014 images and COCO-Text metadata as needed. | Join `source_image_id` to `COCO_train2014_<12-digit-source_image_id>.jpg`. |
|
| 107 |
|
| 108 |
+
## Versioning
|
| 109 |
|
| 110 |
+
Hugging Face dataset repositories are Git-backed. Use the `v1.0.0` tag for this release. Future SGOCR releases can be published as additional commits and tags in the same `SGOCR` repository, keeping old snapshots addressable by tag or commit SHA.
|
| 111 |
|
| 112 |
+
## License And Source Dataset Terms
|
| 113 |
|
| 114 |
+
This repository contains SGOCR annotations and metadata plus two small illustrative example images in the dataset card. The full upstream image corpora are not redistributed here. Users are responsible for obtaining ChartQA, TextOCR, COCO, and COCO-Text under their respective licenses and terms of use before joining images to the metadata.
|
| 115 |
|
| 116 |
+
The SGOCR annotations are released for research and dataset-development use. Because samples are derived from third-party image datasets, downstream redistribution or commercial use may require compliance with the upstream dataset licenses in addition to this repository's terms.
|
assets/examples/example_1.jpg
ADDED
|
Git LFS Details
|
assets/examples/example_2.png
ADDED
|
Git LFS Details
|