omarkamali commited on
Commit
96f5525
·
verified ·
1 Parent(s): b1a4e16

Upload all models and assets for lbe (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. lbe_morph_tokenizer.json +0 -0
  4. models/embeddings/aligned/lbe_128d.bin +3 -0
  5. models/embeddings/aligned/lbe_128d.meta.json +1 -0
  6. models/embeddings/aligned/lbe_128d.projection.npy +3 -0
  7. models/embeddings/aligned/lbe_128d_metadata.json +8 -0
  8. models/embeddings/aligned/lbe_32d.bin +3 -0
  9. models/embeddings/aligned/lbe_32d.meta.json +1 -0
  10. models/embeddings/aligned/lbe_32d.projection.npy +3 -0
  11. models/embeddings/aligned/lbe_32d_metadata.json +8 -0
  12. models/embeddings/aligned/lbe_64d.bin +3 -0
  13. models/embeddings/aligned/lbe_64d.meta.json +1 -0
  14. models/embeddings/aligned/lbe_64d.projection.npy +3 -0
  15. models/embeddings/aligned/lbe_64d_metadata.json +8 -0
  16. models/embeddings/monolingual/lbe_128d.bin +3 -0
  17. models/embeddings/monolingual/lbe_128d.meta.json +1 -0
  18. models/embeddings/monolingual/lbe_128d_metadata.json +16 -0
  19. models/embeddings/monolingual/lbe_32d.bin +3 -0
  20. models/embeddings/monolingual/lbe_32d.meta.json +1 -0
  21. models/embeddings/monolingual/lbe_32d_metadata.json +16 -0
  22. models/embeddings/monolingual/lbe_64d.bin +3 -0
  23. models/embeddings/monolingual/lbe_64d.meta.json +1 -0
  24. models/embeddings/monolingual/lbe_64d_metadata.json +16 -0
  25. models/subword_markov/lbe_markov_ctx1_subword.parquet +3 -0
  26. models/subword_markov/lbe_markov_ctx1_subword_metadata.json +7 -0
  27. models/subword_markov/lbe_markov_ctx2_subword.parquet +3 -0
  28. models/subword_markov/lbe_markov_ctx2_subword_metadata.json +7 -0
  29. models/subword_markov/lbe_markov_ctx3_subword.parquet +3 -0
  30. models/subword_markov/lbe_markov_ctx3_subword_metadata.json +7 -0
  31. models/subword_markov/lbe_markov_ctx4_subword.parquet +3 -0
  32. models/subword_markov/lbe_markov_ctx4_subword_metadata.json +7 -0
  33. models/subword_ngram/lbe_2gram_subword.parquet +3 -0
  34. models/subword_ngram/lbe_2gram_subword_metadata.json +7 -0
  35. models/subword_ngram/lbe_3gram_subword.parquet +3 -0
  36. models/subword_ngram/lbe_3gram_subword_metadata.json +7 -0
  37. models/subword_ngram/lbe_4gram_subword.parquet +3 -0
  38. models/subword_ngram/lbe_4gram_subword_metadata.json +7 -0
  39. models/subword_ngram/lbe_5gram_subword.parquet +3 -0
  40. models/subword_ngram/lbe_5gram_subword_metadata.json +7 -0
  41. models/tokenizer/lbe_tokenizer_16k.model +3 -0
  42. models/tokenizer/lbe_tokenizer_16k.vocab +0 -0
  43. models/tokenizer/lbe_tokenizer_32k.model +3 -0
  44. models/tokenizer/lbe_tokenizer_32k.vocab +0 -0
  45. models/tokenizer/lbe_tokenizer_8k.model +3 -0
  46. models/tokenizer/lbe_tokenizer_8k.vocab +0 -0
  47. models/vocabulary/lbe_vocabulary.parquet +3 -0
  48. models/vocabulary/lbe_vocabulary_metadata.json +17 -0
  49. models/word_markov/lbe_markov_ctx1_word.parquet +3 -0
  50. models/word_markov/lbe_markov_ctx1_word_metadata.json +7 -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: lbe
3
+ language_name: Lak
4
+ language_family: caucasian_northeast
5
+ tags:
6
+ - wikilangs
7
+ - nlp
8
+ - tokenizer
9
+ - embeddings
10
+ - n-gram
11
+ - markov
12
+ - wikipedia
13
+ - feature-extraction
14
+ - sentence-similarity
15
+ - tokenization
16
+ - n-grams
17
+ - markov-chain
18
+ - text-mining
19
+ - fasttext
20
+ - babelvec
21
+ - vocabulous
22
+ - vocabulary
23
+ - monolingual
24
+ - family-caucasian_northeast
25
+ license: mit
26
+ library_name: wikilangs
27
+ pipeline_tag: text-generation
28
+ datasets:
29
+ - omarkamali/wikipedia-monthly
30
+ dataset_info:
31
+ name: wikipedia-monthly
32
+ description: Monthly snapshots of Wikipedia articles across 300+ languages
33
+ metrics:
34
+ - name: best_compression_ratio
35
+ type: compression
36
+ value: 3.877
37
+ - name: best_isotropy
38
+ type: isotropy
39
+ value: 0.2418
40
+ - name: vocabulary_size
41
+ type: vocab
42
+ value: 0
43
+ generated: 2026-01-10
44
+ ---
45
+
46
+ # Lak - Wikilangs Models
47
+ ## Comprehensive Research Report & Full Ablation Study
48
+
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Lak** Wikipedia data.
50
+ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
51
+
52
+ ## 📋 Repository Contents
53
+
54
+ ### Models & Assets
55
+
56
+ - Tokenizers (8k, 16k, 32k, 64k)
57
+ - N-gram models (2, 3, 4, 5-gram)
58
+ - Markov chains (context of 1, 2, 3, 4 and 5)
59
+ - Subword N-gram and Markov chains
60
+ - Embeddings in various sizes and dimensions (aligned and unaligned)
61
+ - Language Vocabulary
62
+ - Language Statistics
63
+
64
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
65
+
66
+ ### Analysis and Evaluation
67
+
68
+ - [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
69
+ - [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
70
+ - [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
71
+ - [4. Vocabulary Analysis](#4-vocabulary-analysis)
72
+ - [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
73
+ - [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
74
+ - [7. Summary & Recommendations](#7-summary--recommendations)
75
+ - [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
76
+ - [Visualizations Index](#visualizations-index)
77
+
78
+ ---
79
+ ## 1. Tokenizer Evaluation
80
+
81
+ ![Tokenizer Compression](visualizations/tokenizer_compression.png)
82
+
83
+ ![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
84
+
85
+ ![Tokenizer OOV](visualizations/tokenizer_oov.png)
86
+
87
+ ![Total Tokens](visualizations/tokenizer_total_tokens.png)
88
+
89
+ ### Results
90
+
91
+ | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
92
+ |------------|-------------|---------------|----------|--------------|
93
+ | **8k** | 3.286x | 3.29 | 0.1064% | 106,237 |
94
+ | **16k** | 3.645x | 3.65 | 0.1180% | 95,777 |
95
+ | **32k** | 3.877x 🏆 | 3.89 | 0.1255% | 90,045 |
96
+
97
+ ### Tokenization Examples
98
+
99
+ Below are sample sentences tokenized with each vocabulary size:
100
+
101
+ **Sample 1:** `Маз – мазрай гъалгъатӀун ягу чичлан бикӀайссар. Маз дуссар гьарца миллатрал гьан...`
102
+
103
+ | Vocab | Tokens | Count |
104
+ |-------|--------|-------|
105
+ | 8k | `▁маз ▁– ▁мазрай ▁гъал гъ атӏ ун ▁ягу ▁чич лан ... (+9 more)` | 19 |
106
+ | 16k | `▁маз ▁– ▁мазрай ▁гъалгъ атӏун ▁ягу ▁чич лан ▁бикӏайссар . ... (+7 more)` | 17 |
107
+ | 32k | `▁маз ▁– ▁мазрай ▁гъалгъатӏун ▁ягу ▁чичлан ▁бикӏайссар . ▁маз ▁дуссар ... (+5 more)` | 15 |
108
+
109
+ **Sample 2:** `ХӀуриет ( «азадшиву») – Туркнал жяматийсса ва сиясийсса кказит Чил сайт кказитру`
110
+
111
+ | Vocab | Tokens | Count |
112
+ |-------|--------|-------|
113
+ | 8k | `▁хӏ ури ет ▁( ▁« аз ад шиву ») ▁– ... (+8 more)` | 18 |
114
+ | 16k | `▁хӏ ури ет ▁( ▁« азадшиву ») ▁– ▁туркнал ▁жяматийсса ... (+6 more)` | 16 |
115
+ | 32k | `▁хӏуриет ▁( ▁« азадшиву ») ▁– ▁туркнал ▁жяматийсса ▁ва ▁сиясийсса ... (+4 more)` | 14 |
116
+
117
+ **Sample 3:** `(, ) — Дагъусттаннал Лакрал райондалун яруссаннал дазуйсса лакрал шяравалу. Бувч...`
118
+
119
+ | Vocab | Tokens | Count |
120
+ |-------|--------|-------|
121
+ | 8k | `▁(, ▁) ▁— ▁дагъусттаннал ▁лакрал ▁райондалун ▁яруссаннал ▁дазуй сса ▁лакрал ... (+5 more)` | 15 |
122
+ | 16k | `▁(, ▁) ▁— ▁дагъусттаннал ▁лакрал ▁райондалун ▁яруссаннал ▁дазуйсса ▁лакрал ▁шяравалу ... (+4 more)` | 14 |
123
+ | 32k | `▁(, ▁) ▁— ▁дагъусттаннал ▁лакрал ▁райондалун ▁яруссаннал ▁дазуйсса ▁лакрал ▁шяравалу ... (+4 more)` | 14 |
124
+
125
+
126
+ ### Key Findings
127
+
128
+ - **Best Compression:** 32k achieves 3.877x compression
129
+ - **Lowest UNK Rate:** 8k with 0.1064% unknown tokens
130
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
131
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
132
+
133
+ ---
134
+ ## 2. N-gram Model Evaluation
135
+
136
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
137
+
138
+ ![N-gram Unique](visualizations/ngram_unique.png)
139
+
140
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
141
+
142
+ ### Results
143
+
144
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
145
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
146
+ | **2-gram** | Word | 289 🏆 | 8.17 | 563 | 58.2% | 100.0% |
147
+ | **2-gram** | Subword | 491 | 8.94 | 1,956 | 53.7% | 96.1% |
148
+ | **3-gram** | Word | 292 | 8.19 | 637 | 57.5% | 100.0% |
149
+ | **3-gram** | Subword | 3,297 | 11.69 | 11,342 | 20.8% | 61.9% |
150
+ | **4-gram** | Word | 1,071 | 10.06 | 1,996 | 33.3% | 70.9% |
151
+ | **4-gram** | Subword | 10,634 | 13.38 | 32,543 | 12.1% | 40.2% |
152
+ | **5-gram** | Word | 991 | 9.95 | 1,708 | 32.8% | 74.0% |
153
+ | **5-gram** | Subword | 15,648 | 13.93 | 40,639 | 9.4% | 34.6% |
154
+
155
+ ### Top 5 N-grams by Size
156
+
157
+ **2-grams (Word):**
158
+
159
+ | Rank | N-gram | Count |
160
+ |------|--------|-------|
161
+ | 1 | `агьалинал аьдад` | 264 |
162
+ | 2 | `чил сайт` | 172 |
163
+ | 3 | `бувчӏин баву` | 165 |
164
+ | 4 | `инсан адимина` | 165 |
165
+ | 5 | `туркиянал статистикалул` | 152 |
166
+
167
+ **3-grams (Word):**
168
+
169
+ | Rank | N-gram | Count |
170
+ |------|--------|-------|
171
+ | 1 | `tüi̇k туркиянал статистикалул` | 152 |
172
+ | 2 | `туркиянал статистикалул департамент` | 152 |
173
+ | 3 | `туркиясса шагьру ва` | 140 |
174
+ | 4 | `примечания чил сайт` | 139 |
175
+ | 5 | `район агьалинал аьдад` | 138 |
176
+
177
+ **4-grams (Word):**
178
+
179
+ | Rank | N-gram | Count |
180
+ |------|--------|-------|
181
+ | 1 | `tüi̇k туркиянал статистикалул департамент` | 152 |
182
+ | 2 | `чил сайт къаймакъам муниципалитет` | 124 |
183
+ | 3 | `сайт къаймакъам муниципалитет шагьрурду` | 118 |
184
+ | 4 | `примечания чил сайт къаймакъам` | 116 |
185
+ | 5 | `статистикалул департамент агьалинал аьдад` | 90 |
186
+
187
+ **5-grams (Word):**
188
+
189
+ | Rank | N-gram | Count |
190
+ |------|--------|-------|
191
+ | 1 | `чил сайт къаймакъам муниципалитет шагьрурду` | 118 |
192
+ | 2 | `примечания чил сайт къаймакъам муниципалитет` | 116 |
193
+ | 3 | `туркиянал статистикалул департамент агьалинал аьдад` | 90 |
194
+ | 4 | `tüi̇k туркиянал статистикалул департамент агьалинал` | 90 |
195
+ | 5 | `статистикалул департамент агьалинал аьдад шин` | 90 |
196
+
197
+ **2-grams (Subword):**
198
+
199
+ | Rank | N-gram | Count |
200
+ |------|--------|-------|
201
+ | 1 | `а л` | 6,845 |
202
+ | 2 | `л _` | 5,250 |
203
+ | 3 | `а _` | 4,594 |
204
+ | 4 | `а н` | 4,356 |
205
+ | 5 | `с а` | 4,141 |
206
+
207
+ **3-grams (Subword):**
208
+
209
+ | Rank | N-gram | Count |
210
+ |------|--------|-------|
211
+ | 1 | `а л _` | 3,177 |
212
+ | 2 | `с с а` | 2,851 |
213
+ | 3 | `н а л` | 2,180 |
214
+ | 4 | `с а _` | 1,620 |
215
+ | 5 | `_ б у` | 1,513 |
216
+
217
+ **4-grams (Subword):**
218
+
219
+ | Rank | N-gram | Count |
220
+ |------|--------|-------|
221
+ | 1 | `н а л _` | 1,990 |
222
+ | 2 | `с с а _` | 1,561 |
223
+ | 3 | `с с а р` | 832 |
224
+ | 4 | `_ в а _` | 767 |
225
+ | 5 | `н н а л` | 632 |
226
+
227
+ **5-grams (Subword):**
228
+
229
+ | Rank | N-gram | Count |
230
+ |------|--------|-------|
231
+ | 1 | `н н а л _` | 577 |
232
+ | 2 | `и н а л _` | 528 |
233
+ | 3 | `а г ь р у` | 514 |
234
+ | 4 | `ш а г ь р` | 509 |
235
+ | 5 | `_ ш а г ь` | 506 |
236
+
237
+
238
+ ### Key Findings
239
+
240
+ - **Best Perplexity:** 2-gram (word) with 289
241
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
242
+ - **Coverage:** Top-1000 patterns cover ~35% of corpus
243
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
244
+
245
+ ---
246
+ ## 3. Markov Chain Evaluation
247
+
248
+ ![Markov Entropy](visualizations/markov_entropy.png)
249
+
250
+ ![Markov Contexts](visualizations/markov_contexts.png)
251
+
252
+ ![Markov Branching](visualizations/markov_branching.png)
253
+
254
+ ### Results
255
+
256
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
257
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
258
+ | **1** | Word | 0.5464 | 1.460 | 2.38 | 14,824 | 45.4% |
259
+ | **1** | Subword | 1.4264 | 2.688 | 9.63 | 447 | 0.0% |
260
+ | **2** | Word | 0.0829 | 1.059 | 1.13 | 35,065 | 91.7% |
261
+ | **2** | Subword | 1.0905 | 2.130 | 5.40 | 4,302 | 0.0% |
262
+ | **3** | Word | 0.0248 | 1.017 | 1.04 | 39,281 | 97.5% |
263
+ | **3** | Subword | 0.7425 | 1.673 | 2.86 | 23,223 | 25.7% |
264
+ | **4** | Word | 0.0131 🏆 | 1.009 | 1.02 | 40,171 | 98.7% |
265
+ | **4** | Subword | 0.4036 | 1.323 | 1.73 | 66,320 | 59.6% |
266
+
267
+ ### Generated Text Samples (Word-based)
268
+
269
+ Below are text samples generated from each word-based Markov chain model:
270
+
271
+ **Context Size 1:**
272
+
273
+ 1. `ва къазах кирил алфавит جثتپباذدڅخحچشسژڗزرعظطضڝصکقڢفڠغنملگݤګيوه усларал алфавит алеут лугъат хъанай ...`
274
+ 2. `аьдад 27 освенцим кӏану бугьлай бушиву му бакъа бувну бачи учирчагу жу дурсса чӏумал бикӏу гьануну`
275
+ 3. `бур иш тагьар щищал ссащал ттущал вищал танащал жущал зущал тайннащал кӏанттул улклухсса ччаврин бут...`
276
+
277
+ **Context Size 2:**
278
+
279
+ 1. `агьалинал аьдад шин шагьру шяравалу total 9 008 18 646 27 654 6 102 24 227 30`
280
+ 2. `чил сайт къаймакъам муниципалитет шагьрурду`
281
+ 3. `инсан адимина 23 058 хъамитайпа 23 710 tüi̇k туркиянал статистикалул департамент агьалинал аьдад 434...`
282
+
283
+ **Context Size 3:**
284
+
285
+ 1. `tüi̇k туркиянал статистикалул департамент примечания чил сайт къаймакъам муниципалитет шагьрурду`
286
+ 2. `туркиянал статистикалул департамент примечания чил сайт къаймакъам муниципалитет шагьрурду`
287
+ 3. `туркиясса шагьру ва артвин ильданул центр район агьалинал аьдад 18 072 инсан адимина 9 211 хъамитайп...`
288
+
289
+ **Context Size 4:**
290
+
291
+ 1. `tüi̇k туркиянал статистикалул департамент районну адыяман adıyaman merkez бесни besni челикхан çelik...`
292
+ 2. `чил сайт къаймакъам муниципалитет шагьрурду`
293
+ 3. `примечания чил сайт къаймакъам муниципалитет шагьрурду`
294
+
295
+
296
+ ### Generated Text Samples (Subword-based)
297
+
298
+ Below are text samples generated from each subword-based Markov chain model:
299
+
300
+ **Context Size 1:**
301
+
302
+ 1. `_xvilstücaziulyu`
303
+ 2. `азивуххагьанун_w`
304
+ 3. `укумаласаймесаль`
305
+
306
+ **Context Size 2:**
307
+
308
+ 1. `алеххаврал_ин_т_к`
309
+ 2. `л_шинатни._чиви._`
310
+ 3. `а_лакӏалуну_дусса`
311
+
312
+ **Context Size 3:**
313
+
314
+ 1. `ал_жуж_xvii—xvi_el`
315
+ 2. `сса_гьаейссавних_ш`
316
+ 3. `нал_шярава_26_эски`
317
+
318
+ **Context Size 4:**
319
+
320
+ 1. `нал_маз_(аьрабнал_а`
321
+ 2. `сса_щарая_ингилис_b`
322
+ 3. `ссар._агьалинал_ста`
323
+
324
+
325
+ ### Key Findings
326
+
327
+ - **Best Predictability:** Context-4 (word) with 98.7% predictability
328
+ - **Branching Factor:** Decreases with context size (more deterministic)
329
+ - **Memory Trade-off:** Larger contexts require more storage (66,320 contexts)
330
+ - **Recommendation:** Context-3 or Context-4 for text generation
331
+
332
+ ---
333
+ ## 4. Vocabulary Analysis
334
+
335
+ ![Zipf's Law](visualizations/zipf_law.png)
336
+
337
+ ![Top Words](visualizations/top20_words.png)
338
+
339
+ ![Coverage Curve](visualizations/vocab_coverage.png)
340
+
341
+ ### Statistics
342
+
343
+ | Metric | Value |
344
+ |--------|-------|
345
+ | Vocabulary Size | 5,374 |
346
+ | Total Tokens | 38,623 |
347
+ | Mean Frequency | 7.19 |
348
+ | Median Frequency | 3 |
349
+ | Frequency Std Dev | 21.50 |
350
+
351
+ ### Most Common Words
352
+
353
+ | Rank | Word | Frequency |
354
+ |------|------|-----------|
355
+ | 1 | ва | 771 |
356
+ | 2 | аьдад | 394 |
357
+ | 3 | бур | 362 |
358
+ | 4 | инсан | 309 |
359
+ | 5 | шагьру | 295 |
360
+ | 6 | шинал | 274 |
361
+ | 7 | агьалинал | 267 |
362
+ | 8 | маз | 217 |
363
+ | 9 | чил | 217 |
364
+ | 10 | ягу | 194 |
365
+
366
+ ### Least Common Words (from vocabulary)
367
+
368
+ | Rank | Word | Frequency |
369
+ |------|------|-----------|
370
+ | 1 | спорт | 2 |
371
+ | 2 | нурмагомедов | 2 |
372
+ | 3 | гренландия | 2 |
373
+ | 4 | советских | 2 |
374
+ | 5 | социалистических | 2 |
375
+ | 6 | республик | 2 |
376
+ | 7 | адолф | 2 |
377
+ | 8 | гьитлер | 2 |
378
+ | 9 | саллатіир | 2 |
379
+ | 10 | сталинград | 2 |
380
+
381
+ ### Zipf's Law Analysis
382
+
383
+ | Metric | Value |
384
+ |--------|-------|
385
+ | Zipf Coefficient | 0.8339 |
386
+ | R² (Goodness of Fit) | 0.982815 |
387
+ | Adherence Quality | **excellent** |
388
+
389
+ ### Coverage Analysis
390
+
391
+ | Top N Words | Coverage |
392
+ |-------------|----------|
393
+ | Top 100 | 32.5% |
394
+ | Top 1,000 | 67.1% |
395
+ | Top 5,000 | 98.1% |
396
+ | Top 10,000 | 0.0% |
397
+
398
+ ### Key Findings
399
+
400
+ - **Zipf Compliance:** R²=0.9828 indicates excellent adherence to Zipf's law
401
+ - **High Frequency Dominance:** Top 100 words cover 32.5% of corpus
402
+ - **Long Tail:** -4,626 words needed for remaining 100.0% coverage
403
+
404
+ ---
405
+ ## 5. Word Embeddings Evaluation
406
+
407
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
408
+
409
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
410
+
411
+ ![t-SNE Words](visualizations/tsne_words.png)
412
+
413
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
414
+
415
+
416
+ ### 5.1 Cross-Lingual Alignment
417
+
418
+ ![Alignment Quality](visualizations/embedding_alignment_quality.png)
419
+
420
+ ![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
421
+
422
+
423
+ ### 5.2 Model Comparison
424
+
425
+ | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
426
+ |-------|-----------|----------|------------------|---------------|----------------|
427
+ | **mono_32d** | 32 | 0.2418 | 0.5099 | N/A | N/A |
428
+ | **mono_64d** | 64 | 0.0556 | 0.4959 | N/A | N/A |
429
+ | **mono_128d** | 128 | 0.0084 | 0.4715 | N/A | N/A |
430
+ | **aligned_32d** | 32 | 0.2418 🏆 | 0.4977 | 0.0178 | 0.1869 |
431
+ | **aligned_64d** | 64 | 0.0556 | 0.4695 | 0.0445 | 0.1869 |
432
+ | **aligned_128d** | 128 | 0.0084 | 0.4738 | 0.0386 | 0.2285 |
433
+
434
+ ### Key Findings
435
+
436
+ - **Best Isotropy:** aligned_32d with 0.2418 (more uniform distribution)
437
+ - **Semantic Density:** Average pairwise similarity of 0.4864. Lower values indicate better semantic separation.
438
+ - **Alignment Quality:** Aligned models achieve up to 4.5% R@1 in cross-lingual retrieval.
439
+ - **Recommendation:** 128d aligned for best cross-lingual performance
440
+
441
+ ---
442
+ ## 6. Morphological Analysis (Experimental)
443
+
444
+ 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.
445
+
446
+ ### 6.1 Productivity & Complexity
447
+
448
+ | Metric | Value | Interpretation | Recommendation |
449
+ |--------|-------|----------------|----------------|
450
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
451
+ | Idiomaticity Gap | **1.143** | High formulaic/idiomatic content | - |
452
+
453
+ ### 6.2 Affix Inventory (Productive Units)
454
+
455
+ 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.
456
+
457
+ #### Productive Prefixes
458
+ | Prefix | Examples |
459
+ |--------|----------|
460
+ | `-к` | комаровлул, конья, ккули |
461
+ | `-а` | аллагьнал, аьлил, апрель |
462
+ | `-б` | бакъахьурча, баглар, буру |
463
+ | `-м` | мазсулейман, мукьилчинмур, мармара |
464
+ | `-д` | дянив, даву, дишайссар |
465
+ | `-с` | сарычам, сахих, стакан |
466
+ | `-бу` | буру, буллалаву, буххлаххиссар |
467
+ | `-ба` | бакъахьурча, баглар, бакӏрал |
468
+
469
+ #### Productive Suffixes
470
+ | Suffix | Examples |
471
+ |--------|----------|
472
+ | `-л` | комаровлул, аллагьнал, аьлил |
473
+ | `-а` | цукунчӏавсса, бакъахьурча, хауса |
474
+ | `-ал` | аллагьнал, бакӏрал, бакӏчитал |
475
+ | `-у` | хӏакьину, буру, чичрурду |
476
+ | `-са` | цукунчӏавсса, хауса, гъансса |
477
+ | `-н` | ттуйн, стакан, ттун |
478
+ | `-р` | баглар, невшехир, мукьилчинмур |
479
+ | `-ул` | комаровлул, барзул, мургул |
480
+
481
+ ### 6.3 Bound Stems (Lexical Roots)
482
+
483
+ 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.
484
+
485
+ | Stem | Cohesion | Substitutability | Examples |
486
+ |------|----------|------------------|----------|
487
+ | `айсс` | 1.77x | 27 contexts | байсса, дайсса, шайсса |
488
+ | `ссар` | 1.82x | 19 contexts | дуссар, ухссар, буссар |
489
+ | `йсса` | 1.69x | 14 contexts | байсса, дайсса, шайсса |
490
+ | `хъан` | 1.89x | 9 contexts | хъанан, хъанай, ляхъан |
491
+ | `улла` | 1.59x | 12 contexts | дуллан, буллай, арулла |
492
+ | `мазр` | 1.82x | 8 contexts | мазри, мазру, мазрай |
493
+ | `унна` | 1.51x | 12 contexts | кунна, сунна, куннал |
494
+ | `аьра` | 1.81x | 7 contexts | аьрал, аьраб, аьрали |
495
+ | `лчин` | 1.69x | 8 contexts | цалчин, цалчинми, цалчинмур |
496
+ | `нсса` | 1.90x | 6 contexts | бансса, чансса, гъансса |
497
+ | `ннал` | 1.68x | 8 contexts | куннал, миннал, ханнал |
498
+ | `асса` | 1.66x | 8 contexts | чассаг, кьасса, журасса |
499
+
500
+ ### 6.4 Affix Compatibility (Co-occurrence)
501
+
502
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
503
+
504
+ | Prefix | Suffix | Frequency | Examples |
505
+ |--------|--------|-----------|----------|
506
+ | `-а` | `-л` | 45 words | аллагьнал, аьлил |
507
+ | `-к` | `-л` | 42 words | комаровлул, къарачайнал |
508
+ | `-б` | `-а` | 35 words | бакъахьурча, ба |
509
+ | `-б` | `-у` | 35 words | буру, буллалаву |
510
+ | `-а` | `-ал` | 33 words | аллагьнал, арантурал |
511
+ | `-м` | `-а` | 32 words | мармара, муратпаш�� |
512
+ | `-б` | `-л` | 30 words | бакӏрал, барзул |
513
+ | `-к` | `-ал` | 30 words | къарачайнал, куннал |
514
+ | `-к` | `-н` | 27 words | камерун, къаплан |
515
+ | `-б` | `-р` | 27 words | баглар, буххлаххиссар |
516
+
517
+ ### 6.5 Recursive Morpheme Segmentation
518
+
519
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
520
+
521
+ | Word | Suggested Split | Confidence | Stem |
522
+ |------|-----------------|------------|------|
523
+ | къабивкӏун | **`къ-а-бивкӏун`** | 7.5 | `бивкӏун` |
524
+ | советская | **`советск-а-я`** | 7.5 | `а` |
525
+ | балайрдаву | **`балайрд-а-ву`** | 7.5 | `а` |
526
+ | макьаларду | **`макьал-ар-ду`** | 7.5 | `ар` |
527
+ | бартольдлул | **`бартольд-л-ул`** | 6.0 | `бартольд` |
528
+ | агьрамнал | **`агьрам-н-ал`** | 6.0 | `агьрам` |
529
+ | миллатиял | **`миллат-ия-л`** | 6.0 | `миллат` |
530
+ | къаяевлул | **`къаяев-л-ул`** | 6.0 | `къаяев` |
531
+ | республикалул | **`республик-ал-ул`** | 6.0 | `республик` |
532
+ | бакъанугу | **`бакъа-ну-гу`** | 6.0 | `бакъа` |
533
+ | ущущулгъилун | **`ущущулгъи-л-ун`** | 6.0 | `ущущулгъи` |
534
+ | дунияллул | **`дуниял-л-ул`** | 6.0 | `дуниял` |
535
+ | абумуслим | **`а-бу-муслим`** | 6.0 | `муслим` |
536
+ | шамхалнал | **`шамхал-н-ал`** | 6.0 | `шамхал` |
537
+ | закуевлул | **`закуев-л-ул`** | 6.0 | `закуев` |
538
+
539
+ ### 6.6 Linguistic Interpretation
540
+
541
+ > **Automated Insight:**
542
+ The language Lak shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
543
+
544
+ > **Note on Idiomaticity:** The high Idiomaticity Gap suggests a large number of frequent multi-word expressions or formulaic sequences that are statistically distinct from their component parts.
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 | **32k BPE** | Best compression (3.88x) |
556
+ | N-gram | **2-gram** | Lowest perplexity (289) |
557
+ | Markov | **Context-4** | Highest predictability (98.7%) |
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 10:21:18*
lbe_morph_tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/embeddings/aligned/lbe_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:237a24a56c7612160d27015936f64e68f3df7f8caf0f1a75e2b539f7607e1ef2
3
+ size 1025326441
models/embeddings/aligned/lbe_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/lbe_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53ceb9dd8d0deabdbbeff33537c3d3e637afaf2c1f2748bae99776356a3c33bf
3
+ size 65664
models/embeddings/aligned/lbe_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 337,
7
+ "vocab_size": 1270
8
+ }
models/embeddings/aligned/lbe_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5c111113165febb8060f11c161f64e391d731d7f7a7048ece006d1fabeaba6b
3
+ size 256351081
models/embeddings/aligned/lbe_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/lbe_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5874e50c9e59775fb53776b273670e436431785d766b5d88a9772a05a5f57de
3
+ size 4224
models/embeddings/aligned/lbe_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 337,
7
+ "vocab_size": 1270
8
+ }
models/embeddings/aligned/lbe_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24835be45ebba8fd942667950c6b0c1908ea0099ae2b29535344293dfa2080fb
3
+ size 512676201
models/embeddings/aligned/lbe_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/lbe_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:289f7312123ab55f56d1e01b9e5678ba42fbc6a51ae2b2eecf21e7366af11b54
3
+ size 16512
models/embeddings/aligned/lbe_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 337,
7
+ "vocab_size": 1270
8
+ }
models/embeddings/monolingual/lbe_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:237a24a56c7612160d27015936f64e68f3df7f8caf0f1a75e2b539f7607e1ef2
3
+ size 1025326441
models/embeddings/monolingual/lbe_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/lbe_128d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
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": 1270
16
+ }
models/embeddings/monolingual/lbe_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5c111113165febb8060f11c161f64e391d731d7f7a7048ece006d1fabeaba6b
3
+ size 256351081
models/embeddings/monolingual/lbe_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/lbe_32d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
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": 1270
16
+ }
models/embeddings/monolingual/lbe_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24835be45ebba8fd942667950c6b0c1908ea0099ae2b29535344293dfa2080fb
3
+ size 512676201
models/embeddings/monolingual/lbe_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "lbe", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/lbe_64d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
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": 1270
16
+ }
models/subword_markov/lbe_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c252c6b1f521467e83e9254e0ba32327b721ca74d8c5261052455a210d70a57c
3
+ size 36123
models/subword_markov/lbe_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_contexts": 447,
6
+ "total_transitions": 348182
7
+ }
models/subword_markov/lbe_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7050e7f9fa37ab815014d7e4a4957dbc17a3f48ba7d602df0a11968043b325ce
3
+ size 161714
models/subword_markov/lbe_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_contexts": 4302,
6
+ "total_transitions": 347325
7
+ }
models/subword_markov/lbe_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ae8710aa127e9e02443556a63c2f309a35a9911ec6d24d7e260b1cd8998c170
3
+ size 512977
models/subword_markov/lbe_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_contexts": 23223,
6
+ "total_transitions": 346468
7
+ }
models/subword_markov/lbe_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b11e1767d2d81df22dbd44213fd33d316c21256cf8e9de914f20be1fa556324
3
+ size 1069661
models/subword_markov/lbe_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_contexts": 66320,
6
+ "total_transitions": 345611
7
+ }
models/subword_ngram/lbe_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7828dee5ddc3bcd250d903992a118292bcb21769b10a48a860195310390acd2b
3
+ size 24386
models/subword_ngram/lbe_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_ngrams": 1956,
6
+ "total_ngrams": 348182
7
+ }
models/subword_ngram/lbe_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffe52ce25d5bf69732a4970497709e72ba8eaa8635c523609640976ffc033283
3
+ size 135824
models/subword_ngram/lbe_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_ngrams": 11342,
6
+ "total_ngrams": 347325
7
+ }
models/subword_ngram/lbe_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f23349122f5a0ef1ca6bddfc3a259a7b625166d53a671924095d1c3bc0a81a4a
3
+ size 421326
models/subword_ngram/lbe_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_ngrams": 32543,
6
+ "total_ngrams": 346468
7
+ }
models/subword_ngram/lbe_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45867691e9ae6e9364e7f3ca3ceb6b8b01b203922c74df06401decc8b4208418
3
+ size 531002
models/subword_ngram/lbe_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "lbe",
5
+ "unique_ngrams": 40639,
6
+ "total_ngrams": 345611
7
+ }
models/tokenizer/lbe_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a805fa03c92799261ced67638cc51f8c67fe9c2ab1a383b4b7e17501085f8313
3
+ size 564565
models/tokenizer/lbe_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/lbe_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ff570e9676cf0768d78a01db67d575ea633a5ba34ed2b69f86dfcb056426f7d
3
+ size 858375
models/tokenizer/lbe_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/lbe_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ab8852fd3504ce950d2710b00843db5338d2df116613d9b505908253d3a8ce1
3
+ size 396522
models/tokenizer/lbe_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/lbe_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba612d0549e246fe99fed1cb40d2397d710c922693f14ada9a408e05822e70b4
3
+ size 93087
models/vocabulary/lbe_vocabulary_metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "lbe",
3
+ "vocabulary_size": 5374,
4
+ "variant": "full",
5
+ "statistics": {
6
+ "type_token_ratio": 0.3093126155508008,
7
+ "coverage": {
8
+ "top_100": 0.2603917821309126,
9
+ "top_1000": 0.5383161262178275,
10
+ "top_5000": 0.7867841043644447,
11
+ "top_10000": 0.8984191611790856
12
+ },
13
+ "hapax_count": 9516,
14
+ "hapax_ratio": 0.639086635325722,
15
+ "total_documents": 857
16
+ }
17
+ }
models/word_markov/lbe_markov_ctx1_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0733c25d5d86dac805bb831ca6ee39b1d51451ab01a84cb619ffc33e964cfde1
3
+ size 487619
models/word_markov/lbe_markov_ctx1_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "word",
4
+ "language": "lbe",
5
+ "unique_contexts": 14824,
6
+ "total_transitions": 47282
7
+ }