Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError
Exception: TypeError
Message: 'str' object is not a mapping
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
config_names = get_dataset_config_names(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1207, in dataset_module_factory
raise e1 from None
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1182, in dataset_module_factory
).get_module()
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 612, in get_module
dataset_infos = DatasetInfosDict.from_dataset_card_data(dataset_card_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/info.py", line 396, in from_dataset_card_data
dataset_info = DatasetInfo._from_yaml_dict(dataset_card_data["dataset_info"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/info.py", line 317, in _from_yaml_dict
yaml_data["features"] = Features._from_yaml_list(yaml_data["features"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2138, in _from_yaml_list
return cls.from_dict(from_yaml_inner(yaml_data))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2134, in from_yaml_inner
return {name: from_yaml_inner(_feature) for name, _feature in zip(names, obj)}
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2129, in from_yaml_inner
return from_yaml_inner(obj["dtype"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/features/features.py", line 2131, in from_yaml_inner
return {"_type": snakecase_to_camelcase(_type), **unsimplify(obj)[_type]}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'str' object is not a mappingNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
latin-ocr-sample
OCR-model comparison published with ocrscout. Each row pairs one source page with one model's normalized output.
Summary
- Pages: 5
- Models: 4
- Rows: 20
- Pages with errors: 0
- Mean disagreement: 0.612
- Median disagreement: 0.673
- Source images embedded: yes
- Generated: 2026-04-28 08:00 UTC by ocrscout v0.1.0
Per-model metrics
| Model | Format | Pages OK | Pages errored | Total tokens | Mean tokens/pg | Mean s/pg | Mean prepare s | Mean chars | Mean items |
|---|---|---|---|---|---|---|---|---|---|
| dots-mocr | layout_json | 5 | 0 | 16789 | 3357.8 | 20.22 | 0.00 | 7048 | 18.6 |
| glm-ocr | markdown | 5 | 0 | 9796 | 1959.2 | 9.32 | 0.00 | 5869 | 7.8 |
| lighton-ocr2 | markdown | 5 | 0 | 10061 | 2012.2 | 7.27 | 0.00 | 6237 | 10.8 |
| paddleocr-vl | markdown | 5 | 0 | 17316 | 3463.2 | 5.36 | 0.00 | 6148 | 8.2 |
Top-disagreement pages
Pairwise word-diff distance averaged across all models on the page. 0 = perfect agreement; 1 = no shared tokens.
| Page | Models | Disagreement |
|---|---|---|
| gri_33125011258585_0655.jp2 | 4 | 0.751 |
| gri_33125011258585_0115.jp2 | 4 | 0.701 |
| gri_33125011258585_0282.jp2 | 4 | 0.673 |
| gri_33125011258585_0760.jp2 | 4 | 0.487 |
| gri_33125011258585_0026.jp2 | 4 | 0.449 |
Schema
Each row in data/train-*.parquet is one (page, model) pair.
| Column | Type | Notes |
|---|---|---|
page_id |
string | Stable id from the source adapter. |
model |
string | ocrscout profile name. |
source_uri |
string | Original image path or URL (provenance). |
image |
image | Source page bytes, embedded by ocrscout publish. |
output_format |
string | markdown, doctags, layout_json, … |
document_json |
string | Full DoclingDocument JSON. |
markdown |
string | DoclingDocument.export_to_markdown(). |
raw_payload |
string | The model's pre-normalization output. |
tokens |
int | Generated tokens (when reported). |
error |
string | Set when the page failed for this model. |
metrics_json |
string | Per-row JSON metrics (timings, sizes, …). |
scores_json |
string | Reference-eval scores when an evaluator ran. |
Use this dataset
Load with datasets:
from datasets import load_dataset
ds = load_dataset("storytracer/latin-ocr-sample", split="train")
print(ds[0]["page_id"], ds[0]["model"])
Browse with the ocrscout viewer:
pip install 'ocrscout[viewer] @ git+https://github.com/storytracer/ocrscout.git'
python -c "from huggingface_hub import snapshot_download; print(snapshot_download('storytracer/latin-ocr-sample', repo_type='dataset', local_dir='./scout-snap'))"
ocrscout viewer ./scout-snap
Pipeline configuration
The full ocrscout pipeline that produced this dataset:
name: run
source:
name: hf_dataset
args:
path: /home/seb/data/ocr/latin/gri_33125011258585/gri_33125011258585_jp2
sample: 5
seed: 42
reference: null
models:
- dots-mocr
- glm-ocr
- paddleocr-vl
- lighton-ocr2
normalizer_overrides: {}
export:
name: parquet
args:
dest: /home/seb/data/ocr/latin-sample-whole-page/data/train-00000-of-00001.parquet
evaluator: null
reporter: null
sample: 5
output_dir: /home/seb/data/ocr/latin-sample-whole-page
- Downloads last month
- 28