File size: 7,224 Bytes
25d3bd6
 
 
 
 
 
 
 
 
 
 
e6c71a6
 
47f78b9
 
25d3bd6
 
47f78b9
0e5116d
47f78b9
 
25d3bd6
 
 
 
 
d4cffaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25d3bd6
d4cffaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: issue_id
    dtype: string
  - name: page_name
    dtype: string
  - name: publication_id
    dtype: string
  - name: year
    dtype: int32
  - name: ocr
    dtype: string
  splits:
  - name: train
    num_bytes: 327307277
    num_examples: 1000
  download_size: 325933814
  dataset_size: 327307277
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
license: apache-2.0
task_categories:
  - image-to-text
language:
  - is
tags:
  - ocr
  - icelandic
  - historical-documents
  - newspapers
  - document-layout
  - timarit
  - research
size_categories:
  - n<1K
pretty_name: Timarit OCR
---

# Timarit OCR

## Dataset Description

This dataset contains page-level images extracted from historical Icelandic newspapers and periodicals sourced from [timarit.is](https://timarit.is), Iceland's national digital archive of newspapers and magazines. Each sample pairs a page image with structured OCR output, providing ground-truth data for Icelandic historical documents.

OCR transcriptions were generated using [rednote-hilab/dots.ocr](https://huggingface.co/rednote-hilab/dots.ocr), a state-of-the-art document OCR model.

### Dataset Summary

- **Language:** Icelandic (`is`)
- **Source:** [timarit.is](https://timarit.is) — Iceland's National and University Library digital archive
- **OCR Model:** [rednote-hilab/dots.ocr](https://huggingface.co/rednote-hilab/dots.ocr)
- **Format:** Images (PNG) with structured JSON OCR output
- **Primary Use Case:** OCR training and evaluation for historical Icelandic text

### Supported Tasks

- **OCR / Image-to-Text:** Pairs of document images and their transcribed text for training or evaluating OCR models on historical Icelandic typography.
- **Document Layout Analysis:** Page-level images suitable for detecting text regions, columns, and other layout elements typical of historical Nordic newspaper printing.

---

## Dataset Structure

### Data Fields

| Field | Type | Description |
|---|---|---|
| `image` | `Image` | Page-level scan of the source document (505px–3370px wide) |
| `imagewidth` | `int` | Width of the image in pixels |
| `issue_id` | `string` | Identifier for the specific issue (1–6 chars) |
| `page_name` | `string` | Name of the page within the issue (178 unique values) |
| `publication_id` | `string` | Identifier for the publication (1–4 chars) |
| `year` | `int32` | Publication year |
| `ocr` | `string` | Structured JSON OCR output from dots.ocr, containing detected text regions |

The `ocr` column contains a JSON-serialized list of detected text blocks. Each block has the following structure:

| Key | Type | Description |
|---|---|---|
| `box` | `list[int]` | Bounding box of the text region as `[x1, y1, x2, y2]` |
| `text` | `string` | Transcribed text content of the region |
| `category` | `string` | Layout category (e.g. `"Title"`, `"Text"`) |
| `confidence` | `float` | Model confidence score for the detection (0.0–1.0) |

Example `ocr` entry:
```json
[
  {"box": [366, 136, 1060, 502], "text": "FJÁRMÁLA FTIRLITIÐ", "category": "Title", "confidence": 1.0},
  {"box": [496, 721, 868, 760], "text": "Leiðbeinandi tilmæli", "category": "Text", "confidence": 1.0}
]
```

To parse the `ocr` column in Python:
```python
import json
from datasets import load_dataset

ds = load_dataset("Sigurdur/timarit-ocr")
ocr_blocks = json.loads(ds["train"][0]["ocr"])
for block in ocr_blocks:
    print(block["category"], block["text"])
```

### Data Splits

| Split | Size |
|---|---|
| `train` | 1000 |

---

## Source Data

### About timarit.is

[timarit.is](https://timarit.is) is the digital newspaper and periodical archive maintained by the National and University Library of Iceland (Landsbókasafn Íslands – Háskólabókasafn). It contains digitized issues of Icelandic newspapers and magazines spanning from the 19th century to the present, making it the primary resource for historical Icelandic printed text.

### Collection Process

Pages were sourced from publicly available scans on timarit.is. Images were extracted at the page level and OCR transcriptions were generated using [rednote-hilab/dots.ocr](https://huggingface.co/rednote-hilab/dots.ocr).

---

## Copyright & Licensing

This dataset is released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). **Attribution is required** — if you use this dataset, you must cite the author (see citation below).

### Source Material Copyright

The source material in this dataset is drawn from [timarit.is](https://timarit.is), the digital archive of the National and University Library of Iceland. Under Icelandic copyright law, a work enters the public domain **70 years after the death of the author**. Not all documents in this dataset can be guaranteed to meet this threshold.

**This dataset is intended solely for research purposes.** Users must not use this dataset or its contents for commercial purposes. It is the responsibility of the user to verify the copyright status of any specific document before use beyond non-commercial academic research. The dataset author assumes no liability for copyright infringement arising from downstream use.

---

## Usage

```python
import json
from datasets import load_dataset

ds = load_dataset("Sigurdur/timarit-ocr")
sample = ds["train"][0]

# View image metadata
print(sample["publication_id"], sample["issue_id"], sample["year"])

# Parse OCR blocks
ocr_blocks = json.loads(sample["ocr"])
for block in ocr_blocks:
    print(block["category"], block["text"])
```

---

## Intended Use

This dataset is intended for:

- Training and fine-tuning OCR models on historical Icelandic text
- Evaluating OCR performance on low-resource Nordic language documents
- Research into historical document understanding and layout analysis for Icelandic

---

## Limitations & Biases

- Coverage is limited to publications available on timarit.is and may not represent all historical Icelandic print media.
- Historical documents may contain archaic spelling, ligatures, and fonts that differ significantly from modern Icelandic text.
- Scan quality varies across publications and time periods, which may affect model performance.
- OCR transcriptions were generated automatically by `dots.ocr` and may contain errors, particularly on degraded or low-resolution scans.

---

## Citation

If you use this dataset, please cite:

```bibtex
@dataset{sigurdur2025timaritocr,
  author    = {Sigurdur Sigurdarson},
  title     = {Timarit OCR: Historical Icelandic Newspaper OCR Dataset},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/Sigurdur/timarit-ocr}
}
```

You may also want to cite the OCR model used to generate transcriptions:

```bibtex
@misc{rednote2025dotsocr,
  author    = {rednote-hilab},
  title     = {dots.ocr},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/rednote-hilab/dots.ocr}
}
```

---

## Related Datasets

- [Sigurdur/isl-finepdfs-images](https://huggingface.co/datasets/Sigurdur/isl-finepdfs-images) — Icelandic PDF page images from the HuggingFaceFW/finepdfs collection