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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-sa-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- translation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- fr
|
| 8 |
+
- de
|
| 9 |
+
- it
|
| 10 |
+
- hu
|
| 11 |
+
- pl
|
| 12 |
+
- ru
|
| 13 |
+
- es
|
| 14 |
+
- cs
|
| 15 |
+
- tr
|
| 16 |
+
- sv
|
| 17 |
+
- nl
|
| 18 |
+
- fi
|
| 19 |
+
- 'no'
|
| 20 |
+
- ro
|
| 21 |
+
- la
|
| 22 |
+
- kn
|
| 23 |
+
- id
|
| 24 |
+
- zh
|
| 25 |
+
- ko
|
| 26 |
+
- ka
|
| 27 |
+
- ja
|
| 28 |
+
- vi
|
| 29 |
+
- sq
|
| 30 |
+
- be
|
| 31 |
+
- et
|
| 32 |
+
pretty_name: Multilingual Image Translation Groups
|
| 33 |
+
size_categories:
|
| 34 |
+
- 1K<n<10K
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
# Dataset Card for HuggingFaceFW/Multilingual-Image-Translation-Groups
|
| 38 |
+
|
| 39 |
+
## Dataset Summary
|
| 40 |
+
|
| 41 |
+
The IMG-MT dataset is a multilingual dataset of images containing text, where visually identical images differ only in the language of the embedded text. The texts appearing at the same positions across images are translations of each other.
|
| 42 |
+
|
| 43 |
+
The dataset was created to support the evaluation of systems that perform **text detection, translation and rendering in images**, such as pipelines for image-based machine translation or OCR-based translation systems.
|
| 44 |
+
|
| 45 |
+
All images originate from Wikimedia Commons and are grouped into language groups consisting of visually identical images that differ only in the language of the text.
|
| 46 |
+
|
| 47 |
+
The dataset contains **26 languages** and supports evaluation of translation between multiple language pairs.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
## Dataset Details
|
| 51 |
+
|
| 52 |
+
### Dataset Description
|
| 53 |
+
|
| 54 |
+
The dataset consists of pairs of images containing translated text. Each pair contains:
|
| 55 |
+
|
| 56 |
+
- a **source image** with text in one language
|
| 57 |
+
- a **target image** with the translated text in another language
|
| 58 |
+
|
| 59 |
+
Bounding boxes for text regions are provided, along with the corresponding source and translated text strings.
|
| 60 |
+
|
| 61 |
+
### Dataset characteristics
|
| 62 |
+
|
| 63 |
+
- Images contain text embedded in graphics (e.g., diagrams, maps, educational illustrations).
|
| 64 |
+
- Images in a group are visually identical except for the language of the text.
|
| 65 |
+
- Text blocks are aligned across images using bounding boxes.
|
| 66 |
+
|
| 67 |
+
### Dataset Sources
|
| 68 |
+
|
| 69 |
+
- **Source of images:** Images were collected from **Wikimedia Commons**
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
## Uses
|
| 73 |
+
|
| 74 |
+
The dataset is suitable for:
|
| 75 |
+
|
| 76 |
+
- Evaluation of **image translation pipelines**
|
| 77 |
+
- Evaluation of **OCR + machine translation systems**
|
| 78 |
+
- Benchmarking **text detection in images**
|
| 79 |
+
- Testing **text rendering after translation**
|
| 80 |
+
- Multilingual **visual-language research**
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
## Dataset Structure
|
| 84 |
+
|
| 85 |
+
### Dataset Organization
|
| 86 |
+
|
| 87 |
+
The dataset is divided into two parts:
|
| 88 |
+
|
| 89 |
+
- `dev/` — development set used for tuning and development
|
| 90 |
+
- `test/` — test set used for final evaluation
|
| 91 |
+
|
| 92 |
+
Each of these sets contains several numbered folders (`{languageGroupNumber}/`), each representing a language group.
|
| 93 |
+
|
| 94 |
+
These folders store images (in `png/` folder) and reference JSON files (`{sourceLangCode}-{targetLangCode}.json`).
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
| Folder/File | Description |
|
| 98 |
+
|---|---|
|
| 99 |
+
| `dev/` | Development dataset |
|
| 100 |
+
| `test/` | Test dataset |
|
| 101 |
+
| `{languageGroupNumber}/` | Group of images that differ only by language |
|
| 102 |
+
| `png/` | Images in different languages |
|
| 103 |
+
| `{sourceLangCode}-{targetLangCode}.json` | Reference translation data |
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
### Data Format
|
| 107 |
+
|
| 108 |
+
Reference translation data are stored in **JSON format** with the following structure:
|
| 109 |
+
|
| 110 |
+
```json
|
| 111 |
+
{
|
| 112 |
+
"source_language": "language code",
|
| 113 |
+
|
| 114 |
+
"source_PNG": {
|
| 115 |
+
"size": {
|
| 116 |
+
"width": px,
|
| 117 |
+
"height": px
|
| 118 |
+
},
|
| 119 |
+
"path_to_image": "path",
|
| 120 |
+
"wikimedia_url": "url"
|
| 121 |
+
},
|
| 122 |
+
|
| 123 |
+
"text_bounding_box": [
|
| 124 |
+
{
|
| 125 |
+
"x": float,
|
| 126 |
+
"y": float,
|
| 127 |
+
"w": float,
|
| 128 |
+
"h": float
|
| 129 |
+
}
|
| 130 |
+
],
|
| 131 |
+
|
| 132 |
+
"texts": ["string"],
|
| 133 |
+
|
| 134 |
+
"target_language": "language code",
|
| 135 |
+
|
| 136 |
+
"translated_texts": ["string"],
|
| 137 |
+
|
| 138 |
+
"target_PNG": {
|
| 139 |
+
"size": {
|
| 140 |
+
"width": px,
|
| 141 |
+
"height": px
|
| 142 |
+
},
|
| 143 |
+
"path_to_image": "path",
|
| 144 |
+
"wikimedia_url": "url"
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
| Field | Description |
|
| 151 |
+
| ------------------- | -------------------------------------------- |
|
| 152 |
+
| `source_language` | Language code of the source text |
|
| 153 |
+
| `source_PNG` | Information about the source image |
|
| 154 |
+
| `text_bounding_box` | Bounding boxes of text regions |
|
| 155 |
+
| `texts` | Source texts extracted from the image |
|
| 156 |
+
| `target_language` | Language code of the translated text |
|
| 157 |
+
| `translated_texts` | Translated texts corresponding to the source |
|
| 158 |
+
| `target_PNG` | Information about the translated image |
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
The lists: `text_bounding_box`, `texts`, `translated_texts` are aligned — items at the same index correspond to the same text region.
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
## Dataset Statistics
|
| 165 |
+
|
| 166 |
+
The dataset contains 26 languages and multiple language groups of varying sizes. The largest language group contains 12 translated images.
|
| 167 |
+
|
| 168 |
+
Example language statistics:
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
| Language | Code | Groups | Pairings |
|
| 172 |
+
| --------- | ---- | ------ | -------- |
|
| 173 |
+
| English | en | 435 | 1530 |
|
| 174 |
+
| French | fr | 204 | 796 |
|
| 175 |
+
| German | de | 160 | 668 |
|
| 176 |
+
| Italian | it | 120 | 604 |
|
| 177 |
+
| Hungarian | hu | 79 | 368 |
|
| 178 |
+
| Polish | pl | 67 | 398 |
|
| 179 |
+
| Russian | ru | 67 | 296 |
|
| 180 |
+
| Spanish | es | 62 | 266 |
|
| 181 |
+
| Czech | cs | 59 | 314 |
|
| 182 |
+
| Turkish | tr | 50 | 260 |
|
| 183 |
+
| Swedish | sv | 49 | 284 |
|
| 184 |
+
| Dutch | nl | 37 | 200 |
|
| 185 |
+
| Finnish | fi | 31 | 184 |
|
| 186 |
+
| Norwegian | no | 28 | 146 |
|
| 187 |
+
| Romanian | ro | 28 | 146 |
|
| 188 |
+
| Latin | la | 9 | 70 |
|
| 189 |
+
| Swedish | sv | 49 | 284 |
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
Smaller language groups also include languages such as: Kannada, Indonesian, Chinese, Korean, Georgian, Japanese, Vietnamese, Albanian, Belarusian and Estonian.
|
| 193 |
+
|
| 194 |
+
Language groups range in size from 2 to 12 images.
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
## Dataset Creation
|
| 199 |
+
|
| 200 |
+
### Source Data
|
| 201 |
+
|
| 202 |
+
Images were collected from Wikimedia Commons.
|
| 203 |
+
|
| 204 |
+
#### Data Collection and Processing
|
| 205 |
+
|
| 206 |
+
The collection process involved:
|
| 207 |
+
|
| 208 |
+
- Searching for images that exist in multiple languages
|
| 209 |
+
|
| 210 |
+
- Selecting images that are visually identical except for the text language
|
| 211 |
+
|
| 212 |
+
- Grouping images into language groups
|
| 213 |
+
|
| 214 |
+
- Extracting text regions using bounding boxes
|
| 215 |
+
|
| 216 |
+
- Recording corresponding source and translated texts
|
| 217 |
+
|
| 218 |
+
Each language group contains images representing the same graphic with text translated into different languages.
|
| 219 |
+
|