| --- |
| tags: |
| - ocr |
| - document-processing |
| - surya |
| - structured |
| - uv-script |
| - generated |
| --- |
| |
| # Surya OCR 2 (table) on davanstrien/ufo-ColPali |
|
|
| Table recognition (mode `full`) over images in |
| [davanstrien/ufo-ColPali](https://huggingface.co/datasets/davanstrien/ufo-ColPali) using |
| [Surya OCR 2](https://huggingface.co/datalab-to/surya-ocr-2) (650M, Qwen3.5-based) by Datalab, via the |
| [`surya-ocr`](https://github.com/datalab-to/surya) package, run as **offline vLLM batch |
| inference** on Hugging Face Jobs. |
|
|
| ## Processing Details |
|
|
| - **Source Dataset**: [davanstrien/ufo-ColPali](https://huggingface.co/datasets/davanstrien/ufo-ColPali) |
| - **Model**: [datalab-to/surya-ocr-2](https://huggingface.co/datalab-to/surya-ocr-2) |
| - **Task**: `table` (table mode `full`) |
| - **Input column**: `image` (image) |
| - **Text column**: `markdown` (flattened, reading-order text per row) |
| - **Structured column**: `surya_blocks` (JSON: per-page blocks with bbox / polygon / label / reading_order / confidence / html) |
| - **Split**: `train` |
| - **Samples**: 3 |
| - **Processed OK**: 3 / 3 |
| - **Processing time**: 3.3 min |
| - **Date**: 2026-06-22 13:35 UTC |
| |
| ## License note |
| |
| Surya's code is Apache-2.0, but the model **weights** use a modified OpenRAIL-M |
| license: free for research, personal use, and startups under $5M funding/revenue, |
| restricted from competitive use against Datalab's API. See the |
| [model card](https://huggingface.co/datalab-to/surya-ocr-2). |
| |
| ## Dataset Structure |
| |
| Original columns plus: |
| - `markdown`: flattened text (OCR), label outline (layout), or table HTML (table) |
| - `surya_blocks`: structured result as a JSON string (one entry per page) |
| - `inference_info`: JSON list tracking models applied to this dataset |
|
|
| Generated with [UV Scripts](https://huggingface.co/uv-scripts). |
|
|