Update README.md
Browse files
README.md
CHANGED
@@ -12,4 +12,152 @@ tags:
|
|
12 |
- baluchi
|
13 |
size_categories:
|
14 |
- 100K<n<1M
|
15 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
- baluchi
|
13 |
size_categories:
|
14 |
- 100K<n<1M
|
15 |
+
---
|
16 |
+
# Balochi Language Dataset
|
17 |
+
|
18 |
+
## Overview
|
19 |
+
|
20 |
+
This dataset is a comprehensive resource for training large language models (LLMs) in the Balochi language. It is designed to go beyond basic translation tasks, supporting fully generative text and conversational AI capabilities in Balochi.
|
21 |
+
|
22 |
+
The dataset includes monolingual Balochi text, multilingual translation corpora, and various conversational and domain-specific texts, enabling diverse use cases such as:
|
23 |
+
|
24 |
+
- **Generative AI**: Building chatbots and generative text systems in Balochi.
|
25 |
+
- **Multilingual Translation**: Translating between Balochi and other languages like English, Urdu, and Persian.
|
26 |
+
- **Cultural Insights**: Providing context for cultural and historical texts.
|
27 |
+
- **Domain-Specific Applications**: Technical, educational, and assistant-oriented tasks.
|
28 |
+
|
29 |
+
---
|
30 |
+
|
31 |
+
## Key Features
|
32 |
+
|
33 |
+
- **Languages**: Balochi, English, Urdu, Persian.
|
34 |
+
- **Domains**:
|
35 |
+
- General conversation
|
36 |
+
- Literature
|
37 |
+
- News
|
38 |
+
- Academic texts
|
39 |
+
- Technical content
|
40 |
+
- Cultural and historical narratives
|
41 |
+
- Travel and educational materials
|
42 |
+
- Assistant and chat scenarios
|
43 |
+
|
44 |
+
- **Dataset Size**:
|
45 |
+
- Monolingual and multilingual pairs totaling tens of thousands of records.
|
46 |
+
- Includes conversational samples, professional scenarios, and technical terminologies.
|
47 |
+
|
48 |
+
- **Custom Tokenizer**: Optimized for Balochi, supporting fine-grained tokenization for generative tasks.
|
49 |
+
|
50 |
+
---
|
51 |
+
|
52 |
+
## Folder Structure
|
53 |
+
|
54 |
+
```
|
55 |
+
C:.
|
56 |
+
├───dataset
|
57 |
+
│ │ Balochi Multilingual Corpus-v2.json
|
58 |
+
│ │ Balochi_english-translation_corpus.json
|
59 |
+
│ ├───splits
|
60 |
+
│ │ │ balochi_to_english.json
|
61 |
+
│ │ │ balochi_to_persian.json
|
62 |
+
│ │ │ balochi_to_urdu.json
|
63 |
+
│ └───text files
|
64 |
+
│ balochi-only.csv
|
65 |
+
│ monolingual_balochi.txt
|
66 |
+
├───tokenizer
|
67 |
+
│ tokenizer-balochi-v2.json
|
68 |
+
└───tools used to create this dataset
|
69 |
+
Bal_Tokenizer.py
|
70 |
+
create-json-format.py
|
71 |
+
```
|
72 |
+
|
73 |
+
---
|
74 |
+
|
75 |
+
## Custom Tokenizer
|
76 |
+
|
77 |
+
This dataset includes a custom tokenizer tailored to the Balochi language. The tokenizer has been optimized for encoding Balochi text effectively for generative tasks.
|
78 |
+
|
79 |
+
### Sample Outputs:
|
80 |
+
|
81 |
+
**Original**: تو کہاں گئے؟
|
82 |
+
|
83 |
+
**Encoded**: `[0, 54, 42, 8, 4559, 3, 1]`
|
84 |
+
|
85 |
+
**Original**: یہ کنغ پسند کنئے؟
|
86 |
+
|
87 |
+
**Encoded**: `[0, 6, 14, 8997, 2066, 2094, 3, 1]`
|
88 |
+
|
89 |
+
**Original**: بلی شتگ کور ء اے کسہ ء دمی کارست اتمان ء کسہ ء دمی بهر انت انچو کہ من اول سرا گشتگ ات کہ اے کسہ دو بهر ء انت یکے نبشتہ کار ء وتی کیز ء بندانی سر گوستیں اے بهر ء اولی کسہ پلی مین ء کپتگ ات ء دمی بهر انت
|
90 |
+
|
91 |
+
**Encoded**: `[0, 1516, 575, 430, 5, 91, 1053, 5, 11332, 2940, 18035, 5, 1053, 5, 11332, 1234, 32, 1133, 42, 53, 709, 246, 1410, 29, 42, 91, 1053, 63, 1234, 5, 32, 662, 539, 67, 5, 122, 73, 34, 5, 7822, 43, 545, 10, 91, 1234, 5, 618, 1053, 2504, 636, 5, 579, 29, 5, 11332, 1234, 32, 1]`
|
92 |
+
|
93 |
+
The tokenizer supports tokenized outputs for various use cases, ensuring compatibility with machine learning frameworks such as Hugging Face.
|
94 |
+
|
95 |
+
---
|
96 |
+
|
97 |
+
## Dataset Highlights
|
98 |
+
|
99 |
+
### Monolingual Data
|
100 |
+
- Focused on Balochi texts from cultural, historical, and conversational contexts.
|
101 |
+
- Contains cleaned and formatted versions for model training.
|
102 |
+
|
103 |
+
### Multilingual Translation Data
|
104 |
+
- **Balochi-English**: General and technical translations.
|
105 |
+
- **Balochi-Urdu**: News and conversational translations.
|
106 |
+
- **Balochi-Persian**: Literary and historical translations.
|
107 |
+
|
108 |
+
### Conversational Samples
|
109 |
+
Includes a variety of real-world scenarios:
|
110 |
+
- Daily interactions (e.g., greetings, family discussions).
|
111 |
+
- Professional settings (e.g., interviews, meetings).
|
112 |
+
- Educational contexts (e.g., questions in class).
|
113 |
+
- Travel scenarios (e.g., at airports, booking hotels).
|
114 |
+
|
115 |
+
### Technical Terminology
|
116 |
+
Covers domains like:
|
117 |
+
- Computing
|
118 |
+
- Medicine
|
119 |
+
- Physics
|
120 |
+
- Internet technology
|
121 |
+
|
122 |
+
---
|
123 |
+
|
124 |
+
## Licensing
|
125 |
+
|
126 |
+
The dataset is released under the **CC-BY-SA 4.0** license. This means you can use, share, and modify it, provided proper attribution is given.
|
127 |
+
|
128 |
+
---
|
129 |
+
|
130 |
+
## Acknowledgments
|
131 |
+
|
132 |
+
This dataset is a result of efforts to preserve and enhance computational resources for the Balochi language. The tools and scripts provided alongside this dataset were instrumental in its creation.
|
133 |
+
|
134 |
+
---
|
135 |
+
|
136 |
+
## Usage Instructions
|
137 |
+
|
138 |
+
1. **Download and Preprocess**:
|
139 |
+
- Use the provided JSON files for training data.
|
140 |
+
- Scripts in the `tools` folder can be used to preprocess the data.
|
141 |
+
|
142 |
+
2. **Tokenizer Integration**:
|
143 |
+
- Load the custom tokenizer using the provided `tokenizer-balochi-v2.json`.
|
144 |
+
- Example:
|
145 |
+
|
146 |
+
```python
|
147 |
+
from transformers import PreTrainedTokenizerFast
|
148 |
+
|
149 |
+
tokenizer = PreTrainedTokenizerFast(tokenizer_file="path/to/tokenizer-balochi-v2.json")
|
150 |
+
encoded = tokenizer.encode("تو کہاں گئے؟")
|
151 |
+
print(encoded)
|
152 |
+
```
|
153 |
+
|
154 |
+
3. **Model Training**:
|
155 |
+
- Use frameworks like Hugging Face to fine-tune LLMs on this dataset.
|
156 |
+
|
157 |
+
4. **Applications**:
|
158 |
+
- Develop chatbots, translation systems, or other generative applications in Balochi.
|
159 |
+
|
160 |
+
---
|
161 |
+
|
162 |
+
For further details or contributions, feel free to reach out or submit issues to the project repository.
|
163 |
+
|