beshiribrahim commited on
Commit
10951cf
·
verified ·
1 Parent(s): 6f0fdfa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -43
README.md CHANGED
@@ -6,13 +6,68 @@ task_categories:
6
  - translation
7
  ---
8
 
9
- ### Python Script
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  ```python
12
  from datasets import load_dataset
13
  import pandas as pd
14
 
15
- # Load dataset from Hugging Face Hub
16
  dataset = load_dataset(
17
  "BeitTigreAI/tigre-data-parallel-multilingual",
18
  data_files={
@@ -21,47 +76,22 @@ dataset = load_dataset(
21
  }
22
  )
23
 
24
- # Print dataset info
25
- print("📊 Dataset Info:")
26
  print(dataset)
27
 
28
- # Convert to pandas for easy analysis
29
- print("\n🔍 Number of samples per target language:")
30
-
31
- for split in ["train", "validation"]:
32
- print(f"\n➡️ {split.title()} Split:")
33
- df = dataset[split].to_pandas()
34
-
35
- # Count by tgt_lang
36
- lang_counts = df["tgt_lang"].value_counts().to_frame().reset_index()
37
- lang_counts.columns = ["tgt_lang", "count"]
38
- lang_counts["percentage"] = (lang_counts["count"] / lang_counts["count"].sum() * 100).round(2)
39
-
40
- # Print as table
41
- print(lang_counts.to_string(index=False))
42
-
43
-
44
- # Database Summary Statistics
45
-
46
- **Total Sentences in Corpus:** 329,554
47
-
48
- ## Language Pair Distribution and Metrics
49
-
50
- | Target Language | Total Sentences | Percentage | Total Source Words (Tigre) | Avg Src Words/Sentence (Tigre) | Total Target Words | Avg Tgt Words/Sentence | Total Source Characters (Tigre) | Total Target Characters |
51
- |:------------------|:------------------|:-------------|:-----------------------------|:---------------------------------|:---------------------|:-------------------------|:----------------------------------|:--------------------------|
52
- | ara_Arab | 49,964 | 15.16 | 172,645 | 3.46 | 160,675 | 3.22 | 708,105 | 826,492 |
53
- | deu_Latn | 80,120 | 24.31 | 258,160 | 3.22 | 321,966 | 4.02 | 1,052,740 | 1,806,555 |
54
- | eng_Latn | 156,206 | 47.4 | 508,318 | 3.25 | 610,321 | 3.91 | 2,070,639 | 3,111,863 |
55
- | nno_Latn | 6,001 | 1.82 | 14,055 | 2.34 | 14,619 | 2.44 | 56,798 | 73,000 |
56
- | nob_Latn | 8,222 | 2.49 | 21,567 | 2.62 | 23,481 | 2.86 | 86,756 | 118,104 |
57
- | swe_Latn | 28,554 | 8.66 | 96,439 | 3.38 | 107,562 | 3.77 | 396,387 | 547,444 |
58
- | tir_Ethi | 487 | 0.15 | 1,767 | 3.63 | 1,783 | 3.66 | 7,387 | 7,754 |
59
-
60
- ## Corpus Grand Totals
61
- - Total Source Words (Tigre): 1,072,951
62
- - Total Target Words: 1,240,407
63
- - Total Source Characters (Tigre): 4,378,812
64
- - Total Target Characters: 6,491,212
65
- - Overall Average Sentence Length (Source): 3.26 words
66
- - Overall Average Sentence Length (Target): 3.76 words
67
 
 
 
 
 
6
  - translation
7
  ---
8
 
9
+
10
+ # Tigre Parallel Multilingual Dataset (Tigre-Data 1.0)
11
+
12
+ ## Overview
13
+
14
+ This repository introduces the **Parallel Multilingual Text** component of the Tigre language resource collection. Tigre is an under-resourced South Semitic language within the Afro-Asiatic family.
15
+
16
+ The goal of **Tigre-Data 1.0** is to accelerate research in low-resource NLP and morphologically rich language modeling. This dataset provides a clean, high-quality parallel corpus essential for developing and evaluating **Machine Translation (MT)** systems for Tigre.
17
+
18
+ ### Data Source & Licensing
19
+
20
+ The parallel sentences in this dataset originate from Tatoeba.org, a community-driven multilingual corpus released under the CC-BY 2.0 license. All Tigre translations were contributed by native-speaking members of the Tigre diaspora, reflecting years of collective volunteer effort to expand the language’s digital presence. This contribution is significant, as, by the end of 2025, the Tigre language on Tatoeba.org is supported by 77 registered translators working across more than ten other languages, resulting in a larger sentence pool than 93% of the 429 hosted languages.
21
+
22
+ ## Included Data & Structure
23
+
24
+ ### Data Modalities
25
+
26
+ This repository contains the **Parallel Multilingual Text** modality.
27
+ The corresponding **Monolingual Text** dataset is available in a separate repository.
28
+
29
+ ### Dataset Structure
30
+
31
+ The dataset is provided in **Parquet format**, compatible with the Hugging Face `datasets` library.
32
+
33
+ ```text
34
+ tigre-data-parallel-multilingual/
35
+ ├── README.md
36
+ └── tigre-data-parallel-multilingual.parquet
37
+ ```
38
+
39
+ ## Dataset Statistics and Metrics
40
+
41
+ The dataset contains **329,554 parallel sentences** across seven target languages.
42
+
43
+ ### Corpus Totals
44
+
45
+ | Statistic | Value |
46
+ | ---------------------------- | ---------- |
47
+ | Total Sentences in Corpus | 329,554 |
48
+ | Total Source Words (Tigre) | 1,072,951 |
49
+ | Total Target Words | 1,240,407 |
50
+ | Avg Sentence Length (Tigre) | 3.26 words |
51
+ | Avg Sentence Length (Target) | 3.76 words |
52
+
53
+ ### Language Pair Distribution (Tigre → Target Language)
54
+
55
+ | Target Language | Total Sentences | Percentage | Tigre Words | Avg Src Words/Sentence | Target Words | Avg Tgt Words/Sentence |
56
+ | ---------------------------- | --------------- | ---------- | ----------- | ---------------------- | ------------ | ---------------------- |
57
+ | ara_Arab (Arabic) | 49,964 | 15.16% | 172,645 | 3.46 | 160,675 | 3.22 |
58
+ | deu_Latn (German) | 80,120 | 24.31% | 258,160 | 3.22 | 321,966 | 4.02 |
59
+ | eng_Latn (English) | 156,206 | 47.40% | 508,318 | 3.25 | 610,321 | 3.91 |
60
+ | nno_Latn (Norwegian Nynorsk) | 6,001 | 1.82% | 14,055 | 2.34 | 14,619 | 2.44 |
61
+ | nob_Latn (Norwegian Bokmål) | 8,222 | 2.49% | 21,567 | 2.62 | 23,481 | 2.86 |
62
+ | swe_Latn (Swedish) | 28,554 | 8.66% | 96,439 | 3.38 | 107,562 | 3.77 |
63
+ | tir_Ethi (Tigrinya) | 487 | 0.15% | 1,767 | 3.63 | 1,783 | 3.66 |
64
+
65
+ ## How to Download & Load the Dataset
66
 
67
  ```python
68
  from datasets import load_dataset
69
  import pandas as pd
70
 
 
71
  dataset = load_dataset(
72
  "BeitTigreAI/tigre-data-parallel-multilingual",
73
  data_files={
 
76
  }
77
  )
78
 
79
+ print("Dataset Info:")
 
80
  print(dataset)
81
 
82
+ df_train = dataset["train"].to_pandas()
83
+ lang_counts = df_train["tgt_lang"].value_counts().to_frame().reset_index()
84
+ lang_counts.columns = ["tgt_lang", "count"]
85
+ lang_counts["percentage"] = (lang_counts["count"] / lang_counts["count"].sum() * 100).round(2)
86
+ print(lang_counts.to_string(index=False))
87
+
88
+ ```
89
+ ## Licensing
90
+ This dataset is released under the CC-BY-SA-4.0 license.
91
+
92
+ ## Citation
93
+ If you use this resource, please cite the dataset using its Hugging Face entry.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
+ Repository: Tigre Parallel Multilingual Dataset
96
+ Organization: BeitTigreAI
97
+ URL: https://huggingface.co/datasets/BeitTigreAI/tigre-data-parallel-multilingual