Datasets:
Upload 2 files
Browse files
LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This dataset combines data from several sources. Each part keeps the license
|
| 2 |
+
of its source.
|
| 3 |
+
|
| 4 |
+
data/smol_Ethi_tig-Ethi_ti.csv, data/smol_Ethi_tig-Latn_eng.csv
|
| 5 |
+
Derived from SMOL (Google), https://huggingface.co/datasets/google/smol
|
| 6 |
+
License: Creative Commons Attribution 4.0 International (CC BY 4.0)
|
| 7 |
+
https://creativecommons.org/licenses/by/4.0/
|
| 8 |
+
|
| 9 |
+
data/tatoeba_Ethi_tig-multi.csv
|
| 10 |
+
Derived from Tatoeba, https://tatoeba.org
|
| 11 |
+
License: Creative Commons Attribution 2.0 France (CC BY 2.0 FR); some
|
| 12 |
+
sentences are CC0 1.0
|
| 13 |
+
https://creativecommons.org/licenses/by/2.0/fr/
|
| 14 |
+
|
| 15 |
+
data/community_Ethi_tig-Latn_eng.csv
|
| 16 |
+
Community-contributed translations.
|
| 17 |
+
License: TODO - set the license agreed with the contributors.
|
| 18 |
+
|
| 19 |
+
Changes: all parts were reformatted and cleaned (see README.md and docs/).
|
README.md
CHANGED
|
@@ -1,96 +1,187 @@
|
|
| 1 |
---
|
| 2 |
-
license: cc-by-sa-4.0
|
| 3 |
language:
|
| 4 |
-
- tig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
task_categories:
|
| 6 |
-
- translation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
##
|
| 29 |
-
|
| 30 |
-
The dataset is provided in **Parquet format**, compatible with the Hugging Face `datasets` library.
|
| 31 |
-
|
| 32 |
-
```text
|
| 33 |
-
tigre-data-parallel-multilingual/
|
| 34 |
-
├── README.md
|
| 35 |
-
└── tigre-data-parallel-multilingual.parquet
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
## Dataset Statistics and Metrics
|
| 39 |
-
|
| 40 |
-
The dataset contains **329,554 parallel sentences** across seven target languages.
|
| 41 |
-
|
| 42 |
-
### Corpus Totals
|
| 43 |
-
|
| 44 |
-
| Statistic | Value |
|
| 45 |
-
| ---------------------------- | ---------- |
|
| 46 |
-
| Total Sentences in Corpus | 329,554 |
|
| 47 |
-
| Total Source Words (Tigre) | 1,072,951 |
|
| 48 |
-
| Total Target Words | 1,240,407 |
|
| 49 |
-
| Avg Sentence Length (Tigre) | 3.26 words |
|
| 50 |
-
| Avg Sentence Length (Target) | 3.76 words |
|
| 51 |
-
|
| 52 |
-
### Language Pair Distribution (Tigre → Target Language)
|
| 53 |
-
|
| 54 |
-
| Target Language | Total Sentences | Percentage | Tigre Words | Avg Src Words/Sentence | Target Words | Avg Tgt Words/Sentence |
|
| 55 |
-
| ---------------------------- | --------------- | ---------- | ----------- | ---------------------- | ------------ | ---------------------- |
|
| 56 |
-
| ara_Arab (Arabic) | 49,964 | 15.16% | 172,645 | 3.46 | 160,675 | 3.22 |
|
| 57 |
-
| deu_Latn (German) | 80,120 | 24.31% | 258,160 | 3.22 | 321,966 | 4.02 |
|
| 58 |
-
| eng_Latn (English) | 156,206 | 47.40% | 508,318 | 3.25 | 610,321 | 3.91 |
|
| 59 |
-
| nno_Latn (Norwegian Nynorsk) | 6,001 | 1.82% | 14,055 | 2.34 | 14,619 | 2.44 |
|
| 60 |
-
| nob_Latn (Norwegian Bokmål) | 8,222 | 2.49% | 21,567 | 2.62 | 23,481 | 2.86 |
|
| 61 |
-
| swe_Latn (Swedish) | 28,554 | 8.66% | 96,439 | 3.38 | 107,562 | 3.77 |
|
| 62 |
-
| tir_Ethi (Tigrinya) | 487 | 0.15% | 1,767 | 3.63 | 1,783 | 3.66 |
|
| 63 |
-
|
| 64 |
-
## How to Download & Load the Dataset
|
| 65 |
|
| 66 |
```python
|
| 67 |
from datasets import load_dataset
|
| 68 |
-
import pandas as pd
|
| 69 |
-
|
| 70 |
-
dataset = load_dataset(
|
| 71 |
-
"BeitTigreAI/tigre-data-parallel-multilingual",
|
| 72 |
-
data_files={
|
| 73 |
-
"train": "train.parquet",
|
| 74 |
-
"validation": "validation.parquet"
|
| 75 |
-
}
|
| 76 |
-
)
|
| 77 |
-
|
| 78 |
-
print("Dataset Info:")
|
| 79 |
-
print(dataset)
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
lang_counts.columns = ["tgt_lang", "count"]
|
| 84 |
-
lang_counts["percentage"] = (lang_counts["count"] / lang_counts["count"].sum() * 100).round(2)
|
| 85 |
-
print(lang_counts.to_string(index=False))
|
| 86 |
|
|
|
|
|
|
|
|
|
|
| 87 |
```
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
## Citation
|
| 92 |
-
If you use this resource, please cite the dataset using its Hugging Face entry.
|
| 93 |
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
+
- tig
|
| 4 |
+
- ti
|
| 5 |
+
- en
|
| 6 |
+
- ar
|
| 7 |
+
- sv
|
| 8 |
+
- de
|
| 9 |
+
multilinguality: multilingual
|
| 10 |
task_categories:
|
| 11 |
+
- translation
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
license: other
|
| 15 |
+
license_name: mixed
|
| 16 |
+
license_link: LICENSE
|
| 17 |
+
pretty_name: Tigre Parallel Corpus
|
| 18 |
+
tags:
|
| 19 |
+
- tigre
|
| 20 |
+
- low-resource
|
| 21 |
+
- ge'ez-script
|
| 22 |
+
- machine-translation
|
| 23 |
+
configs:
|
| 24 |
+
- config_name: all
|
| 25 |
+
default: true
|
| 26 |
+
data_files:
|
| 27 |
+
- split: train
|
| 28 |
+
path:
|
| 29 |
+
- data/smol_Ethi_tig-Ethi_ti.csv
|
| 30 |
+
- data/smol_Ethi_tig-Latn_eng.csv
|
| 31 |
+
- data/community_Ethi_tig-Latn_eng.csv
|
| 32 |
+
- data/tatoeba_Ethi_tig-multi.csv
|
| 33 |
+
- config_name: smol_tig_ti
|
| 34 |
+
data_files:
|
| 35 |
+
- split: train
|
| 36 |
+
path: data/smol_Ethi_tig-Ethi_ti.csv
|
| 37 |
+
- config_name: smol_tig_en
|
| 38 |
+
data_files:
|
| 39 |
+
- split: train
|
| 40 |
+
path: data/smol_Ethi_tig-Latn_eng.csv
|
| 41 |
+
- config_name: community_tig_en
|
| 42 |
+
data_files:
|
| 43 |
+
- split: train
|
| 44 |
+
path: data/community_Ethi_tig-Latn_eng.csv
|
| 45 |
+
- config_name: tatoeba_tig_multi
|
| 46 |
+
data_files:
|
| 47 |
+
- split: train
|
| 48 |
+
path: data/tatoeba_Ethi_tig-multi.csv
|
| 49 |
---
|
| 50 |
|
| 51 |
+
# Tigre Parallel Corpus
|
| 52 |
|
| 53 |
+
This corpus has 66,144 sentence and phrase pairs. Every pair has **Tigre (ትግሬ, `Ethi_tig`)** as the source. The targets are Tigrinya, English, Arabic, Swedish and German. The pairs were gathered from three sources: SMOL, a community-contributed file and Tatoeba. Each source was cleaned and put into the same five-column format.
|
| 54 |
|
| 55 |
+
Tigre is a Semitic language spoken mainly in Eritrea and written in Ge'ez (Ethiopic) script. Very little parallel data exists for it.
|
| 56 |
|
| 57 |
+
## Contents
|
| 58 |
|
| 59 |
+
| Config | File | Pairs | Distinct Tigre | Target(s) | Source | Translation type |
|
| 60 |
+
|---|---|---:|---:|---|---|---|
|
| 61 |
+
| `smol_tig_ti` | `smol_Ethi_tig-Ethi_ti.csv` | 7,741 | 7,060 | Tigrinya | SMOL (Google) | Professional; pivoted through English |
|
| 62 |
+
| `smol_tig_en` | `smol_Ethi_tig-Latn_eng.csv` | 7,994 | 7,105 | English | SMOL (Google) | Professional |
|
| 63 |
+
| `community_tig_en` | `community_Ethi_tig-Latn_eng.csv` | 2,305 | 2,270 | English | Community-contributed | Volunteer |
|
| 64 |
+
| `tatoeba_tig_multi` | `tatoeba_Ethi_tig-multi.csv` | 48,104 | 47,001 | Arabic, English, Swedish, German | Tatoeba | Crowd-sourced |
|
| 65 |
+
| `all` (default) | all four files | 66,144 | 56,368 | all of the above | all | mixed |
|
| 66 |
|
| 67 |
+
**Pairs by target language (`all`):** Arabic 27,866 · English 19,901 · Swedish 9,003 · Tigrinya 7,741 · German 1,633
|
| 68 |
|
| 69 |
+
## Format
|
| 70 |
|
| 71 |
+
All files are UTF-8 CSV with the same five columns:
|
| 72 |
|
| 73 |
+
| Column | Description |
|
| 74 |
+
|---|---|
|
| 75 |
+
| `src_txt` | Tigre text (Ge'ez script) |
|
| 76 |
+
| `src_lang` | always `Ethi_tig` |
|
| 77 |
+
| `tgt_txt` | Target text |
|
| 78 |
+
| `tgt_lang` | `Ethi_ti` (Tigrinya), `Latn_eng` (English), `Arab_ara` (Arabic), `Latn_swe` (Swedish), `Latn_deu` (German) |
|
| 79 |
+
| `source` | `smol`, `community` or `tatoeba` |
|
| 80 |
|
| 81 |
+
Language codes use the form `Script_language` (ISO 15924 script + ISO 639-3 language).
|
| 82 |
|
| 83 |
+
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
```python
|
| 86 |
from datasets import load_dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
+
ds = load_dataset("<your-username>/tigre-parallel") # everything
|
| 89 |
+
ds = load_dataset("<your-username>/tigre-parallel", "smol_tig_en") # one source
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
# filter by target language or source
|
| 92 |
+
en = ds["train"].filter(lambda x: x["tgt_lang"] == "Latn_eng")
|
| 93 |
+
pro = ds["train"].filter(lambda x: x["source"] == "smol")
|
| 94 |
```
|
| 95 |
+
|
| 96 |
+
There is a single `train` split. Because some Tigre sentences appear several times (see Limitations), any evaluation set you carve out should be split **by Tigre sentence**. That way the same sentence never appears in both training and test data.
|
| 97 |
+
|
| 98 |
+
## How the data was built and cleaned
|
| 99 |
+
|
| 100 |
+
### SMOL (`smol_tig_ti`, `smol_tig_en`)
|
| 101 |
+
These come from Google's [SMOL](https://huggingface.co/datasets/google/smol) dataset: the SmolSent, SmolDoc and GATITOS subsets.
|
| 102 |
+
|
| 103 |
+
- **Tigre → English:** the English→Tigre files were reversed so that Tigre is the source. SmolDoc documents were split into sentence pairs.
|
| 104 |
+
- **Tigre → Tigrinya:** SMOL has no direct Tigre–Tigrinya data. It does have English→Tigre and English→Tigrinya translations of the same English text, so the Tigre and Tigrinya translations of each English item were paired:
|
| 105 |
+
- SmolSent sentences were joined on their sentence ID.
|
| 106 |
+
- SmolDoc documents were joined on document ID and aligned sentence by sentence. 3 documents with mismatched sentence counts were excluded.
|
| 107 |
+
- GATITOS entries have no IDs, so they were joined on an exact match of the English entry.
|
| 108 |
+
- **Cleanup (both files):** for GATITOS entries with several Tigre translations, only the first was kept. Whitespace was trimmed, and empty and exact-duplicate pairs were removed.
|
| 109 |
+
|
| 110 |
+
### Community (`community_tig_en`)
|
| 111 |
+
Volunteer English→Tigre translations, originally 3,006 lines in `English ||| Tigre` format. The file covers two domains: software and wiki interface strings (315 pairs) and Eritrean history lesson material (1,990 pairs). 701 lines were removed:
|
| 112 |
+
|
| 113 |
+
- **Removed:**
|
| 114 |
+
- 251 single-word entries
|
| 115 |
+
- 213 exact duplicates
|
| 116 |
+
- 168 interface strings that are templates rather than sentences (`$1`, `{{PLURAL:…}}`, `[[links]]`, HTML)
|
| 117 |
+
- 38 history rows with OCR noise (stray Latin letters inside the Tigre text)
|
| 118 |
+
- 22 history rows whose lengths suggest a partial translation or misalignment
|
| 119 |
+
- 8 interface messages that were cut off and misaligned
|
| 120 |
+
- 1 untranslated row
|
| 121 |
+
- **Fixed:**
|
| 122 |
+
- Spreadsheet-style quote marks and extra spaces were removed, and text was normalized to Unicode NFC.
|
| 123 |
+
- 23 run-together English words were split after checking each one, e.g. *thedevelopmental* → *the developmental*, *skillstraining* → *skills training*.
|
| 124 |
+
|
| 125 |
+
### Tatoeba (`tatoeba_tig_multi`)
|
| 126 |
+
Tatoeba's "Sentence pairs" exports for Tigre–Arabic, Tigre–English, Tigre–Swedish and Tigre–German, downloaded 2026-10-03 (52,065 pairs). Each language pair was cleaned separately with the same rules, and the results were combined. 3,961 pairs were removed:
|
| 127 |
+
|
| 128 |
+
- **Removed:**
|
| 129 |
+
- 3,722 single-word entries
|
| 130 |
+
- 178 length mismatches, measured against the median length ratio for each language. Most join several alternative Tigre versions of one short sentence.
|
| 131 |
+
- 27 exact duplicates
|
| 132 |
+
- 19 rows in the wrong script
|
| 133 |
+
- 12 rows with English words or stray Latin letters inside the Tigre
|
| 134 |
+
- 3 untranslated rows
|
| 135 |
+
- **Fixed:**
|
| 136 |
+
- "::" typed in place of the Ethiopic full stop was replaced with "።" (9,967 sentences).
|
| 137 |
+
- Spaces before Ethiopic punctuation were removed.
|
| 138 |
+
- Words in parentheses inside Tigre sentences, such as synonyms, glosses or pronoun hints, were removed when the target had none (184 sentences).
|
| 139 |
+
|
| 140 |
+
Full per-source details are in [`docs/`](docs/).
|
| 141 |
+
|
| 142 |
+
## Limitations
|
| 143 |
+
|
| 144 |
+
- **Mixed quality.** SMOL is professionally translated. The community and Tatoeba data are volunteer and crowd-sourced, and translation quality varies. Consider SMOL for evaluation.
|
| 145 |
+
- **The Tigre–Tigrinya pairs are indirect.** Each side was translated from English separately, so the two sides can differ more than direct translations would.
|
| 146 |
+
- **Tigrinya-style spelling.** Some community and Tatoeba Tigre text uses Tigrinya-style spelling or vocabulary (e.g. ሓ/ኣ/ዓ in place of ሐ/አ/ዐ). After review, this was kept as valid Tigre usage.
|
| 147 |
+
- **Short, conversational text.** Tatoeba sentences are short (typically about 4 words). GATITOS entries are words and short phrases without context.
|
| 148 |
+
- **Translated Tigre.** In SMOL and much of Tatoeba, the Tigre was translated from another language rather than written originally in Tigre.
|
| 149 |
+
- **Community data artifacts.** The history text appears to be OCR-derived and may still contain typos. Its English is mostly lowercase.
|
| 150 |
+
- **Repeated Tigre sentences.** The same Tigre sentence can appear more than once: with different targets, with several Tatoeba translations, or in SMOL Tigre→English and Tigre→Tigrinya. There are no exact duplicate rows.
|
| 151 |
+
- **Arabic code.** Arabic is coded `Arab_ara` (macrolanguage), as Tatoeba labels it. Most of it is Modern Standard Arabic (`Arab_arb`), but some is dialectal.
|
| 152 |
+
|
| 153 |
+
## Licenses
|
| 154 |
+
|
| 155 |
+
Each part keeps the license of its source:
|
| 156 |
+
|
| 157 |
+
| Part | License |
|
| 158 |
+
|---|---|
|
| 159 |
+
| SMOL files | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
|
| 160 |
+
| Tatoeba file | [CC BY 2.0 FR](https://creativecommons.org/licenses/by/2.0/fr/) (some sentences CC0) |
|
| 161 |
+
| Community file | **TODO: set the license agreed with the contributors** |
|
| 162 |
+
|
| 163 |
+
Please give attribution to SMOL (Google), Tatoeba and its contributors, and the community contributors when you use or redistribute this data.
|
| 164 |
|
| 165 |
## Citation
|
|
|
|
| 166 |
|
| 167 |
+
If you use the SMOL portions, please cite:
|
| 168 |
+
|
| 169 |
+
```bibtex
|
| 170 |
+
@misc{caswell2025smol,
|
| 171 |
+
title = {SMOL: Professionally translated parallel data for 115 under-represented languages},
|
| 172 |
+
author = {Caswell, Isaac and others},
|
| 173 |
+
year = {2025},
|
| 174 |
+
eprint = {2502.12301},
|
| 175 |
+
archivePrefix = {arXiv}
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
@inproceedings{jones2023gatitos,
|
| 179 |
+
title = {GATITOS: Using a New Multilingual Lexicon for Low-resource Machine Translation},
|
| 180 |
+
author = {Jones, Alex and others},
|
| 181 |
+
booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
|
| 182 |
+
year = {2023},
|
| 183 |
+
url = {https://aclanthology.org/2023.emnlp-main.26/}
|
| 184 |
+
}
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
Tatoeba: <https://tatoeba.org>
|