beshiribrahim commited on
Commit
2e23b28
·
verified ·
1 Parent(s): add904a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +98 -16
README.md CHANGED
@@ -3,29 +3,111 @@ license: cc-by-sa-4.0
3
  pretty_name: Tigre language
4
  language:
5
  - tig
6
- tags:
7
- - tigre
8
- - monolingual
9
- - africa
10
- - low-resource
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
 
 
 
13
 
14
- # Tigre Monolingual Corpus
 
 
 
 
 
 
 
 
15
 
16
- This dataset contains a collection of sentences in the **Tigre language** (ትግረ), primarily spoken in Eritrea and parts of Sudan.
17
 
18
- ## Usage
19
 
20
- You can load this dataset using the `datasets` library:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ```python
23
  from datasets import load_dataset
24
 
25
- # If you uploaded at repo root as "data.parquet":
26
- ds = load_dataset(
27
- "parquet",
28
- data_files="hf://datasets/BeitTigreAI/tigre-data-monolingual-text/data.parquet",
29
- split="train"
30
- )
31
- print(len(ds), ds[0])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  pretty_name: Tigre language
4
  language:
5
  - tig
6
+
7
+ ---
8
+
9
+ # Tigre Low-Resource Language Resource Collection
10
+
11
+ ### Overview
12
+
13
+ This repository introduces the **Monolingual Text** component of the **Tigre** language resource collection. Tigre is an under-resourced South Semitic language within the Afro-Asiatic family. This dataset provides a large, clean text corpus essential for training foundational models such as Language Models (LMs) and word embeddings.
14
+ The goal of Tigre-Data 1.0 is to accelerate research in **low-resource NLP** and **morphologically rich language modeling**.
15
+
16
+ ---
17
+
18
+ ## Included Data & Statistics
19
+
20
+ ### **Data Modalities**
21
+
22
+ This repository contains only the **Monolingual Text** data modality.
23
+
24
+ ### **Dataset Statistics**
25
+
26
+ The corpus was tokenized using a simple whitespace tokenizer to determine the core metrics below.
27
+
28
+ | Statistic | Value |
29
+ | :---------------------------------- | :------------------- |
30
+ | **Total Number of Examples (Rows)** | **490,032** |
31
+ | **Total Number of Tokens** | **14,700,960** |
32
+ | **Vocabulary Size (Unique Tokens)** | **760,384** |
33
+ | **Average Example Length** | **30.00 tokens/row** |
34
+
35
  ---
36
 
37
+ ## Dataset Structure
38
+
39
+ The dataset is provided in the Parquet format, which is easily streamed and loaded using the Hugging Face `datasets` library.
40
 
41
+ ```text
42
+ tigre-data-monolingual-text/
43
+ ├── README.md
44
+ ├── data.parquet
45
+ └── arrow_format/
46
+ └── train/
47
+ ├── data-00000-of-00001.arrow
48
+ ├── dataset_info.json
49
+ └── state.json
50
 
51
+ ```
52
 
53
+ ## Data Provenance & Methodology
54
 
55
+ ### Sources
56
+
57
+ The monolingual text corpus was compiled from diverse sources to maximize coverage:
58
+
59
+ - Books
60
+ - News articles
61
+ - Web content
62
+ - Wikipedia
63
+
64
+ ### Data Curation & Preprocessing
65
+
66
+ - **Preprocessing:** The data underwent a light cleanup of data to remove non text binaries.
67
+ - **Orthographic Normalization:** The original corpus was normalized to ensure consistent Ge'ez script usage.
68
+ - **Text Cleaning:** Steps such as deduplication and boilerplate removal were applied to improve corpus quality (details available in the associated data paper).
69
+
70
+ ---
71
+
72
+ ## Bias, Risks & Known Limitations
73
+
74
+ The data collection process was designed to be broad; however, **inherited biases** from the original sources are present:
75
+
76
+ - **Domain Bias:** The sources (news articles, history books, poems, culture-related texts) mean the corpus may **overrepresent formal and historical language** and **underrepresent informal or conversational Tigre**.
77
+ - **Linguistic Bias:** Any inherent orthographic variation or dialectal representation present in the original source materials is **inherited** by this dataset.
78
+
79
+ ---
80
+
81
+ ## How to Download & Load the Dataset
82
+
83
+ The dataset can be easily loaded using the Hugging Face Hub client library:
84
 
85
  ```python
86
  from datasets import load_dataset
87
 
88
+ dataset_name = "BeitTigreAI/tigre-data-monolingual-text"
89
+
90
+ # Load the full dataset (the default split is 'train')
91
+ ds = load_dataset(dataset_name, split="train")
92
+
93
+ # Example: Display the number of rows and the first example
94
+ print(f"Total rows loaded: {len(ds)}")
95
+ print(ds[0])
96
+
97
+ ```python
98
+
99
+ ## Licensing
100
+
101
+ CC-BY-SA-4.0
102
+
103
+ ## Citation
104
+
105
+ If you use this resource in your work, please cite the repository by referencing its Hugging Face entry:
106
+
107
+ ### Recommended Citation Format:
108
+
109
+ - Repository Name: Tigre Monolingual Text Dataset
110
+ - Organization: BeitTigreAI
111
+ - URL: https://huggingface.co/datasets/BeitTigreAI/tigre-data-monolingual-text
112
+ ````
113
+