File size: 6,072 Bytes
e972467
3ca8749
 
 
e972467
1b523da
3ca8749
 
 
 
 
 
1b523da
3ca8749
 
 
 
e972467
 
3ca8749
e972467
3ca8749
e972467
3ca8749
e972467
 
 
 
 
3ca8749
e972467
3ca8749
e972467
3ca8749
587b151
 
3ca8749
 
 
587b151
e972467
 
 
3ca8749
587b151
 
e972467
3ca8749
e972467
 
 
 
 
3ca8749
e972467
3ca8749
 
 
 
 
e972467
587b151
e972467
3ca8749
e972467
3ca8749
 
 
 
 
e972467
 
 
3ca8749
e972467
3ca8749
 
 
 
 
 
e972467
 
 
3ca8749
e972467
3ca8749
 
 
 
e972467
 
 
3ca8749
e972467
3ca8749
e972467
 
 
3ca8749
 
 
 
e972467
3ca8749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e972467
 
 
 
 
3ca8749
e972467
3ca8749
 
 
 
e972467
 
 
3ca8749
e972467
587b151
e972467
3ca8749
 
 
 
e972467
 
 
3ca8749
 
e972467
587b151
e972467
3ca8749
 
e972467
3ca8749
e972467
 
 
 
 
 
 
3ca8749
e972467
 
 
3ca8749
e972467
3ca8749
 
 
 
e972467
 
 
3ca8749
e972467
 
 
3ca8749
e972467
 
 
3ca8749
e972467
3ca8749
e972467
587b151
e972467
3ca8749
e972467
3ca8749
e972467
 
 
3ca8749
e972467
3ca8749
 
 
 
 
e972467
3ca8749
e972467
587b151
e972467
 
 
3ca8749
 
e972467
 
 
3ca8749
e972467
 
 
3ca8749
 
e972467
 
 
3ca8749
 
 
 
 
e972467
587b151
e972467
3ca8749
e972467
3ca8749
 
 
 
 
 
 
 
 
e972467
3ca8749
e972467
3ca8749
e972467
3ca8749
e972467
587b151
e972467
3ca8749
 
 
e972467
3ca8749
e972467
587b151
e972467
3ca8749
 
 
e972467
587b151
e972467
3ca8749
 
 
e972467
 
 
3ca8749
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
---
language:
- bn
- en
library_name: transformers
pipeline_tag: text-generation
license: apache-2.0
tags:
- tokenizer
- sentencepiece
- bengali
- banglish
- english
- multilingual
- transformers
- nlp
- gpt
---

# Model Card for Friday Tokenizer

Friday Tokenizer is a custom multilingual tokenizer built completely from scratch for Bengali, English, and Banglish conversational AI systems.

---

## Model Details

### Model Description

Friday Tokenizer is a SentencePiece-based subword tokenizer designed for lightweight GPT-style language models and conversational AI applications. It was developed as part of the Friday GPT project to support Bengali and multilingual NLP without relying on existing pre-trained tokenizers.

The tokenizer is optimized for conversational datasets, mixed Bengali-English text, and Banglish (Romanized Bengali) inputs.

- **Developed by:** Debashish Roy
- **Funded by:** Self-funded
- **Shared by:** Debashish Roy
- **Model type:** SentencePiece Tokenizer
- **Language(s) (NLP):** Bengali, English, Banglish
- **License:** Apache 2.0
- **Finetuned from model:** None (built from scratch)

### Model Sources [optional]

- **Repository:** https://huggingface.co/thedeba/friday-tokenizer
- **Paper:** Not available
- **Demo:** Not available

---

## Uses

### Direct Use

This tokenizer is intended for:

- GPT-style decoder-only language models
- Conversational AI systems
- Bengali NLP experiments
- Banglish text generation
- Lightweight multilingual language models

### Downstream Use

The tokenizer can be integrated into:

- Chatbots
- Language generation systems
- Translation systems
- Bengali AI assistants
- Custom transformer training pipelines

### Out-of-Scope Use

This tokenizer is not optimized for:

- Formal literary Bengali
- Legal or medical NLP applications
- High-precision linguistic analysis
- Production-scale multilingual systems without further evaluation

---

## Bias, Risks, and Limitations

The tokenizer was trained primarily on conversational and subtitle-style datasets. As a result:

- Informal language patterns may be overrepresented
- Rare words may split aggressively
- Banglish spelling inconsistencies may affect tokenization quality
- Dataset biases from subtitle and internet conversations may exist

### Recommendations

Users should evaluate tokenizer performance before deploying it in sensitive or production environments. Additional fine-tuning or vocabulary expansion may improve performance for specialized domains.

---

## How to Get Started with the Model

Use the code below to get started with the tokenizer.

```python
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained(
    "thedeba/friday-tokenizer",
    use_fast=False
)

text = "আমি আজ বাইরে যাচ্ছি"

tokens = tokenizer.tokenize(text)
ids = tokenizer.encode(text)

print(tokens)
print(ids)

decoded = tokenizer.decode(ids)
print(decoded)
```

---

## Training Details

### Training Data

The tokenizer was trained using mixed multilingual conversational datasets including:

- OpenSubtitles
- Bengali conversational text
- Bengali-English mixed text
- Banglish datasets

### Training Procedure

The tokenizer was trained from scratch using SentencePiece subword tokenization.

#### Preprocessing

- Unicode normalization
- Text cleaning
- Duplicate filtering
- Mixed-language corpus preparation

#### Training Hyperparameters

- **Vocabulary Size:** 32000
- **Training regime:** SentencePiece subword training

#### Speeds, Sizes, Times

- Lightweight tokenizer suitable for low-resource devices
- Compact vocabulary size for efficient inference

---

## Evaluation

### Testing Data, Factors & Metrics

#### Testing Data

Internal conversational Bengali-English text samples were used for qualitative evaluation.

#### Factors

Evaluation focused on:

- Bengali Unicode support
- Mixed-language tokenization
- Banglish handling
- Conversational token quality

#### Metrics

Qualitative tokenization inspection and reconstruction accuracy were primarily used.

### Results

The tokenizer successfully supports multilingual conversational tokenization with efficient subword segmentation.

#### Summary

Friday Tokenizer provides lightweight multilingual tokenization suitable for GPT-style language models and Bengali conversational AI applications.

---

## Model Examination

Basic qualitative inspection was performed to verify token splitting and text reconstruction quality.

---

## Environmental Impact

Carbon emissions were not formally tracked during tokenizer training.

- **Hardware Type:** Consumer GPU / CPU
- **Hours used:** Not recorded
- **Cloud Provider:** Google Colab
- **Compute Region:** Not specified
- **Carbon Emitted:** Unknown

---

## Technical Specifications

### Model Architecture and Objective

- Architecture: SentencePiece tokenizer
- Objective: Multilingual subword tokenization for conversational AI

### Compute Infrastructure

Training was performed using local and cloud-based environments.

#### Hardware

- Consumer-grade hardware
- Google Colab environment

#### Software

- Python
- SentencePiece
- Hugging Face Transformers

---

## Citation

### BibTeX

```bibtex
@misc{fridaytokenizer2026,
  title={Friday Tokenizer},
  author={Debashish Roy},
  year={2026},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/thedeba/friday-tokenizer}}
}
```

### APA

Roy, D. (2026). *Friday Tokenizer*. Hugging Face. https://huggingface.co/thedeba/friday-tokenizer

---

## Glossary

- **Banglish:** Bengali written using the Latin alphabet
- **Subword Tokenization:** Splitting words into smaller meaningful units
- **SentencePiece:** A language-independent tokenizer and text segmentation library

---

## More Information

Friday Tokenizer is part of the broader Friday GPT ecosystem focused on building multilingual lightweight AI systems from scratch.

---

## Model Card Authors

Debashish Roy

---

## Model Card Contact

For questions or collaboration:

- Hugging Face: https://huggingface.co/thedeba
```