omarkamali commited on
Commit
8806583
·
verified ·
1 Parent(s): 1f8ad9a

Upload all models and assets for iba (latest)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +7 -0
  2. README.md +771 -0
  3. iba_morph_tokenizer.json +0 -0
  4. models/embeddings/aligned/iba_128d.bin +3 -0
  5. models/embeddings/aligned/iba_128d.meta.json +1 -0
  6. models/embeddings/aligned/iba_128d.projection.npy +3 -0
  7. models/embeddings/aligned/iba_128d_metadata.json +8 -0
  8. models/embeddings/aligned/iba_32d.bin +3 -0
  9. models/embeddings/aligned/iba_32d.meta.json +1 -0
  10. models/embeddings/aligned/iba_32d.projection.npy +3 -0
  11. models/embeddings/aligned/iba_32d_metadata.json +8 -0
  12. models/embeddings/aligned/iba_64d.bin +3 -0
  13. models/embeddings/aligned/iba_64d.meta.json +1 -0
  14. models/embeddings/aligned/iba_64d.projection.npy +3 -0
  15. models/embeddings/aligned/iba_64d_metadata.json +8 -0
  16. models/embeddings/monolingual/iba_128d.bin +3 -0
  17. models/embeddings/monolingual/iba_128d.meta.json +1 -0
  18. models/embeddings/monolingual/iba_128d_metadata.json +16 -0
  19. models/embeddings/monolingual/iba_32d.bin +3 -0
  20. models/embeddings/monolingual/iba_32d.meta.json +1 -0
  21. models/embeddings/monolingual/iba_32d_metadata.json +16 -0
  22. models/embeddings/monolingual/iba_64d.bin +3 -0
  23. models/embeddings/monolingual/iba_64d.meta.json +1 -0
  24. models/embeddings/monolingual/iba_64d_metadata.json +16 -0
  25. models/subword_markov/iba_markov_ctx1_subword.parquet +3 -0
  26. models/subword_markov/iba_markov_ctx1_subword_metadata.json +7 -0
  27. models/subword_markov/iba_markov_ctx2_subword.parquet +3 -0
  28. models/subword_markov/iba_markov_ctx2_subword_metadata.json +7 -0
  29. models/subword_markov/iba_markov_ctx3_subword.parquet +3 -0
  30. models/subword_markov/iba_markov_ctx3_subword_metadata.json +7 -0
  31. models/subword_markov/iba_markov_ctx4_subword.parquet +3 -0
  32. models/subword_markov/iba_markov_ctx4_subword_metadata.json +7 -0
  33. models/subword_ngram/iba_2gram_subword.parquet +3 -0
  34. models/subword_ngram/iba_2gram_subword_metadata.json +7 -0
  35. models/subword_ngram/iba_3gram_subword.parquet +3 -0
  36. models/subword_ngram/iba_3gram_subword_metadata.json +7 -0
  37. models/subword_ngram/iba_4gram_subword.parquet +3 -0
  38. models/subword_ngram/iba_4gram_subword_metadata.json +7 -0
  39. models/subword_ngram/iba_5gram_subword.parquet +3 -0
  40. models/subword_ngram/iba_5gram_subword_metadata.json +7 -0
  41. models/tokenizer/iba_tokenizer_16k.model +3 -0
  42. models/tokenizer/iba_tokenizer_16k.vocab +0 -0
  43. models/tokenizer/iba_tokenizer_32k.model +3 -0
  44. models/tokenizer/iba_tokenizer_32k.vocab +0 -0
  45. models/tokenizer/iba_tokenizer_64k.model +3 -0
  46. models/tokenizer/iba_tokenizer_64k.vocab +0 -0
  47. models/tokenizer/iba_tokenizer_8k.model +3 -0
  48. models/tokenizer/iba_tokenizer_8k.vocab +0 -0
  49. models/vocabulary/iba_vocabulary.parquet +3 -0
  50. models/vocabulary/iba_vocabulary_metadata.json +17 -0
.gitattributes CHANGED
@@ -33,3 +33,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
37
+ visualizations/embedding_tsne_multilingual.png filter=lfs diff=lfs merge=lfs -text
38
+ visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
39
+ visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
40
+ visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
41
+ visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
42
+ visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,771 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: iba
3
+ language_name: Iban
4
+ tags:
5
+ - wikilangs
6
+ - nlp
7
+ - tokenizer
8
+ - embeddings
9
+ - n-gram
10
+ - markov
11
+ - wikipedia
12
+ - feature-extraction
13
+ - sentence-similarity
14
+ - tokenization
15
+ - n-grams
16
+ - markov-chain
17
+ - text-mining
18
+ - fasttext
19
+ - babelvec
20
+ - vocabulous
21
+ - vocabulary
22
+ - monolingual
23
+ license: mit
24
+ library_name: wikilangs
25
+ pipeline_tag: text-generation
26
+ datasets:
27
+ - omarkamali/wikipedia-monthly
28
+ dataset_info:
29
+ name: wikipedia-monthly
30
+ description: Monthly snapshots of Wikipedia articles across 300+ languages
31
+ metrics:
32
+ - name: best_compression_ratio
33
+ type: compression
34
+ value: 5.202
35
+ - name: best_isotropy
36
+ type: isotropy
37
+ value: 0.8124
38
+ - name: vocabulary_size
39
+ type: vocab
40
+ value: 0
41
+ generated: 2026-01-10
42
+ ---
43
+
44
+ # Iban - Wikilangs Models
45
+ ## Comprehensive Research Report & Full Ablation Study
46
+
47
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Iban** Wikipedia data.
48
+ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
49
+
50
+ ## 📋 Repository Contents
51
+
52
+ ### Models & Assets
53
+
54
+ - Tokenizers (8k, 16k, 32k, 64k)
55
+ - N-gram models (2, 3, 4, 5-gram)
56
+ - Markov chains (context of 1, 2, 3, 4 and 5)
57
+ - Subword N-gram and Markov chains
58
+ - Embeddings in various sizes and dimensions (aligned and unaligned)
59
+ - Language Vocabulary
60
+ - Language Statistics
61
+
62
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
63
+
64
+ ### Analysis and Evaluation
65
+
66
+ - [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
67
+ - [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
68
+ - [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
69
+ - [4. Vocabulary Analysis](#4-vocabulary-analysis)
70
+ - [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
71
+ - [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
72
+ - [7. Summary & Recommendations](#7-summary--recommendations)
73
+ - [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
74
+ - [Visualizations Index](#visualizations-index)
75
+
76
+ ---
77
+ ## 1. Tokenizer Evaluation
78
+
79
+ ![Tokenizer Compression](visualizations/tokenizer_compression.png)
80
+
81
+ ![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
82
+
83
+ ![Tokenizer OOV](visualizations/tokenizer_oov.png)
84
+
85
+ ![Total Tokens](visualizations/tokenizer_total_tokens.png)
86
+
87
+ ### Results
88
+
89
+ | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
90
+ |------------|-------------|---------------|----------|--------------|
91
+ | **8k** | 4.581x | 4.58 | 0.1303% | 239,370 |
92
+ | **16k** | 4.888x | 4.89 | 0.1391% | 224,316 |
93
+ | **32k** | 5.091x | 5.09 | 0.1449% | 215,386 |
94
+ | **64k** | 5.202x 🏆 | 5.21 | 0.1480% | 210,759 |
95
+
96
+ ### Tokenization Examples
97
+
98
+ Below are sample sentences tokenized with each vocabulary size:
99
+
100
+ **Sample 1:** `Gawai, Sebuah kampung di Chitwan, Nepal . Gawai Dayak, pengerami ninting taun ti...`
101
+
102
+ | Vocab | Tokens | Count |
103
+ |-------|--------|-------|
104
+ | 8k | `▁gawai , ▁sebuah ▁kampung ▁di ▁ch it wan , ▁nepal ... (+16 more)` | 26 |
105
+ | 16k | `▁gawai , ▁sebuah ▁kampung ▁di ▁chit wan , ▁nepal ▁. ... (+15 more)` | 25 |
106
+ | 32k | `▁gawai , ▁sebuah ▁kampung ▁di ▁chitwan , ▁nepal ▁. ▁gawai ... (+14 more)` | 24 |
107
+ | 64k | `▁gawai , ▁sebuah ▁kampung ▁di ▁chitwan , ▁nepal ▁. ▁gawai ... (+14 more)` | 24 |
108
+
109
+ **Sample 2:** `Bangkok tauka nama iya dalam jaku Thai, Krung Thep Maha Nakhon nya indu nengeri ...`
110
+
111
+ | Vocab | Tokens | Count |
112
+ |-------|--------|-------|
113
+ | 8k | `▁bangkok ▁tauka ▁nama ▁iya ▁dalam ▁jaku ▁thai , ▁k rung ... (+17 more)` | 27 |
114
+ | 16k | `▁bangkok ▁tauka ▁nama ▁iya ▁dalam ▁jaku ▁thai , ▁k rung ... (+17 more)` | 27 |
115
+ | 32k | `▁bangkok ▁tauka ▁nama ▁iya ▁dalam ▁jaku ▁thai , ▁krung ▁thep ... (+15 more)` | 25 |
116
+ | 64k | `▁bangkok ▁tauka ▁nama ▁iya ▁dalam ▁jaku ▁thai , ▁krung ▁thep ... (+15 more)` | 25 |
117
+
118
+ **Sample 3:** `Lemari iya nya kabinet bediri ti tinggi tauka sederhana endur nyimpan gari tauka...`
119
+
120
+ | Vocab | Tokens | Count |
121
+ |-------|--------|-------|
122
+ | 8k | `▁lem ari ▁iya ▁nya ▁kabinet ▁bediri ▁ti ▁tinggi ▁tauka ▁sed ... (+13 more)` | 23 |
123
+ | 16k | `▁lemari ▁iya ▁nya ▁kabinet ▁bediri ▁ti ▁tinggi ▁tauka ▁sederhana ▁endur ... (+8 more)` | 18 |
124
+ | 32k | `▁lemari ▁iya ▁nya ▁kabinet ▁bediri ▁ti ▁tinggi ▁tauka ▁sederhana ▁endur ... (+8 more)` | 18 |
125
+ | 64k | `▁lemari ▁iya ▁nya ▁kabinet ▁bediri ▁ti ▁tinggi ▁tauka ▁sederhana ▁endur ... (+8 more)` | 18 |
126
+
127
+
128
+ ### Key Findings
129
+
130
+ - **Best Compression:** 64k achieves 5.202x compression
131
+ - **Lowest UNK Rate:** 8k with 0.1303% unknown tokens
132
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
133
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
134
+
135
+ ---
136
+ ## 2. N-gram Model Evaluation
137
+
138
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
139
+
140
+ ![N-gram Unique](visualizations/ngram_unique.png)
141
+
142
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
143
+
144
+ ### Results
145
+
146
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
147
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
148
+ | **2-gram** | Word | 6,394 | 12.64 | 13,442 | 15.3% | 43.4% |
149
+ | **2-gram** | Subword | 194 🏆 | 7.60 | 1,944 | 77.0% | 99.7% |
150
+ | **3-gram** | Word | 9,236 | 13.17 | 13,930 | 9.9% | 32.2% |
151
+ | **3-gram** | Subword | 1,402 | 10.45 | 13,716 | 34.0% | 81.6% |
152
+ | **4-gram** | Word | 12,791 | 13.64 | 15,883 | 6.7% | 22.4% |
153
+ | **4-gram** | Subword | 6,509 | 12.67 | 60,183 | 17.8% | 51.0% |
154
+ | **5-gram** | Word | 5,997 | 12.55 | 7,027 | 8.9% | 30.2% |
155
+ | **5-gram** | Subword | 18,422 | 14.17 | 130,688 | 12.0% | 34.9% |
156
+
157
+ ### Top 5 N-grams by Size
158
+
159
+ **2-grams (Word):**
160
+
161
+ | Rank | N-gram | Count |
162
+ |------|--------|-------|
163
+ | 1 | `iya nya` | 2,053 |
164
+ | 2 | `dalam taun` | 1,897 |
165
+ | 3 | `pelilih menua` | 882 |
166
+ | 4 | `kereban sanding` | 782 |
167
+ | 5 | `kandang menua` | 689 |
168
+
169
+ **3-grams (Word):**
170
+
171
+ | Rank | N-gram | Count |
172
+ |------|--------|-------|
173
+ | 1 | `dikelala enggau nama` | 415 |
174
+ | 2 | `garis entara menua` | 246 |
175
+ | 3 | `dalam taun iya` | 197 |
176
+ | 4 | `nyadi sebagi ari` | 179 |
177
+ | 5 | `web ke bukai` | 165 |
178
+
179
+ **4-grams (Word):**
180
+
181
+ | Rank | N-gram | Count |
182
+ |------|--------|-------|
183
+ | 1 | `laman web ke bukai` | 158 |
184
+ | 2 | `kereban sanding laman web` | 78 |
185
+ | 3 | `mega dikelala enggau nama` | 74 |
186
+ | 4 | `sanding laman web ke` | 73 |
187
+ | 5 | `ti dikelala enggau nama` | 64 |
188
+
189
+ **5-grams (Word):**
190
+
191
+ | Rank | N-gram | Count |
192
+ |------|--------|-------|
193
+ | 1 | `kereban sanding laman web ke` | 73 |
194
+ | 2 | `sanding laman web ke bukai` | 72 |
195
+ | 3 | `penyanding laman web ke bukai` | 45 |
196
+ | 4 | `bekunsi garis entara menua enggau` | 45 |
197
+ | 5 | `negeri sarawak kunsil negeri sarawak` | 44 |
198
+
199
+ **2-grams (Subword):**
200
+
201
+ | Rank | N-gram | Count |
202
+ |------|--------|-------|
203
+ | 1 | `a _` | 110,486 |
204
+ | 2 | `n g` | 83,490 |
205
+ | 3 | `i _` | 77,339 |
206
+ | 4 | `e n` | 67,953 |
207
+ | 5 | `a n` | 64,094 |
208
+
209
+ **3-grams (Subword):**
210
+
211
+ | Rank | N-gram | Count |
212
+ |------|--------|-------|
213
+ | 1 | `e n g` | 32,899 |
214
+ | 2 | `_ p e` | 27,770 |
215
+ | 3 | `y a _` | 21,779 |
216
+ | 4 | `_ d i` | 21,511 |
217
+ | 5 | `n y a` | 21,129 |
218
+
219
+ **4-grams (Subword):**
220
+
221
+ | Rank | N-gram | Count |
222
+ |------|--------|-------|
223
+ | 1 | `n g g a` | 16,842 |
224
+ | 2 | `_ n y a` | 16,502 |
225
+ | 3 | `_ e n g` | 16,010 |
226
+ | 4 | `e n g g` | 15,955 |
227
+ | 5 | `g a u _` | 15,431 |
228
+
229
+ **5-grams (Subword):**
230
+
231
+ | Rank | N-gram | Count |
232
+ |------|--------|-------|
233
+ | 1 | `e n g g a` | 15,887 |
234
+ | 2 | `n g g a u` | 15,423 |
235
+ | 3 | `_ e n g g` | 15,391 |
236
+ | 4 | `g g a u _` | 15,348 |
237
+ | 5 | `_ i y a _` | 9,735 |
238
+
239
+
240
+ ### Key Findings
241
+
242
+ - **Best Perplexity:** 2-gram (subword) with 194
243
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
244
+ - **Coverage:** Top-1000 patterns cover ~35% of corpus
245
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
246
+
247
+ ---
248
+ ## 3. Markov Chain Evaluation
249
+
250
+ ![Markov Entropy](visualizations/markov_entropy.png)
251
+
252
+ ![Markov Contexts](visualizations/markov_contexts.png)
253
+
254
+ ![Markov Branching](visualizations/markov_branching.png)
255
+
256
+ ### Results
257
+
258
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
259
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
260
+ | **1** | Word | 0.9852 | 1.980 | 6.85 | 34,574 | 1.5% |
261
+ | **1** | Subword | 0.7946 | 1.735 | 5.41 | 1,153 | 20.5% |
262
+ | **2** | Word | 0.3188 | 1.247 | 1.75 | 236,220 | 68.1% |
263
+ | **2** | Subword | 0.8091 | 1.752 | 4.73 | 6,234 | 19.1% |
264
+ | **3** | Word | 0.0977 | 1.070 | 1.16 | 410,924 | 90.2% |
265
+ | **3** | Subword | 0.7951 | 1.735 | 3.72 | 29,465 | 20.5% |
266
+ | **4** | Word | 0.0275 🏆 | 1.019 | 1.04 | 473,414 | 97.3% |
267
+ | **4** | Subword | 0.5984 | 1.514 | 2.54 | 109,660 | 40.2% |
268
+
269
+ ### Generated Text Samples (Word-based)
270
+
271
+ Below are text samples generated from each word-based Markov chain model:
272
+
273
+ **Context Size 1:**
274
+
275
+ 1. `enggau danau victoria lalu mangku pengawa iya ulih dikena ngumbai diri nyadi tuai republik india sel...`
276
+ 2. `iya ari taun 212 iku lebuh 3 711 pampang eksekutif opis pelajar ba waterford sebagi ari`
277
+ 3. `ba sarawak chunto pengawa sida penroses beratika sekat bansa bidayuh enggau tuai ba pendam ruti nya`
278
+
279
+ **Context Size 2:**
280
+
281
+ 1. `iya nya sebengkah menuamultiple sources ba asia tenggara kereban sanding laman web ke bukai baka lil...`
282
+ 2. `dalam taun lalu diaku enggau rasmi nya strok lalu ditangkan enggau pemeri sida lalu dimartir kena vi...`
283
+ 3. `pelilih menua segamat muar enggau tangkak ba johor karipap dikelala enggau nama il santo sante bemac...`
284
+
285
+ **Context Size 3:**
286
+
287
+ 1. `dikelala enggau nama highland fold scottish fold longhair longhair fold and coupari pansik udah mada...`
288
+ 2. `garis entara menua thailand puangthong rungswasdisab thailands response to the threat of climate cha...`
289
+ 3. `dalam taun iya peturun rose fortune siku peranak virginia ke nyadi polis indu keterubah di malaysia ...`
290
+
291
+ **Context Size 4:**
292
+
293
+ 1. `laman web ke bukai aum besai gerempung bansa bansa beserakup dalam taun iya nerima anugerah indu pem...`
294
+ 2. `kereban sanding laman web ke bukai lirik lagu tu ba lirik lagu iban chord gitar lagu tu enggau lagu`
295
+ 3. `mega dikelala enggau nama tumpuk pendiau sitak pengawa bepilih enggau bagi mit mukim iya nyadi tuai ...`
296
+
297
+
298
+ ### Generated Text Samples (Subword-based)
299
+
300
+ Below are text samples generated from each subword-based Markov chain model:
301
+
302
+ **Context Size 1:**
303
+
304
+ 1. `_r._sem_pag_sa'l`
305
+ 2. `a_tany)1_e,_nga_`
306
+ 3. `nya_bembermplung`
307
+
308
+ **Context Size 2:**
309
+
310
+ 1. `a_sidur_bang,_ti_`
311
+ 2. `ngul_ngka_megoret`
312
+ 3. `i_iyadagayuh_peng`
313
+
314
+ **Context Size 3:**
315
+
316
+ 1. `enggerika_nama_dik`
317
+ 2. `_penya_sebeda_karn`
318
+ 3. `ya_bic_dite_sebaju`
319
+
320
+ **Context Size 4:**
321
+
322
+ 1. `nggau_dalam_taun_tu`
323
+ 2. `_nyadika_limau)_dik`
324
+ 3. `_english_ruhnu._haa`
325
+
326
+
327
+ ### Key Findings
328
+
329
+ - **Best Predictability:** Context-4 (word) with 97.3% predictability
330
+ - **Branching Factor:** Decreases with context size (more deterministic)
331
+ - **Memory Trade-off:** Larger contexts require more storage (109,660 contexts)
332
+ - **Recommendation:** Context-3 or Context-4 for text generation
333
+
334
+ ---
335
+ ## 4. Vocabulary Analysis
336
+
337
+ ![Zipf's Law](visualizations/zipf_law.png)
338
+
339
+ ![Top Words](visualizations/top20_words.png)
340
+
341
+ ![Coverage Curve](visualizations/vocab_coverage.png)
342
+
343
+ ### Statistics
344
+
345
+ | Metric | Value |
346
+ |--------|-------|
347
+ | Vocabulary Size | 16,192 |
348
+ | Total Tokens | 490,947 |
349
+ | Mean Frequency | 30.32 |
350
+ | Median Frequency | 4 |
351
+ | Frequency Std Dev | 265.56 |
352
+
353
+ ### Most Common Words
354
+
355
+ | Rank | Word | Frequency |
356
+ |------|------|-----------|
357
+ | 1 | enggau | 15,341 |
358
+ | 2 | iya | 10,907 |
359
+ | 3 | ba | 10,320 |
360
+ | 4 | ti | 9,965 |
361
+ | 5 | nya | 9,469 |
362
+ | 6 | ke | 8,465 |
363
+ | 7 | ari | 7,379 |
364
+ | 8 | dalam | 5,806 |
365
+ | 9 | nyadi | 5,795 |
366
+ | 10 | taun | 5,418 |
367
+
368
+ ### Least Common Words (from vocabulary)
369
+
370
+ | Rank | Word | Frequency |
371
+ |------|------|-----------|
372
+ | 1 | verbum | 2 |
373
+ | 2 | tychy | 2 |
374
+ | 3 | miniaturowej | 2 |
375
+ | 4 | sztuki | 2 |
376
+ | 5 | profesjonalnej | 2 |
377
+ | 6 | wideo | 2 |
378
+ | 7 | nietypowe | 2 |
379
+ | 8 | sztalugi | 2 |
380
+ | 9 | zapałek | 2 |
381
+ | 10 | tuareg | 2 |
382
+
383
+ ### Zipf's Law Analysis
384
+
385
+ | Metric | Value |
386
+ |--------|-------|
387
+ | Zipf Coefficient | 1.2366 |
388
+ | R² (Goodness of Fit) | 0.987474 |
389
+ | Adherence Quality | **excellent** |
390
+
391
+ ### Coverage Analysis
392
+
393
+ | Top N Words | Coverage |
394
+ |-------------|----------|
395
+ | Top 100 | 43.2% |
396
+ | Top 1,000 | 75.2% |
397
+ | Top 5,000 | 92.5% |
398
+ | Top 10,000 | 97.2% |
399
+
400
+ ### Key Findings
401
+
402
+ - **Zipf Compliance:** R²=0.9875 indicates excellent adherence to Zipf's law
403
+ - **High Frequency Dominance:** Top 100 words cover 43.2% of corpus
404
+ - **Long Tail:** 6,192 words needed for remaining 2.8% coverage
405
+
406
+ ---
407
+ ## 5. Word Embeddings Evaluation
408
+
409
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
410
+
411
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
412
+
413
+ ![t-SNE Words](visualizations/tsne_words.png)
414
+
415
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
416
+
417
+
418
+ ### 5.1 Cross-Lingual Alignment
419
+
420
+ ![Alignment Quality](visualizations/embedding_alignment_quality.png)
421
+
422
+ ![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
423
+
424
+
425
+ ### 5.2 Model Comparison
426
+
427
+ | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
428
+ |-------|-----------|----------|------------------|---------------|----------------|
429
+ | **mono_32d** | 32 | 0.8124 | 0.3506 | N/A | N/A |
430
+ | **mono_64d** | 64 | 0.4625 | 0.3269 | N/A | N/A |
431
+ | **mono_128d** | 128 | 0.0966 | 0.3153 | N/A | N/A |
432
+ | **aligned_32d** | 32 | 0.8124 🏆 | 0.3472 | 0.0680 | 0.3200 |
433
+ | **aligned_64d** | 64 | 0.4625 | 0.3265 | 0.0760 | 0.3900 |
434
+ | **aligned_128d** | 128 | 0.0966 | 0.3184 | 0.0900 | 0.3580 |
435
+
436
+ ### Key Findings
437
+
438
+ - **Best Isotropy:** aligned_32d with 0.8124 (more uniform distribution)
439
+ - **Semantic Density:** Average pairwise similarity of 0.3308. Lower values indicate better semantic separation.
440
+ - **Alignment Quality:** Aligned models achieve up to 9.0% R@1 in cross-lingual retrieval.
441
+ - **Recommendation:** 128d aligned for best cross-lingual performance
442
+
443
+ ---
444
+ ## 6. Morphological Analysis (Experimental)
445
+
446
+ This section presents an automated morphological analysis derived from the statistical divergence between word-level and subword-level models. By analyzing where subword predictability spikes and where word-level coverage fails, we can infer linguistic structures without supervised data.
447
+
448
+ ### 6.1 Productivity & Complexity
449
+
450
+ | Metric | Value | Interpretation | Recommendation |
451
+ |--------|-------|----------------|----------------|
452
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
453
+ | Idiomaticity Gap | **-0.134** | Low formulaic content | - |
454
+
455
+ ### 6.2 Affix Inventory (Productive Units)
456
+
457
+ These are the most productive prefixes and suffixes identified by sampling the vocabulary for global substitutability patterns. A unit is considered an affix if stripping it leaves a valid stem that appears in other contexts.
458
+
459
+ #### Productive Prefixes
460
+ | Prefix | Examples |
461
+ |--------|----------|
462
+ | `-s` | sisal, siaran, sebilion |
463
+ | `-di` | diarkib, digambarka, dipendam |
464
+ | `-be` | bebilion, beting, besaing |
465
+ | `-a` | acutis, annie, alice |
466
+ | `-b` | bebilion, beting, barito |
467
+ | `-p` | perfectus, pansut, pengirau |
468
+ | `-m` | music, mutuska, materials |
469
+ | `-pe` | perfectus, pengirau, pengari |
470
+
471
+ #### Productive Suffixes
472
+ | Suffix | Examples |
473
+ |--------|----------|
474
+ | `-n` | telekomunikasyen, lateran, siaran |
475
+ | `-a` | mutuska, digambarka, ikea |
476
+ | `-s` | perfectus, acutis, materials |
477
+ | `-i` | nyapai, pengari, diganti |
478
+ | `-ng` | beting, besaing, petang |
479
+ | `-g` | beting, besaing, petang |
480
+ | `-an` | lateran, siaran, labuan |
481
+ | `-e` | annie, code, divide |
482
+
483
+ ### 6.3 Bound Stems (Lexical Roots)
484
+
485
+ Bound stems are high-frequency subword units that are semantically cohesive but rarely appear as standalone words. These often correspond to the 'core' of a word that requires inflection or derivation to be valid.
486
+
487
+ | Stem | Cohesion | Substitutability | Examples |
488
+ |------|----------|------------------|----------|
489
+ | `ngka` | 1.53x | 69 contexts | engka, angka, bangka |
490
+ | `enga` | 1.41x | 60 contexts | lenga, lengan, dengan |
491
+ | `ngga` | 1.49x | 39 contexts | rongga, anggap, enggay |
492
+ | `dang` | 1.58x | 30 contexts | udang, kadang, undang |
493
+ | `enya` | 1.50x | 35 contexts | menya, kenya, lenyau |
494
+ | `syen` | 1.79x | 19 contexts | fesyen, mosyen, aksyen |
495
+ | `engk` | 1.50x | 27 contexts | engka, engku, tengku |
496
+ | `nger` | 1.64x | 19 contexts | ngeri, ranger, ngerak |
497
+ | `ndan` | 1.60x | 20 contexts | undan, undang, pandan |
498
+ | `enge` | 1.71x | 16 contexts | mengeri, nengeri, avenged |
499
+ | `peny` | 1.70x | 16 contexts | penyu, penyah, penyai |
500
+ | `pema` | 1.44x | 27 contexts | pemar, pemai, pemali |
501
+
502
+ ### 6.4 Affix Compatibility (Co-occurrence)
503
+
504
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
505
+
506
+ | Prefix | Suffix | Frequency | Examples |
507
+ |--------|--------|-----------|----------|
508
+ | `-di` | `-a` | 111 words | dikuingka, diformalka |
509
+ | `-p` | `-n` | 105 words | penulin, patron |
510
+ | `-di` | `-ka` | 93 words | dikuingka, diformalka |
511
+ | `-k` | `-n` | 84 words | kondisyen, kolonisasyen |
512
+ | `-p` | `-a` | 82 words | panglima, praha |
513
+ | `-p` | `-an` | 69 words | pengkalan, persamaan |
514
+ | `-s` | `-n` | 65 words | sensasyen, sain |
515
+ | `-p` | `-i` | 64 words | perai, pagi |
516
+ | `-p` | `-ng` | 57 words | pesaing, putting |
517
+ | `-p` | `-g` | 57 words | pesaing, putting |
518
+
519
+ ### 6.5 Recursive Morpheme Segmentation
520
+
521
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
522
+
523
+ | Word | Suggested Split | Confidence | Stem |
524
+ |------|-----------------|------------|------|
525
+ | malacañang | **`malacañ-a-ng`** | 7.5 | `a` |
526
+ | pengurang | **`pengu-ra-ng`** | 7.5 | `ra` |
527
+ | inchinnan | **`inchin-n-an`** | 7.5 | `n` |
528
+ | kandungan | **`kandu-ng-an`** | 7.5 | `ng` |
529
+ | pengeringat | **`pengeri-ng-at`** | 7.5 | `ng` |
530
+ | centuries | **`centur-i-es`** | 7.5 | `i` |
531
+ | pengerekai | **`pengere-ka-i`** | 7.5 | `ka` |
532
+ | pengerugi | **`penger-u-gi`** | 7.5 | `u` |
533
+ | prasekula | **`p-ra-sekula`** | 7.5 | `sekula` |
534
+ | nicholson | **`nichol-s-on`** | 7.5 | `s` |
535
+ | ngasingka | **`ngasi-ng-ka`** | 7.5 | `ng` |
536
+ | admission | **`a-d-mission`** | 7.5 | `mission` |
537
+ | inggerisjaku | **`inggerisja-k-u`** | 7.5 | `k` |
538
+ | interamna | **`interam-n-a`** | 7.5 | `n` |
539
+ | haubjerre | **`haubjer-r-e`** | 7.5 | `r` |
540
+
541
+ ### 6.6 Linguistic Interpretation
542
+
543
+ > **Automated Insight:**
544
+ The language Iban shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
545
+
546
+ ---
547
+ ## 7. Summary & Recommendations
548
+
549
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
550
+
551
+ ### Production Recommendations
552
+
553
+ | Component | Recommended | Rationale |
554
+ |-----------|-------------|-----------|
555
+ | Tokenizer | **64k BPE** | Best compression (5.20x) |
556
+ | N-gram | **2-gram** | Lowest perplexity (194) |
557
+ | Markov | **Context-4** | Highest predictability (97.3%) |
558
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
559
+
560
+
561
+ ---
562
+ ## Appendix: Metrics Glossary & Interpretation Guide
563
+
564
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
565
+
566
+ ### Tokenizer Metrics
567
+
568
+ **Compression Ratio**
569
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
570
+ >
571
+ > *Intuition:* Higher compression means fewer tokens needed to represent the same text, reducing sequence lengths for downstream models. A 3x compression means ~3 characters per token on average.
572
+ >
573
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
574
+
575
+ **Average Token Length (Fertility)**
576
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
577
+ >
578
+ > *Intuition:* Reflects the granularity of tokenization. Longer tokens capture more context but may struggle with rare words; shorter tokens are more flexible but increase sequence length.
579
+ >
580
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
581
+
582
+ **Unknown Token Rate (OOV Rate)**
583
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
584
+ >
585
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
586
+ >
587
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
588
+
589
+ ### N-gram Model Metrics
590
+
591
+ **Perplexity**
592
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
593
+ >
594
+ > *Intuition:* If perplexity is 100, the model is as uncertain as if choosing uniformly among 100 options at each step. A perplexity of 10 means effectively choosing among 10 equally likely options.
595
+ >
596
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
597
+
598
+ **Entropy**
599
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
600
+ >
601
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
602
+ >
603
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
604
+
605
+ **Coverage (Top-K)**
606
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
607
+ >
608
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
609
+ >
610
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
611
+
612
+ ### Markov Chain Metrics
613
+
614
+ **Average Entropy**
615
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
616
+ >
617
+ > *Intuition:* Lower entropy means the model is more confident about what comes next. Context-1 has high entropy (many possible next words); Context-4 has low entropy (few likely continuations).
618
+ >
619
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
620
+
621
+ **Branching Factor**
622
+ > *Definition:* Average number of unique next tokens observed for each context.
623
+ >
624
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
625
+ >
626
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
627
+
628
+ **Predictability**
629
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
630
+ >
631
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
632
+ >
633
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
634
+
635
+ ### Vocabulary & Zipf's Law Metrics
636
+
637
+ **Zipf's Coefficient**
638
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
639
+ >
640
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
641
+ >
642
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
643
+
644
+ **R² (Coefficient of Determination)**
645
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
646
+ >
647
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
648
+ >
649
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
650
+
651
+ **Vocabulary Coverage**
652
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
653
+ >
654
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
655
+ >
656
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
657
+
658
+ ### Word Embedding Metrics
659
+
660
+ **Isotropy**
661
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
662
+ >
663
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
664
+ >
665
+ > *What to seek:* Higher isotropy generally indicates better-quality embeddings. Values > 0.1 are reasonable; > 0.3 is good. Lower-dimensional embeddings tend to have higher isotropy.
666
+
667
+ **Average Norm**
668
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
669
+ >
670
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
671
+ >
672
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
673
+
674
+ **Cosine Similarity**
675
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
676
+ >
677
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
678
+ >
679
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
680
+
681
+ **t-SNE Visualization**
682
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
683
+ >
684
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
685
+ >
686
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
687
+
688
+ ### General Interpretation Guidelines
689
+
690
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
691
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
692
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
693
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
694
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
695
+
696
+
697
+ ### Visualizations Index
698
+
699
+ | Visualization | Description |
700
+ |---------------|-------------|
701
+ | Tokenizer Compression | Compression ratios by vocabulary size |
702
+ | Tokenizer Fertility | Average token length by vocabulary |
703
+ | Tokenizer OOV | Unknown token rates |
704
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
705
+ | N-gram Perplexity | Perplexity by n-gram size |
706
+ | N-gram Entropy | Entropy by n-gram size |
707
+ | N-gram Coverage | Top pattern coverage |
708
+ | N-gram Unique | Unique n-gram counts |
709
+ | Markov Entropy | Entropy by context size |
710
+ | Markov Branching | Branching factor by context |
711
+ | Markov Contexts | Unique context counts |
712
+ | Zipf's Law | Frequency-rank distribution with fit |
713
+ | Vocab Frequency | Word frequency distribution |
714
+ | Top 20 Words | Most frequent words |
715
+ | Vocab Coverage | Cumulative coverage curve |
716
+ | Embedding Isotropy | Vector space uniformity |
717
+ | Embedding Norms | Vector magnitude distribution |
718
+ | Embedding Similarity | Word similarity heatmap |
719
+ | Nearest Neighbors | Similar words for key terms |
720
+ | t-SNE Words | 2D word embedding visualization |
721
+ | t-SNE Sentences | 2D sentence embedding visualization |
722
+ | Position Encoding | Encoding method comparison |
723
+ | Model Sizes | Storage requirements |
724
+ | Performance Dashboard | Comprehensive performance overview |
725
+
726
+ ---
727
+ ## About This Project
728
+
729
+ ### Data Source
730
+
731
+ Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
732
+
733
+ ### Project
734
+
735
+ A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
736
+
737
+ ### Maintainer
738
+
739
+ [Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
740
+
741
+ ### Citation
742
+
743
+ If you use these models in your research, please cite:
744
+
745
+ ```bibtex
746
+ @misc{wikilangs2025,
747
+ author = {Kamali, Omar},
748
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
749
+ year = {2025},
750
+ doi = {10.5281/zenodo.18073153},
751
+ publisher = {Zenodo},
752
+ url = {https://huggingface.co/wikilangs}
753
+ institution = {Omneity Labs}
754
+ }
755
+ ```
756
+
757
+ ### License
758
+
759
+ MIT License - Free for academic and commercial use.
760
+
761
+ ### Links
762
+
763
+ - 🌐 Website: [wikilangs.org](https://wikilangs.org)
764
+ - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
765
+ - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
766
+ - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
767
+ - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
768
+ ---
769
+ *Generated by Wikilangs Models Pipeline*
770
+
771
+ *Report Date: 2026-01-10 03:50:03*
iba_morph_tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/embeddings/aligned/iba_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee809b4436dbc45db88634f6b63bb0bc99bb8b8ec290193ed7bd2260f7d636e1
3
+ size 1033032596
models/embeddings/aligned/iba_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/iba_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75b3a697ae5ad0e47157e48ac5b9ae05c50910bde7d8ef07e83ccc083cf8ad98
3
+ size 65664
models/embeddings/aligned/iba_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 3494,
7
+ "vocab_size": 8683
8
+ }
models/embeddings/aligned/iba_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08aa1b9f8d2795d61c317810ec40421f954029558a06f00422d7d1fcf6c1c312
3
+ size 258364052
models/embeddings/aligned/iba_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/iba_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed5947ee4e61f5b8d9e75cd5276b0893e7dae1282f7eaec7698271d085d72b02
3
+ size 4224
models/embeddings/aligned/iba_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 3494,
7
+ "vocab_size": 8683
8
+ }
models/embeddings/aligned/iba_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab861d4b2fcf671557e5a9672a20a4beeae3e0ded18fce5dbd4b5758936795b9
3
+ size 516586900
models/embeddings/aligned/iba_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/iba_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97236fe7c631362900399734095efabbf2c6d269596d2d96ddd92e15c0e1c5aa
3
+ size 16512
models/embeddings/aligned/iba_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 3494,
7
+ "vocab_size": 8683
8
+ }
models/embeddings/monolingual/iba_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee809b4436dbc45db88634f6b63bb0bc99bb8b8ec290193ed7bd2260f7d636e1
3
+ size 1033032596
models/embeddings/monolingual/iba_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/iba_128d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 128,
4
+ "version": "monolingual",
5
+ "training_params": {
6
+ "algorithm": "skipgram",
7
+ "min_count": 5,
8
+ "window": 5,
9
+ "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 128,
13
+ "threads": 5
14
+ },
15
+ "vocab_size": 8683
16
+ }
models/embeddings/monolingual/iba_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08aa1b9f8d2795d61c317810ec40421f954029558a06f00422d7d1fcf6c1c312
3
+ size 258364052
models/embeddings/monolingual/iba_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/iba_32d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 32,
4
+ "version": "monolingual",
5
+ "training_params": {
6
+ "algorithm": "skipgram",
7
+ "min_count": 5,
8
+ "window": 5,
9
+ "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 32,
13
+ "threads": 5
14
+ },
15
+ "vocab_size": 8683
16
+ }
models/embeddings/monolingual/iba_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab861d4b2fcf671557e5a9672a20a4beeae3e0ded18fce5dbd4b5758936795b9
3
+ size 516586900
models/embeddings/monolingual/iba_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "iba", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/iba_64d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "dimension": 64,
4
+ "version": "monolingual",
5
+ "training_params": {
6
+ "algorithm": "skipgram",
7
+ "min_count": 5,
8
+ "window": 5,
9
+ "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 64,
13
+ "threads": 5
14
+ },
15
+ "vocab_size": 8683
16
+ }
models/subword_markov/iba_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6885a8a347e96f677196aaa29f1c3c253f5a4fc1ac68a95700a4fb8f60008630
3
+ size 52583
models/subword_markov/iba_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_contexts": 1153,
6
+ "total_transitions": 3264435
7
+ }
models/subword_markov/iba_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0420b3371544a3450f150fcd83281fa9d5a0e374d83bcd47b77183459cae418
3
+ size 249711
models/subword_markov/iba_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_contexts": 6234,
6
+ "total_transitions": 3262478
7
+ }
models/subword_markov/iba_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b468dcb37b8e554ddaa8c9d20a19c87d20a9a9a9256bd635228d63b74dc89b1
3
+ size 883771
models/subword_markov/iba_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_contexts": 29465,
6
+ "total_transitions": 3260521
7
+ }
models/subword_markov/iba_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9915ef41d9418440dd67d27390e29c4d4e0c4b55a895a895b452ef3dd3a956f
3
+ size 2214998
models/subword_markov/iba_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_contexts": 109660,
6
+ "total_transitions": 3258564
7
+ }
models/subword_ngram/iba_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17a6d39aee06dc9480625ea9dc28eb05c4206df68ec376f12237d4d881740dc5
3
+ size 26515
models/subword_ngram/iba_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_ngrams": 1944,
6
+ "total_ngrams": 3264435
7
+ }
models/subword_ngram/iba_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f9ca993999f6b17ac24fb07e5439a66b3ba983e345766d45663a99ee4c7bcc0
3
+ size 161183
models/subword_ngram/iba_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_ngrams": 13716,
6
+ "total_ngrams": 3262478
7
+ }
models/subword_ngram/iba_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:637ee6cd40809738773745de6f842a7872046f8c5d7833581a57d12a8aaf201e
3
+ size 714759
models/subword_ngram/iba_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_ngrams": 60183,
6
+ "total_ngrams": 3260521
7
+ }
models/subword_ngram/iba_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47d5db2cc959b65808f0e99f6529696044eefdb80755ebd3efbd9309d447da71
3
+ size 1502667
models/subword_ngram/iba_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "iba",
5
+ "unique_ngrams": 130688,
6
+ "total_ngrams": 3258564
7
+ }
models/tokenizer/iba_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:378eecd69192270caeae946318704bbd5317d6e0851803cce86d2ac1862baab0
3
+ size 503801
models/tokenizer/iba_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/iba_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:761937dbcdd0571ddb7da58f785461479426b46c4d88e4149fc25c6cc09504a2
3
+ size 780101
models/tokenizer/iba_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/iba_tokenizer_64k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8ba25bdd0c510f224b0a7891c3146742009bd5b50db4422c2b55a690676f457
3
+ size 1284417
models/tokenizer/iba_tokenizer_64k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/iba_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd99f127ab3ee82245e9db0154a7cf933c080ce7bee5b8cb0a883b07f9436759
3
+ size 373053
models/tokenizer/iba_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/iba_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b43ac7f79c01138ba06ed3fd64250416ebe071f7a5c250042df45f089b178fd7
3
+ size 264830
models/vocabulary/iba_vocabulary_metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "iba",
3
+ "vocabulary_size": 16192,
4
+ "variant": "full",
5
+ "statistics": {
6
+ "type_token_ratio": 0.0679711334215455,
7
+ "coverage": {
8
+ "top_100": 0.4160191449179195,
9
+ "top_1000": 0.7246386769746632,
10
+ "top_5000": 0.891108371386279,
11
+ "top_10000": 0.9371880999964662
12
+ },
13
+ "hapax_count": 18431,
14
+ "hapax_ratio": 0.5323339976316321,
15
+ "total_documents": 1957
16
+ }
17
+ }