omarkamali commited on
Commit
cfe1c4d
·
verified ·
1 Parent(s): 054236e

Upload all models and assets for gv (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 +766 -0
  3. models/embeddings/aligned/gv_128d.bin +3 -0
  4. models/embeddings/aligned/gv_128d.meta.json +1 -0
  5. models/embeddings/aligned/gv_128d.projection.npy +3 -0
  6. models/embeddings/aligned/gv_128d_metadata.json +8 -0
  7. models/embeddings/aligned/gv_32d.bin +3 -0
  8. models/embeddings/aligned/gv_32d.meta.json +1 -0
  9. models/embeddings/aligned/gv_32d.projection.npy +3 -0
  10. models/embeddings/aligned/gv_32d_metadata.json +8 -0
  11. models/embeddings/aligned/gv_64d.bin +3 -0
  12. models/embeddings/aligned/gv_64d.meta.json +1 -0
  13. models/embeddings/aligned/gv_64d.projection.npy +3 -0
  14. models/embeddings/aligned/gv_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/gv_128d.bin +3 -0
  16. models/embeddings/monolingual/gv_128d.meta.json +1 -0
  17. models/embeddings/monolingual/gv_128d_metadata.json +15 -0
  18. models/embeddings/monolingual/gv_32d.bin +3 -0
  19. models/embeddings/monolingual/gv_32d.meta.json +1 -0
  20. models/embeddings/monolingual/gv_32d_metadata.json +15 -0
  21. models/embeddings/monolingual/gv_64d.bin +3 -0
  22. models/embeddings/monolingual/gv_64d.meta.json +1 -0
  23. models/embeddings/monolingual/gv_64d_metadata.json +15 -0
  24. models/subword_markov/gv_markov_ctx1_subword.parquet +3 -0
  25. models/subword_markov/gv_markov_ctx1_subword_metadata.json +7 -0
  26. models/subword_markov/gv_markov_ctx2_subword.parquet +3 -0
  27. models/subword_markov/gv_markov_ctx2_subword_metadata.json +7 -0
  28. models/subword_markov/gv_markov_ctx3_subword.parquet +3 -0
  29. models/subword_markov/gv_markov_ctx3_subword_metadata.json +7 -0
  30. models/subword_markov/gv_markov_ctx4_subword.parquet +3 -0
  31. models/subword_markov/gv_markov_ctx4_subword_metadata.json +7 -0
  32. models/subword_ngram/gv_2gram_subword.parquet +3 -0
  33. models/subword_ngram/gv_2gram_subword_metadata.json +7 -0
  34. models/subword_ngram/gv_3gram_subword.parquet +3 -0
  35. models/subword_ngram/gv_3gram_subword_metadata.json +7 -0
  36. models/subword_ngram/gv_4gram_subword.parquet +3 -0
  37. models/subword_ngram/gv_4gram_subword_metadata.json +7 -0
  38. models/subword_ngram/gv_5gram_subword.parquet +3 -0
  39. models/subword_ngram/gv_5gram_subword_metadata.json +7 -0
  40. models/tokenizer/gv_tokenizer_16k.model +3 -0
  41. models/tokenizer/gv_tokenizer_16k.vocab +0 -0
  42. models/tokenizer/gv_tokenizer_32k.model +3 -0
  43. models/tokenizer/gv_tokenizer_32k.vocab +0 -0
  44. models/tokenizer/gv_tokenizer_64k.model +3 -0
  45. models/tokenizer/gv_tokenizer_64k.vocab +0 -0
  46. models/tokenizer/gv_tokenizer_8k.model +3 -0
  47. models/tokenizer/gv_tokenizer_8k.vocab +0 -0
  48. models/vocabulary/gv_vocabulary.parquet +3 -0
  49. models/vocabulary/gv_vocabulary_metadata.json +17 -0
  50. models/word_markov/gv_markov_ctx1_word.parquet +3 -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,766 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: gv
3
+ language_name: Manx
4
+ language_family: celtic_goidelic
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-celtic_goidelic
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: 4.366
37
+ - name: best_isotropy
38
+ type: isotropy
39
+ value: 0.8673
40
+ - name: vocabulary_size
41
+ type: vocab
42
+ value: 0
43
+ generated: 2026-01-10
44
+ ---
45
+
46
+ # Manx - Wikilangs Models
47
+ ## Comprehensive Research Report & Full Ablation Study
48
+
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Manx** 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.783x | 3.79 | 0.1096% | 245,339 |
94
+ | **16k** | 4.045x | 4.05 | 0.1173% | 229,410 |
95
+ | **32k** | 4.238x | 4.24 | 0.1229% | 218,965 |
96
+ | **64k** | 4.366x 🏆 | 4.37 | 0.1266% | 212,544 |
97
+
98
+ ### Tokenization Examples
99
+
100
+ Below are sample sentences tokenized with each vocabulary size:
101
+
102
+ **Sample 1:** `She nane jeh rheynnyn y Rank ee Mor-Bihan (). Ta'n rheynn soit 'sy Vritaan. y Ra...`
103
+
104
+ | Vocab | Tokens | Count |
105
+ |-------|--------|-------|
106
+ | 8k | `▁she ▁nane ▁jeh ▁rheynnyn ▁y ▁rank ▁ee ▁mor - bihan ... (+12 more)` | 22 |
107
+ | 16k | `▁she ▁nane ▁jeh ▁rheynnyn ▁y ▁rank ▁ee ▁mor - bihan ... (+12 more)` | 22 |
108
+ | 32k | `▁she ▁nane ▁jeh ▁rheynnyn ▁y ▁rank ▁ee ▁mor - bihan ... (+12 more)` | 22 |
109
+ | 64k | `▁she ▁nane ▁jeh ▁rheynnyn ▁y ▁rank ▁ee ▁mor - bihan ... (+12 more)` | 22 |
110
+
111
+ **Sample 2:** `Blein: - (MDCCCLVII) - Taghyrtyn Ruggyryn 15 Mean Fouyir - William H. Taft, 27oo...`
112
+
113
+ | Vocab | Tokens | Count |
114
+ |-------|--------|-------|
115
+ | 8k | `▁blein : ▁- ▁( mdcc cl vii ) ▁- ▁taghyrtyn ... (+25 more)` | 35 |
116
+ | 16k | `▁blein : ▁- ▁( mdcccl vii ) ▁- ▁taghyrtyn ▁ruggyryn ... (+24 more)` | 34 |
117
+ | 32k | `▁blein : ▁- ▁( mdcccl vii ) ▁- ▁taghyrtyn ▁ruggyryn ... (+23 more)` | 33 |
118
+ | 64k | `▁blein : ▁- ▁( mdccclvii ) ▁- ▁taghyrtyn ▁ruggyryn ▁ ... (+22 more)` | 32 |
119
+
120
+ **Sample 3:** `Feaillaghyn Taghyrtyn Ruggyryn Baaseyn Jerrey Geuree, 30 30`
121
+
122
+ | Vocab | Tokens | Count |
123
+ |-------|--------|-------|
124
+ | 8k | `▁feaillaghyn ▁taghyrtyn ▁ruggyryn ▁baaseyn ▁jerrey ▁geuree , ▁ 3 0 ... (+3 more)` | 13 |
125
+ | 16k | `▁feaillaghyn ▁taghyrtyn ▁ruggyryn ▁baaseyn ▁jerrey ▁geuree , ▁ 3 0 ... (+3 more)` | 13 |
126
+ | 32k | `▁feaillaghyn ▁taghyrtyn ▁ruggyryn ▁baaseyn ▁jerrey ▁geuree , ▁ 3 0 ... (+3 more)` | 13 |
127
+ | 64k | `▁feaillaghyn ▁taghyrtyn ▁ruggyryn ▁baaseyn ▁jerrey ▁geuree , ▁ 3 0 ... (+3 more)` | 13 |
128
+
129
+
130
+ ### Key Findings
131
+
132
+ - **Best Compression:** 64k achieves 4.366x compression
133
+ - **Lowest UNK Rate:** 8k with 0.1096% unknown tokens
134
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
135
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
136
+
137
+ ---
138
+ ## 2. N-gram Model Evaluation
139
+
140
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
141
+
142
+ ![N-gram Unique](visualizations/ngram_unique.png)
143
+
144
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
145
+
146
+ ### Results
147
+
148
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
149
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
150
+ | **2-gram** | Word | 8,764 | 13.10 | 27,165 | 17.3% | 42.4% |
151
+ | **2-gram** | Subword | 267 🏆 | 8.06 | 3,213 | 67.9% | 99.3% |
152
+ | **3-gram** | Word | 18,876 | 14.20 | 39,871 | 9.1% | 28.2% |
153
+ | **3-gram** | Subword | 2,139 | 11.06 | 23,013 | 26.3% | 72.8% |
154
+ | **4-gram** | Word | 32,610 | 14.99 | 58,839 | 6.7% | 21.0% |
155
+ | **4-gram** | Subword | 10,768 | 13.39 | 112,078 | 13.7% | 41.9% |
156
+ | **5-gram** | Word | 22,648 | 14.47 | 37,341 | 7.2% | 23.3% |
157
+ | **5-gram** | Subword | 32,659 | 15.00 | 257,320 | 8.0% | 28.3% |
158
+
159
+ ### Top 5 N-grams by Size
160
+
161
+ **2-grams (Word):**
162
+
163
+ | Rank | N-gram | Count |
164
+ |------|--------|-------|
165
+ | 1 | `sy vlein` | 5,442 |
166
+ | 2 | `ta n` | 4,504 |
167
+ | 3 | `ny h` | 3,395 |
168
+ | 4 | `t eh` | 3,265 |
169
+ | 5 | `er y` | 2,744 |
170
+
171
+ **3-grams (Word):**
172
+
173
+ | Rank | N-gram | Count |
174
+ |------|--------|-------|
175
+ | 1 | `ny steatyn unnaneysit` | 1,092 |
176
+ | 2 | `imraaghyn kianglaghyn magh` | 1,051 |
177
+ | 3 | `sy vlein vio` | 912 |
178
+ | 4 | `y chooid smoo` | 815 |
179
+ | 5 | `sy vlein sy` | 753 |
180
+
181
+ **4-grams (Word):**
182
+
183
+ | Rank | N-gram | Count |
184
+ |------|--------|-------|
185
+ | 1 | `sy vlein sy vlein` | 663 |
186
+ | 2 | `kianglaghyn magh sy vlein` | 600 |
187
+ | 3 | `magh sy vlein vio` | 492 |
188
+ | 4 | `son y chooid smoo` | 460 |
189
+ | 5 | `imraaghyn kianglaghyn magh sy` | 359 |
190
+
191
+ **5-grams (Word):**
192
+
193
+ | Rank | N-gram | Count |
194
+ |------|--------|-------|
195
+ | 1 | `kianglaghyn magh sy vlein vio` | 489 |
196
+ | 2 | `imraaghyn kianglaghyn magh sy vlein` | 340 |
197
+ | 3 | `as thallooyn bunnit sy vlein` | 330 |
198
+ | 4 | `currit er cummaltee yn valley` | 210 |
199
+ | 5 | `ayns sheear hwoaie ny frank` | 191 |
200
+
201
+ **2-grams (Subword):**
202
+
203
+ | Rank | N-gram | Count |
204
+ |------|--------|-------|
205
+ | 1 | `n _` | 162,079 |
206
+ | 2 | `y _` | 140,625 |
207
+ | 3 | `g h` | 135,289 |
208
+ | 4 | `a g` | 129,114 |
209
+ | 5 | `y n` | 125,587 |
210
+
211
+ **3-grams (Subword):**
212
+
213
+ | Rank | N-gram | Count |
214
+ |------|--------|-------|
215
+ | 1 | `a g h` | 115,774 |
216
+ | 2 | `y n _` | 80,040 |
217
+ | 3 | `g h _` | 63,973 |
218
+ | 4 | `e y _` | 47,584 |
219
+ | 5 | `_ a s` | 40,866 |
220
+
221
+ **4-grams (Subword):**
222
+
223
+ | Rank | N-gram | Count |
224
+ |------|--------|-------|
225
+ | 1 | `a g h _` | 62,613 |
226
+ | 2 | `_ a s _` | 33,690 |
227
+ | 3 | `_ n y _` | 30,730 |
228
+ | 4 | `n a g h` | 26,067 |
229
+ | 5 | `_ a y n` | 22,053 |
230
+
231
+ **5-grams (Subword):**
232
+
233
+ | Rank | N-gram | Count |
234
+ |------|--------|-------|
235
+ | 1 | `a y n s _` | 20,378 |
236
+ | 2 | `_ a y n s` | 20,257 |
237
+ | 3 | `n a g h _` | 19,764 |
238
+ | 4 | `_ ' s y _` | 13,703 |
239
+ | 5 | `a g h y n` | 11,504 |
240
+
241
+
242
+ ### Key Findings
243
+
244
+ - **Best Perplexity:** 2-gram (subword) with 267
245
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
246
+ - **Coverage:** Top-1000 patterns cover ~28% of corpus
247
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
248
+
249
+ ---
250
+ ## 3. Markov Chain Evaluation
251
+
252
+ ![Markov Entropy](visualizations/markov_entropy.png)
253
+
254
+ ![Markov Contexts](visualizations/markov_contexts.png)
255
+
256
+ ![Markov Branching](visualizations/markov_branching.png)
257
+
258
+ ### Results
259
+
260
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
261
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
262
+ | **1** | Word | 0.9102 | 1.879 | 6.06 | 78,553 | 9.0% |
263
+ | **1** | Subword | 1.0148 | 2.021 | 7.60 | 1,229 | 0.0% |
264
+ | **2** | Word | 0.2842 | 1.218 | 1.71 | 474,494 | 71.6% |
265
+ | **2** | Subword | 0.8801 | 1.840 | 5.16 | 9,341 | 12.0% |
266
+ | **3** | Word | 0.1148 | 1.083 | 1.21 | 805,921 | 88.5% |
267
+ | **3** | Subword | 0.7972 | 1.738 | 4.02 | 48,186 | 20.3% |
268
+ | **4** | Word | 0.0492 🏆 | 1.035 | 1.08 | 971,794 | 95.1% |
269
+ | **4** | Subword | 0.6574 | 1.577 | 2.76 | 193,482 | 34.3% |
270
+
271
+ ### Generated Text Samples (Word-based)
272
+
273
+ Below are text samples generated from each word-based Markov chain model:
274
+
275
+ **Context Size 1:**
276
+
277
+ 1. `as chur undinyssyn argidoil ta n abbyrlhit romanagh çhengaghyn elley ayns pobblaght hoveidjagh va ca...`
278
+ 2. `ny henn wheiggaghyn gorzów wielkopolski as y theihll slane ayns fockleyr aahoilshit ayns wilmington ...`
279
+ 3. `y gogledd ny caslys syn ookraan saint cyndeyrn ap gwilym jenkins john hewlett packard johnny morris`
280
+
281
+ **Context Size 2:**
282
+
283
+ 1. `sy vlein y reeriaght stiagh ayns e ynnyd fea jerrinagh ayns karacteyr aghteyr yn shayll ray kelly`
284
+ 2. `ta n ennym eck ayns soilsheenyn çhellveeish as scannane yernagh lunnin as barrantee aachaptanys eche...`
285
+ 3. `ny h ellanyn phillippeenagh maputo yn preeu valley tradishoonagh imraaghyn jesh chliaghtagh hostyn h...`
286
+
287
+ **Context Size 3:**
288
+
289
+ 1. `ny steatyn unnaneysit lesh y talvador lesh y teer lesh y terb lesh yn ungaar caggee lesh y`
290
+ 2. `imraaghyn kianglaghyn magh the deep photographic guide to the butterflies of britain and europe harp...`
291
+ 3. `sy vlein vio firryn faaroagh`
292
+
293
+ **Context Size 4:**
294
+
295
+ 1. `sy vlein sy vlein bentyn rish y chapitlaghys bentyn rish rheynn verçhys lesh adam smith classicagh t...`
296
+ 2. `kianglaghyn magh sy vlein vio soccer firryn bretnagh wigan athletic f c bradford city a f c as wrexh...`
297
+ 3. `magh sy vlein vio ass los angeles ass california fillym bwoirrin americaanagh fillym bwoirrin americ...`
298
+
299
+
300
+ ### Generated Text Samples (Subword-based)
301
+
302
+ Below are text samples generated from each subword-based Markov chain model:
303
+
304
+ **Context Size 1:**
305
+
306
+ 1. `_d-ots_c_l_sh_eb`
307
+ 2. `ahlee)_bhtoiodas`
308
+ 3. `eamh_y_owat_meee`
309
+
310
+ **Context Size 2:**
311
+
312
+ 1. `n_huleanco-hagh_e`
313
+ 2. `y_as_rush_veeal_a`
314
+ 3. `ghticadjeant_momb`
315
+
316
+ **Context Size 3:**
317
+
318
+ 1. `agh_drey-lettys_dy`
319
+ 2. `yn_ec_y_romwelyn_e`
320
+ 3. `gh_yn_eh_myr_ger_e`
321
+
322
+ **Context Size 4:**
323
+
324
+ 1. `agh_treeockleyn_spo`
325
+ 2. `_as_ontae_ghow_ee_s`
326
+ 3. `_ny_griff_john_fock`
327
+
328
+
329
+ ### Key Findings
330
+
331
+ - **Best Predictability:** Context-4 (word) with 95.1% predictability
332
+ - **Branching Factor:** Decreases with context size (more deterministic)
333
+ - **Memory Trade-off:** Larger contexts require more storage (193,482 contexts)
334
+ - **Recommendation:** Context-3 or Context-4 for text generation
335
+
336
+ ---
337
+ ## 4. Vocabulary Analysis
338
+
339
+ ![Zipf's Law](visualizations/zipf_law.png)
340
+
341
+ ![Top Words](visualizations/top20_words.png)
342
+
343
+ ![Coverage Curve](visualizations/vocab_coverage.png)
344
+
345
+ ### Statistics
346
+
347
+ | Metric | Value |
348
+ |--------|-------|
349
+ | Vocabulary Size | 35,254 |
350
+ | Total Tokens | 1,132,292 |
351
+ | Mean Frequency | 32.12 |
352
+ | Median Frequency | 4 |
353
+ | Frequency Std Dev | 426.46 |
354
+
355
+ ### Most Common Words
356
+
357
+ | Rank | Word | Frequency |
358
+ |------|------|-----------|
359
+ | 1 | as | 34,141 |
360
+ | 2 | ny | 31,248 |
361
+ | 3 | y | 29,520 |
362
+ | 4 | er | 22,963 |
363
+ | 5 | ayns | 20,469 |
364
+ | 6 | ta | 20,110 |
365
+ | 7 | yn | 17,952 |
366
+ | 8 | sy | 13,978 |
367
+ | 9 | n | 13,453 |
368
+ | 10 | eh | 12,232 |
369
+
370
+ ### Least Common Words (from vocabulary)
371
+
372
+ | Rank | Word | Frequency |
373
+ |------|------|-----------|
374
+ | 1 | alnair | 2 |
375
+ | 2 | rollageydyr | 2 |
376
+ | 3 | mirfak | 2 |
377
+ | 4 | notations | 2 |
378
+ | 5 | assembly | 2 |
379
+ | 6 | equulei | 2 |
380
+ | 7 | doradus | 2 |
381
+ | 8 | reticuli | 2 |
382
+ | 9 | sextantis | 2 |
383
+ | 10 | asteraghtyn | 2 |
384
+
385
+ ### Zipf's Law Analysis
386
+
387
+ | Metric | Value |
388
+ |--------|-------|
389
+ | Zipf Coefficient | 1.1436 |
390
+ | R² (Goodness of Fit) | 0.995856 |
391
+ | Adherence Quality | **excellent** |
392
+
393
+ ### Coverage Analysis
394
+
395
+ | Top N Words | Coverage |
396
+ |-------------|----------|
397
+ | Top 100 | 42.2% |
398
+ | Top 1,000 | 71.1% |
399
+ | Top 5,000 | 87.0% |
400
+ | Top 10,000 | 92.4% |
401
+
402
+ ### Key Findings
403
+
404
+ - **Zipf Compliance:** R²=0.9959 indicates excellent adherence to Zipf's law
405
+ - **High Frequency Dominance:** Top 100 words cover 42.2% of corpus
406
+ - **Long Tail:** 25,254 words needed for remaining 7.6% coverage
407
+
408
+ ---
409
+ ## 5. Word Embeddings Evaluation
410
+
411
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
412
+
413
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
414
+
415
+ ![t-SNE Words](visualizations/tsne_words.png)
416
+
417
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
418
+
419
+
420
+ ### 5.1 Cross-Lingual Alignment
421
+
422
+ ![Alignment Quality](visualizations/embedding_alignment_quality.png)
423
+
424
+ ![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
425
+
426
+
427
+ ### 5.2 Model Comparison
428
+
429
+ | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
430
+ |-------|-----------|----------|------------------|---------------|----------------|
431
+ | **mono_32d** | 32 | 0.8673 | 0.3548 | N/A | N/A |
432
+ | **mono_64d** | 64 | 0.8292 | 0.2688 | N/A | N/A |
433
+ | **mono_128d** | 128 | 0.6512 | 0.2218 | N/A | N/A |
434
+ | **aligned_32d** | 32 | 0.8673 🏆 | 0.3561 | 0.0820 | 0.3820 |
435
+ | **aligned_64d** | 64 | 0.8292 | 0.2710 | 0.1420 | 0.4640 |
436
+ | **aligned_128d** | 128 | 0.6512 | 0.2269 | 0.1940 | 0.5460 |
437
+
438
+ ### Key Findings
439
+
440
+ - **Best Isotropy:** aligned_32d with 0.8673 (more uniform distribution)
441
+ - **Semantic Density:** Average pairwise similarity of 0.2832. Lower values indicate better semantic separation.
442
+ - **Alignment Quality:** Aligned models achieve up to 19.4% R@1 in cross-lingual retrieval.
443
+ - **Recommendation:** 128d aligned for best cross-lingual performance
444
+
445
+ ---
446
+ ## 6. Morphological Analysis (Experimental)
447
+
448
+ 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.
449
+
450
+ ### 6.1 Productivity & Complexity
451
+
452
+ | Metric | Value | Interpretation | Recommendation |
453
+ |--------|-------|----------------|----------------|
454
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
455
+ | Idiomaticity Gap | **-0.175** | Low formulaic content | - |
456
+
457
+ ### 6.2 Affix Inventory (Productive Units)
458
+
459
+ 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.
460
+
461
+ #### Productive Prefixes
462
+ | Prefix | Examples |
463
+ |--------|----------|
464
+ | `-ch` | children, choontys, chartvelagh |
465
+ | `-co` | colleishyn, cooidjagh, conmhaícne |
466
+
467
+ #### Productive Suffixes
468
+ | Suffix | Examples |
469
+ |--------|----------|
470
+ | `-n` | keirdlannyn, cullen, carradjeyn |
471
+ | `-yn` | keirdlannyn, carradjeyn, cluicyn |
472
+ | `-gh` | ennaghtagh, cooidjagh, frangagh |
473
+ | `-agh` | ennaghtagh, cooidjagh, frangagh |
474
+ | `-ey` | morrey, gerrey, unnaneyssey |
475
+ | `-er` | better, xavier, challenger |
476
+ | `-ys` | ghooghys, vraaraghys, choontys |
477
+
478
+ ### 6.3 Bound Stems (Lexical Roots)
479
+
480
+ 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.
481
+
482
+ | Stem | Cohesion | Substitutability | Examples |
483
+ |------|----------|------------------|----------|
484
+ | `aghe` | 2.02x | 61 contexts | baghey, magher, baghee |
485
+ | `aghy` | 1.87x | 76 contexts | aghyn, baghyl, daghyr |
486
+ | `lley` | 1.88x | 72 contexts | ulley, olley, alley |
487
+ | `ghey` | 1.92x | 42 contexts | gheyr, baghey, gheyre |
488
+ | `llag` | 1.57x | 90 contexts | ollagh, kallag, mollag |
489
+ | `anag` | 1.78x | 47 contexts | anagh, ganagh, managh |
490
+ | `eeag` | 1.76x | 46 contexts | eeagh, veeagh, keeagh |
491
+ | `eagh` | 1.49x | 89 contexts | reagh, leagh, eaght |
492
+ | `lagh` | 1.48x | 90 contexts | clagh, glagh, aalagh |
493
+ | `rrey` | 1.75x | 41 contexts | arrey, murrey, girrey |
494
+ | `aagh` | 1.58x | 55 contexts | saagh, haagh, aaght |
495
+ | `erre` | 1.83x | 24 contexts | erree, merre, terre |
496
+
497
+ ### 6.4 Affix Compatibility (Co-occurrence)
498
+
499
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
500
+
501
+ | Prefix | Suffix | Frequency | Examples |
502
+ |--------|--------|-----------|----------|
503
+ | `-ch` | `-n` | 49 words | chragheyderyn, chapman |
504
+ | `-ch` | `-gh` | 40 words | chlogh, chollaigh |
505
+ | `-co` | `-n` | 38 words | coloin, collooghyn |
506
+ | `-ch` | `-agh` | 36 words | charolingagh, chondaigagh |
507
+ | `-co` | `-gh` | 30 words | cosmaidagh, corralagh |
508
+ | `-co` | `-yn` | 28 words | collooghyn, cocoonyn |
509
+ | `-co` | `-agh` | 26 words | cosmaidagh, corralagh |
510
+ | `-ch` | `-yn` | 23 words | chragheyderyn, cheirdyn |
511
+ | `-ch` | `-ey` | 15 words | chohirrey, chiangley |
512
+ | `-ch` | `-er` | 11 words | chooidjeyder, character |
513
+
514
+ ### 6.5 Recursive Morpheme Segmentation
515
+
516
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
517
+
518
+ | Word | Suggested Split | Confidence | Stem |
519
+ |------|-----------------|------------|------|
520
+ | shennaghyn | **`shenn-agh-yn`** | 6.0 | `shenn` |
521
+ | mishaghey | **`mish-agh-ey`** | 6.0 | `mish` |
522
+ | nieuaghey | **`nieu-agh-ey`** | 6.0 | `nieu` |
523
+ | strooghyn | **`stroo-gh-yn`** | 6.0 | `stroo` |
524
+ | buighaghey | **`buigh-agh-ey`** | 6.0 | `buigh` |
525
+ | çhynskylaghey | **`çhynskyl-agh-ey`** | 6.0 | `çhynskyl` |
526
+ | troailtaghey | **`troailt-agh-ey`** | 6.0 | `troailt` |
527
+ | cruinnaghyn | **`cruinn-agh-yn`** | 6.0 | `cruinn` |
528
+ | skeayllaghyn | **`skeayll-agh-yn`** | 6.0 | `skeayll` |
529
+ | obbyraghyn | **`obbyr-agh-yn`** | 6.0 | `obbyr` |
530
+ | cohoyrtagh | **`co-hoyrt-agh`** | 6.0 | `hoyrt` |
531
+ | coheshaghtys | **`co-heshaght-ys`** | 6.0 | `heshaght` |
532
+ | sheelaghey | **`sheel-agh-ey`** | 6.0 | `sheel` |
533
+ | moanaghey | **`moan-agh-ey`** | 6.0 | `moan` |
534
+ | skynnaghyn | **`skynn-agh-yn`** | 6.0 | `skynn` |
535
+
536
+ ### 6.6 Linguistic Interpretation
537
+
538
+ > **Automated Insight:**
539
+ The language Manx shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
540
+
541
+ ---
542
+ ## 7. Summary & Recommendations
543
+
544
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
545
+
546
+ ### Production Recommendations
547
+
548
+ | Component | Recommended | Rationale |
549
+ |-----------|-------------|-----------|
550
+ | Tokenizer | **64k BPE** | Best compression (4.37x) |
551
+ | N-gram | **2-gram** | Lowest perplexity (267) |
552
+ | Markov | **Context-4** | Highest predictability (95.1%) |
553
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
554
+
555
+
556
+ ---
557
+ ## Appendix: Metrics Glossary & Interpretation Guide
558
+
559
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
560
+
561
+ ### Tokenizer Metrics
562
+
563
+ **Compression Ratio**
564
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
565
+ >
566
+ > *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.
567
+ >
568
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
569
+
570
+ **Average Token Length (Fertility)**
571
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
572
+ >
573
+ > *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.
574
+ >
575
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
576
+
577
+ **Unknown Token Rate (OOV Rate)**
578
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
579
+ >
580
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
581
+ >
582
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
583
+
584
+ ### N-gram Model Metrics
585
+
586
+ **Perplexity**
587
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
588
+ >
589
+ > *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.
590
+ >
591
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
592
+
593
+ **Entropy**
594
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
595
+ >
596
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
597
+ >
598
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
599
+
600
+ **Coverage (Top-K)**
601
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
602
+ >
603
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
604
+ >
605
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
606
+
607
+ ### Markov Chain Metrics
608
+
609
+ **Average Entropy**
610
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
611
+ >
612
+ > *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).
613
+ >
614
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
615
+
616
+ **Branching Factor**
617
+ > *Definition:* Average number of unique next tokens observed for each context.
618
+ >
619
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
620
+ >
621
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
622
+
623
+ **Predictability**
624
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
625
+ >
626
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
627
+ >
628
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
629
+
630
+ ### Vocabulary & Zipf's Law Metrics
631
+
632
+ **Zipf's Coefficient**
633
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
634
+ >
635
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
636
+ >
637
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
638
+
639
+ **R² (Coefficient of Determination)**
640
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
641
+ >
642
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
643
+ >
644
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
645
+
646
+ **Vocabulary Coverage**
647
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
648
+ >
649
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
650
+ >
651
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
652
+
653
+ ### Word Embedding Metrics
654
+
655
+ **Isotropy**
656
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
657
+ >
658
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
659
+ >
660
+ > *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.
661
+
662
+ **Average Norm**
663
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
664
+ >
665
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
666
+ >
667
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
668
+
669
+ **Cosine Similarity**
670
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
671
+ >
672
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
673
+ >
674
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
675
+
676
+ **t-SNE Visualization**
677
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
678
+ >
679
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
680
+ >
681
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
682
+
683
+ ### General Interpretation Guidelines
684
+
685
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
686
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
687
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
688
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
689
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
690
+
691
+
692
+ ### Visualizations Index
693
+
694
+ | Visualization | Description |
695
+ |---------------|-------------|
696
+ | Tokenizer Compression | Compression ratios by vocabulary size |
697
+ | Tokenizer Fertility | Average token length by vocabulary |
698
+ | Tokenizer OOV | Unknown token rates |
699
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
700
+ | N-gram Perplexity | Perplexity by n-gram size |
701
+ | N-gram Entropy | Entropy by n-gram size |
702
+ | N-gram Coverage | Top pattern coverage |
703
+ | N-gram Unique | Unique n-gram counts |
704
+ | Markov Entropy | Entropy by context size |
705
+ | Markov Branching | Branching factor by context |
706
+ | Markov Contexts | Unique context counts |
707
+ | Zipf's Law | Frequency-rank distribution with fit |
708
+ | Vocab Frequency | Word frequency distribution |
709
+ | Top 20 Words | Most frequent words |
710
+ | Vocab Coverage | Cumulative coverage curve |
711
+ | Embedding Isotropy | Vector space uniformity |
712
+ | Embedding Norms | Vector magnitude distribution |
713
+ | Embedding Similarity | Word similarity heatmap |
714
+ | Nearest Neighbors | Similar words for key terms |
715
+ | t-SNE Words | 2D word embedding visualization |
716
+ | t-SNE Sentences | 2D sentence embedding visualization |
717
+ | Position Encoding | Encoding method comparison |
718
+ | Model Sizes | Storage requirements |
719
+ | Performance Dashboard | Comprehensive performance overview |
720
+
721
+ ---
722
+ ## About This Project
723
+
724
+ ### Data Source
725
+
726
+ Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
727
+
728
+ ### Project
729
+
730
+ A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
731
+
732
+ ### Maintainer
733
+
734
+ [Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
735
+
736
+ ### Citation
737
+
738
+ If you use these models in your research, please cite:
739
+
740
+ ```bibtex
741
+ @misc{wikilangs2025,
742
+ author = {Kamali, Omar},
743
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
744
+ year = {2025},
745
+ doi = {10.5281/zenodo.18073153},
746
+ publisher = {Zenodo},
747
+ url = {https://huggingface.co/wikilangs}
748
+ institution = {Omneity Labs}
749
+ }
750
+ ```
751
+
752
+ ### License
753
+
754
+ MIT License - Free for academic and commercial use.
755
+
756
+ ### Links
757
+
758
+ - 🌐 Website: [wikilangs.org](https://wikilangs.org)
759
+ - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
760
+ - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
761
+ - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
762
+ - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
763
+ ---
764
+ *Generated by Wikilangs Models Pipeline*
765
+
766
+ *Report Date: 2026-01-10 00:44:21*
models/embeddings/aligned/gv_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfa7cdff73c2254f60358b754abf90a254a93c1fc9a3ebf1577b85c58f4706bf
3
+ size 1042185847
models/embeddings/aligned/gv_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/gv_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2dd4ba39263a9487a0036204add58d24db4b04c84094e1aecd2d51e49f17a13
3
+ size 65664
models/embeddings/aligned/gv_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 7069,
7
+ "vocab_size": 17469
8
+ }
models/embeddings/aligned/gv_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c268dc668c5e942d80b3528921fc3269bbd0f78afc306aa24e790d38dcbff076
3
+ size 260769655
models/embeddings/aligned/gv_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/gv_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbc42dfb16559e5529f697a0786cbc4846881a68db567e48a42e0cc580ed5677
3
+ size 4224
models/embeddings/aligned/gv_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 7069,
7
+ "vocab_size": 17469
8
+ }
models/embeddings/aligned/gv_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94549bc23bddcb47b41298a460893018fb7b65014bf2af90162c80a69b681703
3
+ size 521241719
models/embeddings/aligned/gv_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/gv_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faa507eb94e70c11cbd84f6f1328c60d9eae1a98fb2ad9a12e784e28d0dd9274
3
+ size 16512
models/embeddings/aligned/gv_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 7069,
7
+ "vocab_size": 17469
8
+ }
models/embeddings/monolingual/gv_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfa7cdff73c2254f60358b754abf90a254a93c1fc9a3ebf1577b85c58f4706bf
3
+ size 1042185847
models/embeddings/monolingual/gv_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/gv_128d_metadata.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
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
+ },
14
+ "vocab_size": 17469
15
+ }
models/embeddings/monolingual/gv_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c268dc668c5e942d80b3528921fc3269bbd0f78afc306aa24e790d38dcbff076
3
+ size 260769655
models/embeddings/monolingual/gv_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/gv_32d_metadata.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
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
+ },
14
+ "vocab_size": 17469
15
+ }
models/embeddings/monolingual/gv_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94549bc23bddcb47b41298a460893018fb7b65014bf2af90162c80a69b681703
3
+ size 521241719
models/embeddings/monolingual/gv_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "gv", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/gv_64d_metadata.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
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
+ },
14
+ "vocab_size": 17469
15
+ }
models/subword_markov/gv_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a1cfd4ba601c1963cb0d82851754bdf6e70783dfbdd753776c08a2b6566bb7c
3
+ size 73123
models/subword_markov/gv_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_contexts": 1229,
6
+ "total_transitions": 7131142
7
+ }
models/subword_markov/gv_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e9f593139bff36923dee2064ab464c654b4bdee4358290ba78616746f4a1d06
3
+ size 387913
models/subword_markov/gv_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_contexts": 9341,
6
+ "total_transitions": 7124162
7
+ }
models/subword_markov/gv_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dedf641cdc4388288f3f7430dbbde0b5fd9b210c92d2a045a3a9b59f2152c133
3
+ size 1492490
models/subword_markov/gv_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_contexts": 48186,
6
+ "total_transitions": 7117182
7
+ }
models/subword_markov/gv_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb81be1728f8502a757c43b2a1a8a6433c52efc00672a0910e8d383409185d7e
3
+ size 4062195
models/subword_markov/gv_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_contexts": 193482,
6
+ "total_transitions": 7110202
7
+ }
models/subword_ngram/gv_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:951b4f47ff8e5951cb502742121b17e19bd0f7ba25210b0c0aef66ce568be2cd
3
+ size 42527
models/subword_ngram/gv_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_ngrams": 3213,
6
+ "total_ngrams": 7131142
7
+ }
models/subword_ngram/gv_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5aa8013e0f626905a7c967dcd0cfb750d6bcbdbe9abe5493b0be6341f89b6ed6
3
+ size 280482
models/subword_ngram/gv_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_ngrams": 23013,
6
+ "total_ngrams": 7124162
7
+ }
models/subword_ngram/gv_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d63c1cbc49b068fd555379e099e97e92277114feefc169f756d5279f4ae95d
3
+ size 1254659
models/subword_ngram/gv_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_ngrams": 112078,
6
+ "total_ngrams": 7117182
7
+ }
models/subword_ngram/gv_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a48a53e17df0473b506e310ddbe5555e056fd78aff9b56384afb449debfaab9c
3
+ size 2929015
models/subword_ngram/gv_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "gv",
5
+ "unique_ngrams": 257320,
6
+ "total_ngrams": 7110202
7
+ }
models/tokenizer/gv_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e957cdf9a2c653e24f2f1014facfdabf4697e5dcbff992edebadd022ef45ba8f
3
+ size 507650
models/tokenizer/gv_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/gv_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbe6679a67e85d21e6281433f147b1e00741a6869c7811feb7daf9e6748ddd57
3
+ size 779571
models/tokenizer/gv_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/gv_tokenizer_64k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7a4f03ffbad16dc75409de5781b2651dad341445ac2a6d5803ac604e3ee2149
3
+ size 1350682
models/tokenizer/gv_tokenizer_64k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/gv_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:069eacbd4c74d98b64dfef22b0195ea261cbf759136ebfc8edd1bcb76ee24ae4
3
+ size 373712
models/tokenizer/gv_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/gv_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbf97afa6f5b28081a2a706cd20581e49e169c7d54a3e7f2384c9069cf763ee1
3
+ size 608197
models/vocabulary/gv_vocabulary_metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "gv",
3
+ "vocabulary_size": 35254,
4
+ "variant": "full",
5
+ "statistics": {
6
+ "type_token_ratio": 0.06700809982412394,
7
+ "coverage": {
8
+ "top_100": 0.40603132430933775,
9
+ "top_1000": 0.6846877264361795,
10
+ "top_5000": 0.837829172293907,
11
+ "top_10000": 0.8899634980626419
12
+ },
13
+ "hapax_count": 43536,
14
+ "hapax_ratio": 0.5525574311460846,
15
+ "total_documents": 6980
16
+ }
17
+ }
models/word_markov/gv_markov_ctx1_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce20d5ed322f86d0246063567975e4066df13456d40c9b08979a948214dde6ba
3
+ size 3223140