omarkamali commited on
Commit
7ee187b
·
verified ·
1 Parent(s): cd3fe73

Upload all models and assets for wo (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 +769 -0
  3. models/embeddings/aligned/wo_128d.bin +3 -0
  4. models/embeddings/aligned/wo_128d.meta.json +1 -0
  5. models/embeddings/aligned/wo_128d.projection.npy +3 -0
  6. models/embeddings/aligned/wo_128d_metadata.json +8 -0
  7. models/embeddings/aligned/wo_32d.bin +3 -0
  8. models/embeddings/aligned/wo_32d.meta.json +1 -0
  9. models/embeddings/aligned/wo_32d.projection.npy +3 -0
  10. models/embeddings/aligned/wo_32d_metadata.json +8 -0
  11. models/embeddings/aligned/wo_64d.bin +3 -0
  12. models/embeddings/aligned/wo_64d.meta.json +1 -0
  13. models/embeddings/aligned/wo_64d.projection.npy +3 -0
  14. models/embeddings/aligned/wo_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/wo_128d.bin +3 -0
  16. models/embeddings/monolingual/wo_128d.meta.json +1 -0
  17. models/embeddings/monolingual/wo_128d_metadata.json +16 -0
  18. models/embeddings/monolingual/wo_32d.bin +3 -0
  19. models/embeddings/monolingual/wo_32d.meta.json +1 -0
  20. models/embeddings/monolingual/wo_32d_metadata.json +16 -0
  21. models/embeddings/monolingual/wo_64d.bin +3 -0
  22. models/embeddings/monolingual/wo_64d.meta.json +1 -0
  23. models/embeddings/monolingual/wo_64d_metadata.json +16 -0
  24. models/subword_markov/wo_markov_ctx1_subword.parquet +3 -0
  25. models/subword_markov/wo_markov_ctx1_subword_metadata.json +7 -0
  26. models/subword_markov/wo_markov_ctx2_subword.parquet +3 -0
  27. models/subword_markov/wo_markov_ctx2_subword_metadata.json +7 -0
  28. models/subword_markov/wo_markov_ctx3_subword.parquet +3 -0
  29. models/subword_markov/wo_markov_ctx3_subword_metadata.json +7 -0
  30. models/subword_markov/wo_markov_ctx4_subword.parquet +3 -0
  31. models/subword_markov/wo_markov_ctx4_subword_metadata.json +7 -0
  32. models/subword_ngram/wo_2gram_subword.parquet +3 -0
  33. models/subword_ngram/wo_2gram_subword_metadata.json +7 -0
  34. models/subword_ngram/wo_3gram_subword.parquet +3 -0
  35. models/subword_ngram/wo_3gram_subword_metadata.json +7 -0
  36. models/subword_ngram/wo_4gram_subword.parquet +3 -0
  37. models/subword_ngram/wo_4gram_subword_metadata.json +7 -0
  38. models/subword_ngram/wo_5gram_subword.parquet +3 -0
  39. models/subword_ngram/wo_5gram_subword_metadata.json +7 -0
  40. models/tokenizer/wo_tokenizer_16k.model +3 -0
  41. models/tokenizer/wo_tokenizer_16k.vocab +0 -0
  42. models/tokenizer/wo_tokenizer_32k.model +3 -0
  43. models/tokenizer/wo_tokenizer_32k.vocab +0 -0
  44. models/tokenizer/wo_tokenizer_8k.model +3 -0
  45. models/tokenizer/wo_tokenizer_8k.vocab +0 -0
  46. models/vocabulary/wo_vocabulary.parquet +3 -0
  47. models/vocabulary/wo_vocabulary_metadata.json +17 -0
  48. models/word_markov/wo_markov_ctx1_word.parquet +3 -0
  49. models/word_markov/wo_markov_ctx1_word_metadata.json +7 -0
  50. models/word_markov/wo_markov_ctx2_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,769 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: wo
3
+ language_name: Wolof
4
+ language_family: atlantic_other
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-atlantic_other
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.834
37
+ - name: best_isotropy
38
+ type: isotropy
39
+ value: 0.8649
40
+ - name: vocabulary_size
41
+ type: vocab
42
+ value: 0
43
+ generated: 2026-01-11
44
+ ---
45
+
46
+ # Wolof - Wikilangs Models
47
+ ## Comprehensive Research Report & Full Ablation Study
48
+
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Wolof** 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.486x | 3.49 | 0.1614% | 779,481 |
94
+ | **16k** | 3.696x | 3.70 | 0.1711% | 735,134 |
95
+ | **32k** | 3.834x 🏆 | 3.84 | 0.1775% | 708,618 |
96
+
97
+ ### Tokenization Examples
98
+
99
+ Below are sample sentences tokenized with each vocabulary size:
100
+
101
+ **Sample 1:** `Nuweel Kaledooni : Dun Faraas (Géejpeek u Pacifik)`
102
+
103
+ | Vocab | Tokens | Count |
104
+ |-------|--------|-------|
105
+ | 8k | `▁nu w eel ▁k ale dooni ▁: ▁dun ▁faraas ▁( ... (+6 more)` | 16 |
106
+ | 16k | `▁nuweel ▁kaledooni ▁: ▁dun ▁faraas ▁( géejpeek ▁u ▁pacifik )` | 10 |
107
+ | 32k | `▁nuweel ▁kaledooni ▁: ▁dun ▁faraas ▁( géejpeek ▁u ▁pacifik )` | 10 |
108
+
109
+ **Sample 2:** `Makaaw (澳門) (澳門特別行政區 , Resiyoŋ u Administaraasioŋ Espesiyaal u Ciin bu Makaaw). ...`
110
+
111
+ | Vocab | Tokens | Count |
112
+ |-------|--------|-------|
113
+ | 8k | `▁mak aaw ▁( 澳門 ) ▁( 澳門特別行政區 ▁, ▁res iyoŋ ... (+17 more)` | 27 |
114
+ | 16k | `▁makaaw ▁( 澳門 ) ▁( 澳門特別行政區 ▁, ▁res iyoŋ ▁u ... (+11 more)` | 21 |
115
+ | 32k | `▁makaaw ▁( 澳門 ) ▁( 澳門特別行政區 ▁, ▁res iyoŋ ▁u ... (+9 more)` | 19 |
116
+
117
+ **Sample 3:** `Kingisepp (Кингисепп) dëkku di Riisi. Nitñii motnañu 48 488 Riisi`
118
+
119
+ | Vocab | Tokens | Count |
120
+ |-------|--------|-------|
121
+ | 8k | `▁k ing is epp ▁( ки н г ис е ... (+17 more)` | 27 |
122
+ | 16k | `▁king is epp ▁( ки н г ис е п ... (+16 more)` | 26 |
123
+ | 32k | `▁kingisepp ▁( кингисепп ) ▁dëkku ▁di ▁riisi . ▁nitñii ▁motnañu ... (+8 more)` | 18 |
124
+
125
+
126
+ ### Key Findings
127
+
128
+ - **Best Compression:** 32k achieves 3.834x compression
129
+ - **Lowest UNK Rate:** 8k with 0.1614% 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 | 9,913 | 13.28 | 21,313 | 12.7% | 36.9% |
147
+ | **2-gram** | Subword | 263 🏆 | 8.04 | 2,618 | 68.3% | 99.2% |
148
+ | **3-gram** | Word | 53,177 | 15.70 | 71,583 | 3.9% | 12.9% |
149
+ | **3-gram** | Subword | 2,089 | 11.03 | 17,992 | 26.5% | 74.1% |
150
+ | **4-gram** | Word | 122,855 | 16.91 | 135,374 | 1.5% | 4.7% |
151
+ | **4-gram** | Subword | 11,307 | 13.46 | 78,032 | 12.0% | 38.9% |
152
+ | **5-gram** | Word | 127,965 | 16.97 | 134,813 | 0.9% | 3.0% |
153
+ | **5-gram** | Subword | 39,248 | 15.26 | 182,915 | 6.0% | 23.4% |
154
+
155
+ ### Top 5 N-grams by Size
156
+
157
+ **2-grams (Word):**
158
+
159
+ | Rank | N-gram | Count |
160
+ |------|--------|-------|
161
+ | 1 | `xam ne` | 1,468 |
162
+ | 2 | `na ci` | 1,268 |
163
+ | 3 | `yi ci` | 1,216 |
164
+ | 4 | `gën a` | 1,163 |
165
+ | 5 | `xam xam` | 1,152 |
166
+
167
+ **3-grams (Word):**
168
+
169
+ | Rank | N-gram | Count |
170
+ |------|--------|-------|
171
+ | 1 | `nga xam ne` | 1,027 |
172
+ | 2 | `bokk na ci` | 471 |
173
+ | 3 | `bu ko defee` | 451 |
174
+ | 4 | `yu mag yi` | 235 |
175
+ | 5 | `lëkkalekaay yu biti` | 230 |
176
+
177
+ **4-grams (Word):**
178
+
179
+ | Rank | N-gram | Count |
180
+ |------|--------|-------|
181
+ | 1 | `yi nga xam ne` | 207 |
182
+ | 2 | `bi j y m` | 156 |
183
+ | 3 | `from the original on` | 125 |
184
+ | 4 | `ak delluwaay lëkkalekaay yu` | 119 |
185
+ | 5 | `delluwaay lëkkalekaay yu biti` | 119 |
186
+
187
+ **5-grams (Word):**
188
+
189
+ | Rank | N-gram | Count |
190
+ |------|--------|-------|
191
+ | 1 | `karmat ak delluwaay lëkkalekaay yu` | 119 |
192
+ | 2 | `ak delluwaay lëkkalekaay yu biti` | 119 |
193
+ | 3 | `archived from the original on` | 103 |
194
+ | 4 | `yonnant bi j y m` | 94 |
195
+ | 5 | `de wikipédia avec notice d` | 66 |
196
+
197
+ **2-grams (Subword):**
198
+
199
+ | Rank | N-gram | Count |
200
+ |------|--------|-------|
201
+ | 1 | `i _` | 107,629 |
202
+ | 2 | `u _` | 77,269 |
203
+ | 3 | `a _` | 63,166 |
204
+ | 4 | `_ n` | 58,031 |
205
+ | 5 | `a a` | 56,077 |
206
+
207
+ **3-grams (Subword):**
208
+
209
+ | Rank | N-gram | Count |
210
+ |------|--------|-------|
211
+ | 1 | `_ c i` | 35,175 |
212
+ | 2 | `c i _` | 33,981 |
213
+ | 3 | `_ n a` | 17,142 |
214
+ | 4 | `_ a k` | 15,769 |
215
+ | 5 | `a k _` | 15,662 |
216
+
217
+ **4-grams (Subword):**
218
+
219
+ | Rank | N-gram | Count |
220
+ |------|--------|-------|
221
+ | 1 | `_ c i _` | 33,053 |
222
+ | 2 | `_ a k _` | 14,628 |
223
+ | 3 | `o o n _` | 11,321 |
224
+ | 4 | `_ k o _` | 9,009 |
225
+ | 5 | `_ y i _` | 8,939 |
226
+
227
+ **5-grams (Subword):**
228
+
229
+ | Rank | N-gram | Count |
230
+ |------|--------|-------|
231
+ | 1 | `i _ c i _` | 3,876 |
232
+ | 2 | `_ n e k k` | 3,635 |
233
+ | 3 | `_ m o o m` | 3,495 |
234
+ | 4 | `_ w o o n` | 3,436 |
235
+ | 5 | `m o o y _` | 3,277 |
236
+
237
+
238
+ ### Key Findings
239
+
240
+ - **Best Perplexity:** 2-gram (subword) with 263
241
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
242
+ - **Coverage:** Top-1000 patterns cover ~23% 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.8104 | 1.754 | 5.71 | 40,525 | 19.0% |
259
+ | **1** | Subword | 1.2572 | 2.390 | 9.28 | 630 | 0.0% |
260
+ | **2** | Word | 0.2934 | 1.226 | 1.70 | 230,646 | 70.7% |
261
+ | **2** | Subword | 0.9933 | 1.991 | 5.75 | 5,840 | 0.7% |
262
+ | **3** | Word | 0.0951 | 1.068 | 1.15 | 392,178 | 90.5% |
263
+ | **3** | Subword | 0.8004 | 1.742 | 3.76 | 33,559 | 20.0% |
264
+ | **4** | Word | 0.0328 🏆 | 1.023 | 1.04 | 450,681 | 96.7% |
265
+ | **4** | Subword | 0.6046 | 1.521 | 2.58 | 126,072 | 39.5% |
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. `ci tariixa xaadiriya ci waxtub xër dafa yem diwam bokk na tudde wenn waxambaane tegi tànkam`
274
+ 2. `ak yu gàtti dig lu jëkk moo taxoon seex ibraahima mbeng nekkoon seen diggante loolu yërmande`
275
+ 3. `yi ci wolof mi am ci li moo doon jëfandikoo rawatina nag ag jiital tudd naa`
276
+
277
+ **Context Size 2:**
278
+
279
+ 1. `xam ne day leeral li waa espaañ ak holand ànd ak xol asaf naa nag ñu doon`
280
+ 2. `na ci diggante askan yeek seeni goornamaa loolu tam dooleel bennoo gu almaañ gi ñu dugal ko`
281
+ 3. `yi ci tugal bu yees bii tay goornamaay tugal yi ci ngérum tàggat dajale leen du nu`
282
+
283
+ **Context Size 3:**
284
+
285
+ 1. `nga xam ne danuy sukkandiku ci li nekk ci ginnaaw tawaaful qudoom te jokk ci su dee ajkat`
286
+ 2. `bokk na ci mbootaay yu bari oif au cedeao ak ñoom seen te jumtukaay yi muy jëfandikoo amuñu`
287
+ 3. `bu ko defee mu song ko ca tripoli gu soww ga atum daal di fas kollareg litofski gi`
288
+
289
+ **Context Size 4:**
290
+
291
+ 1. `yi nga xam ne xareb adduna bu njëkk bi yëgoon nanu ne danu leen a xañoon itaali ca ndajem`
292
+ 2. `bi j y m mas naa teew bis kenn ci boroom xam xam yi nag li gën a lëng`
293
+ 3. `from the original on retrieved bu ci melni bu polio bi bobu wane na ni ay ndaw mën nañ`
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. `_tonnde_m_jiy_cà`
303
+ 2. `aakonckku_ko_ten`
304
+ 3. `i,_amen_ci-jëmee`
305
+
306
+ **Context Size 2:**
307
+
308
+ 1. `i_de_we_doon_saak`
309
+ 2. `u_aki_aji_lu_mu_m`
310
+ 3. `a_konaal_nekk_ye_`
311
+
312
+ **Context Size 3:**
313
+
314
+ 1. `_ci_na_bindikoonan`
315
+ 2. `ci_niou,_lool_bind`
316
+ 3. `_na_bi_ci_seere_ni`
317
+
318
+ **Context Size 4:**
319
+
320
+ 1. `_ci_jii_nag_mbëj,_m`
321
+ 2. `_ak_wu_jéggi,nekk_c`
322
+ 3. `oon_à_l'emmeel_bi,_`
323
+
324
+
325
+ ### Key Findings
326
+
327
+ - **Best Predictability:** Context-4 (word) with 96.7% predictability
328
+ - **Branching Factor:** Decreases with context size (more deterministic)
329
+ - **Memory Trade-off:** Larger contexts require more storage (126,072 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 | 21,320 |
346
+ | Total Tokens | 669,546 |
347
+ | Mean Frequency | 31.40 |
348
+ | Median Frequency | 4 |
349
+ | Frequency Std Dev | 356.08 |
350
+
351
+ ### Most Common Words
352
+
353
+ | Rank | Word | Frequency |
354
+ |------|------|-----------|
355
+ | 1 | ci | 34,235 |
356
+ | 2 | ak | 15,534 |
357
+ | 3 | yi | 12,854 |
358
+ | 4 | ko | 10,384 |
359
+ | 5 | bi | 10,094 |
360
+ | 6 | di | 8,275 |
361
+ | 7 | mu | 7,957 |
362
+ | 8 | bu | 7,472 |
363
+ | 9 | na | 7,210 |
364
+ | 10 | yu | 6,832 |
365
+
366
+ ### Least Common Words (from vocabulary)
367
+
368
+ | Rank | Word | Frequency |
369
+ |------|------|-----------|
370
+ | 1 | kapi | 2 |
371
+ | 2 | aicha | 2 |
372
+ | 3 | fassou | 2 |
373
+ | 4 | sagno | 2 |
374
+ | 5 | rugby | 2 |
375
+ | 6 | souaré | 2 |
376
+ | 7 | yéro | 2 |
377
+ | 8 | guinéenne | 2 |
378
+ | 9 | kandet | 2 |
379
+ | 10 | diawara | 2 |
380
+
381
+ ### Zipf's Law Analysis
382
+
383
+ | Metric | Value |
384
+ |--------|-------|
385
+ | Zipf Coefficient | 1.2143 |
386
+ | R² (Goodness of Fit) | 0.993629 |
387
+ | Adherence Quality | **excellent** |
388
+
389
+ ### Coverage Analysis
390
+
391
+ | Top N Words | Coverage |
392
+ |-------------|----------|
393
+ | Top 100 | 46.2% |
394
+ | Top 1,000 | 76.0% |
395
+ | Top 5,000 | 91.1% |
396
+ | Top 10,000 | 95.7% |
397
+
398
+ ### Key Findings
399
+
400
+ - **Zipf Compliance:** R²=0.9936 indicates excellent adherence to Zipf's law
401
+ - **High Frequency Dominance:** Top 100 words cover 46.2% of corpus
402
+ - **Long Tail:** 11,320 words needed for remaining 4.3% 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.8649 🏆 | 0.3602 | N/A | N/A |
428
+ | **mono_64d** | 64 | 0.7358 | 0.2985 | N/A | N/A |
429
+ | **mono_128d** | 128 | 0.2553 | 0.2614 | N/A | N/A |
430
+ | **aligned_32d** | 32 | 0.8649 | 0.3643 | 0.0160 | 0.1220 |
431
+ | **aligned_64d** | 64 | 0.7358 | 0.3085 | 0.0280 | 0.2040 |
432
+ | **aligned_128d** | 128 | 0.2553 | 0.2646 | 0.0560 | 0.2420 |
433
+
434
+ ### Key Findings
435
+
436
+ - **Best Isotropy:** mono_32d with 0.8649 (more uniform distribution)
437
+ - **Semantic Density:** Average pairwise similarity of 0.3096. Lower values indicate better semantic separation.
438
+ - **Alignment Quality:** Aligned models achieve up to 5.6% 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 | **-0.871** | Low formulaic 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
+ | `-s` | saytuloo, saws, sayyidimaa |
461
+ | `-a` | andis, afc, aamustrong |
462
+ | `-m` | magellan, mujjam, médecine |
463
+ | `-b` | bërëp, bàyyiwoon, bashiir |
464
+ | `-d` | dammte, dadi, dimbale |
465
+ | `-n` | natoo, notee, nationale |
466
+ | `-t` | tv, tenqam, tóoru |
467
+ | `-ma` | magellan, mar, maritime |
468
+
469
+ #### Productive Suffixes
470
+ | Suffix | Examples |
471
+ |--------|----------|
472
+ | `-e` | xiirtalante, relatée, notee |
473
+ | `-n` | bàyyiwoon, chemin, magellan |
474
+ | `-i` | lakkati, rakki, parti |
475
+ | `-l` | wiccal, ñenteel, jërul |
476
+ | `-a` | jola, keita, sayyidimaa |
477
+ | `-u` | gondiku, tóoru, sosu |
478
+ | `-s` | andis, saws, joxees |
479
+ | `-on` | bàyyiwoon, àndutoon, interprétation |
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
+ | `tion` | 2.39x | 17 contexts | nation, notion, option |
488
+ | `oroo` | 1.98x | 29 contexts | loroo, joroom, woroom |
489
+ | `enee` | 2.00x | 26 contexts | benee, weneen, yéenee |
490
+ | `ante` | 1.77x | 39 contexts | dante, kante, wante |
491
+ | `maan` | 1.65x | 41 contexts | maang, maane, maana |
492
+ | `araa` | 1.42x | 65 contexts | araab, saraa, araam |
493
+ | `raan` | 1.70x | 29 contexts | iraan, xiraan, fraans |
494
+ | `àlla` | 1.77x | 25 contexts | yàlla, wàlla, àllaa |
495
+ | `oole` | 1.66x | 27 contexts | doole, boole, xoole |
496
+ | `aari` | 1.56x | 33 contexts | yaari, naari, baari |
497
+ | `afri` | 2.06x | 13 contexts | afric, afrig, afrik |
498
+ | `kkoo` | 1.52x | 34 contexts | dàkkoo, jokkoo, sàkkoo |
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
+ | `-s` | `-e` | 55 words | secondaire, seete |
507
+ | `-m` | `-e` | 46 words | mbusóobe, matiere |
508
+ | `-d` | `-e` | 43 words | dofe, dikke |
509
+ | `-m` | `-a` | 42 words | miimiya, maginta |
510
+ | `-t` | `-e` | 40 words | toogee, tëjee |
511
+ | `-m` | `-i` | 39 words | maymooni, mai |
512
+ | `-m` | `-n` | 38 words | mbàmbullaan, muttaquun |
513
+ | `-t` | `-n` | 36 words | telefon, tëjoon |
514
+ | `-a` | `-i` | 35 words | asi, almeeri |
515
+ | `-m` | `-m` | 34 words | mycobacterium, muurum |
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
+ | mokkalloo | **`mokkal-l-oo`** | 7.5 | `l` |
524
+ | ulaayikal | **`ulaayi-k-al`** | 7.5 | `k` |
525
+ | politigkat | **`politig-k-at`** | 7.5 | `k` |
526
+ | ndokkeelsi | **`ndokkeel-s-i`** | 7.5 | `s` |
527
+ | endustreem | **`endustr-e-em`** | 7.5 | `e` |
528
+ | rafetatul | **`rafet-at-ul`** | 6.0 | `rafet` |
529
+ | terewuloon | **`terewul-o-on`** | 6.0 | `terewul` |
530
+ | serigneum | **`serigne-u-m`** | 6.0 | `serigne` |
531
+ | ahmadubnu | **`ahmad-ub-nu`** | 6.0 | `ahmad` |
532
+ | séddaleeb | **`séddalee-b`** | 4.5 | `séddalee` |
533
+ | siyaareem | **`siyaaree-m`** | 4.5 | `siyaaree` |
534
+ | kolombiya | **`kolombi-ya`** | 4.5 | `kolombi` |
535
+ | detection | **`de-te-ction`** | 4.5 | `ction` |
536
+ | jubluwunu | **`jubluwu-nu`** | 4.5 | `jubluwu` |
537
+ | melosuufug | **`melosuuf-ug`** | 4.5 | `melosuuf` |
538
+
539
+ ### 6.6 Linguistic Interpretation
540
+
541
+ > **Automated Insight:**
542
+ The language Wolof shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
543
+
544
+ ---
545
+ ## 7. Summary & Recommendations
546
+
547
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
548
+
549
+ ### Production Recommendations
550
+
551
+ | Component | Recommended | Rationale |
552
+ |-----------|-------------|-----------|
553
+ | Tokenizer | **32k BPE** | Best compression (3.83x) |
554
+ | N-gram | **2-gram** | Lowest perplexity (263) |
555
+ | Markov | **Context-4** | Highest predictability (96.7%) |
556
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
557
+
558
+
559
+ ---
560
+ ## Appendix: Metrics Glossary & Interpretation Guide
561
+
562
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
563
+
564
+ ### Tokenizer Metrics
565
+
566
+ **Compression Ratio**
567
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
568
+ >
569
+ > *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.
570
+ >
571
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
572
+
573
+ **Average Token Length (Fertility)**
574
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
575
+ >
576
+ > *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.
577
+ >
578
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
579
+
580
+ **Unknown Token Rate (OOV Rate)**
581
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
582
+ >
583
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
584
+ >
585
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
586
+
587
+ ### N-gram Model Metrics
588
+
589
+ **Perplexity**
590
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
591
+ >
592
+ > *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.
593
+ >
594
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
595
+
596
+ **Entropy**
597
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
598
+ >
599
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
600
+ >
601
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
602
+
603
+ **Coverage (Top-K)**
604
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
605
+ >
606
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
607
+ >
608
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
609
+
610
+ ### Markov Chain Metrics
611
+
612
+ **Average Entropy**
613
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
614
+ >
615
+ > *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).
616
+ >
617
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
618
+
619
+ **Branching Factor**
620
+ > *Definition:* Average number of unique next tokens observed for each context.
621
+ >
622
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
623
+ >
624
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
625
+
626
+ **Predictability**
627
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
628
+ >
629
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
630
+ >
631
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
632
+
633
+ ### Vocabulary & Zipf's Law Metrics
634
+
635
+ **Zipf's Coefficient**
636
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
637
+ >
638
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
639
+ >
640
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
641
+
642
+ **R² (Coefficient of Determination)**
643
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
644
+ >
645
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
646
+ >
647
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
648
+
649
+ **Vocabulary Coverage**
650
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
651
+ >
652
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
653
+ >
654
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
655
+
656
+ ### Word Embedding Metrics
657
+
658
+ **Isotropy**
659
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
660
+ >
661
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
662
+ >
663
+ > *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.
664
+
665
+ **Average Norm**
666
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
667
+ >
668
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
669
+ >
670
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
671
+
672
+ **Cosine Similarity**
673
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
674
+ >
675
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
676
+ >
677
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
678
+
679
+ **t-SNE Visualization**
680
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
681
+ >
682
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
683
+ >
684
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
685
+
686
+ ### General Interpretation Guidelines
687
+
688
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
689
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
690
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
691
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
692
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
693
+
694
+
695
+ ### Visualizations Index
696
+
697
+ | Visualization | Description |
698
+ |---------------|-------------|
699
+ | Tokenizer Compression | Compression ratios by vocabulary size |
700
+ | Tokenizer Fertility | Average token length by vocabulary |
701
+ | Tokenizer OOV | Unknown token rates |
702
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
703
+ | N-gram Perplexity | Perplexity by n-gram size |
704
+ | N-gram Entropy | Entropy by n-gram size |
705
+ | N-gram Coverage | Top pattern coverage |
706
+ | N-gram Unique | Unique n-gram counts |
707
+ | Markov Entropy | Entropy by context size |
708
+ | Markov Branching | Branching factor by context |
709
+ | Markov Contexts | Unique context counts |
710
+ | Zipf's Law | Frequency-rank distribution with fit |
711
+ | Vocab Frequency | Word frequency distribution |
712
+ | Top 20 Words | Most frequent words |
713
+ | Vocab Coverage | Cumulative coverage curve |
714
+ | Embedding Isotropy | Vector space uniformity |
715
+ | Embedding Norms | Vector magnitude distribution |
716
+ | Embedding Similarity | Word similarity heatmap |
717
+ | Nearest Neighbors | Similar words for key terms |
718
+ | t-SNE Words | 2D word embedding visualization |
719
+ | t-SNE Sentences | 2D sentence embedding visualization |
720
+ | Position Encoding | Encoding method comparison |
721
+ | Model Sizes | Storage requirements |
722
+ | Performance Dashboard | Comprehensive performance overview |
723
+
724
+ ---
725
+ ## About This Project
726
+
727
+ ### Data Source
728
+
729
+ Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
730
+
731
+ ### Project
732
+
733
+ A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
734
+
735
+ ### Maintainer
736
+
737
+ [Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
738
+
739
+ ### Citation
740
+
741
+ If you use these models in your research, please cite:
742
+
743
+ ```bibtex
744
+ @misc{wikilangs2025,
745
+ author = {Kamali, Omar},
746
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
747
+ year = {2025},
748
+ doi = {10.5281/zenodo.18073153},
749
+ publisher = {Zenodo},
750
+ url = {https://huggingface.co/wikilangs}
751
+ institution = {Omneity Labs}
752
+ }
753
+ ```
754
+
755
+ ### License
756
+
757
+ MIT License - Free for academic and commercial use.
758
+
759
+ ### Links
760
+
761
+ - 🌐 Website: [wikilangs.org](https://wikilangs.org)
762
+ - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
763
+ - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
764
+ - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
765
+ - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
766
+ ---
767
+ *Generated by Wikilangs Models Pipeline*
768
+
769
+ *Report Date: 2026-01-11 04:34:19*
models/embeddings/aligned/wo_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b54fb218a70bdba5a18f30963fa94405b9ee5734c6626432e82345cb6037911
3
+ size 1035060212
models/embeddings/aligned/wo_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/wo_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d196f414315d9c29a31a06e374c7cf58a5cf4f36de8c7fdd53a9466e6ac70e8
3
+ size 65664
models/embeddings/aligned/wo_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 2421,
7
+ "vocab_size": 10635
8
+ }
models/embeddings/aligned/wo_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8be1db3b9019ba16d7a95e22ac6a151bd8450091f9d5d2b1e86f28f569afeebf
3
+ size 258892532
models/embeddings/aligned/wo_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/wo_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c98fd39bf67efa58717d41c8f47ca3cc22676d083938201e1c6134aac0a1d6d
3
+ size 4224
models/embeddings/aligned/wo_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 2421,
7
+ "vocab_size": 10635
8
+ }
models/embeddings/aligned/wo_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1300764fec2ce010fc09022f1e1c7b996f55b7a79803aa1a5d427e3c721cbe2d
3
+ size 517615092
models/embeddings/aligned/wo_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/wo_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:55c7953591ef92cec13c72b93f1232a52d7ed907771df2fc03c1294423b7d176
3
+ size 16512
models/embeddings/aligned/wo_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 2421,
7
+ "vocab_size": 10635
8
+ }
models/embeddings/monolingual/wo_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b54fb218a70bdba5a18f30963fa94405b9ee5734c6626432e82345cb6037911
3
+ size 1035060212
models/embeddings/monolingual/wo_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/wo_128d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
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": 10635
16
+ }
models/embeddings/monolingual/wo_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8be1db3b9019ba16d7a95e22ac6a151bd8450091f9d5d2b1e86f28f569afeebf
3
+ size 258892532
models/embeddings/monolingual/wo_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/wo_32d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
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": 10635
16
+ }
models/embeddings/monolingual/wo_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1300764fec2ce010fc09022f1e1c7b996f55b7a79803aa1a5d427e3c721cbe2d
3
+ size 517615092
models/embeddings/monolingual/wo_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "wo", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/wo_64d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
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": 10635
16
+ }
models/subword_markov/wo_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b49b97db16db25e6e6d26f8adb134a8ad0ce4ed86aadafa8b49b7d92748c0cd3
3
+ size 49641
models/subword_markov/wo_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_contexts": 630,
6
+ "total_transitions": 3499052
7
+ }
models/subword_markov/wo_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c64c02a948a7f4637b88f0d5df15db826cffd5533da02da0ffab66049f2d2fc
3
+ size 281263
models/subword_markov/wo_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_contexts": 5840,
6
+ "total_transitions": 3497561
7
+ }
models/subword_markov/wo_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:537f6cd3d2059ef956d1f8ae7dafeb57cb2993ea7373b819975fc4d76a90fdbb
3
+ size 977529
models/subword_markov/wo_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_contexts": 33559,
6
+ "total_transitions": 3496070
7
+ }
models/subword_markov/wo_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff17913565c87d6231148013455f5abd3eb4caa55bbc0ad9b12101ad430f1f77
3
+ size 2594670
models/subword_markov/wo_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_contexts": 126072,
6
+ "total_transitions": 3494579
7
+ }
models/subword_ngram/wo_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34fdab01d1381e92408e607b9c0cfc69c2be70d63bfed023eb1479307b587364
3
+ size 34061
models/subword_ngram/wo_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_ngrams": 2618,
6
+ "total_ngrams": 3499052
7
+ }
models/subword_ngram/wo_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be7234e9d6284ac2154c091ed43cf733f32ed42b682b857616849bcfd3e3f086
3
+ size 214167
models/subword_ngram/wo_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_ngrams": 17992,
6
+ "total_ngrams": 3497561
7
+ }
models/subword_ngram/wo_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e7c21955b74521ffb59dbe67a76179237a0cc7a007e6c94a821e99f76f55486
3
+ size 895669
models/subword_ngram/wo_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_ngrams": 78032,
6
+ "total_ngrams": 3496070
7
+ }
models/subword_ngram/wo_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b84537930d9310eda847f273b0e06f2d4a92606c49a21f4620e7991d2efecb08
3
+ size 2084458
models/subword_ngram/wo_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "wo",
5
+ "unique_ngrams": 182915,
6
+ "total_ngrams": 3494579
7
+ }
models/tokenizer/wo_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94d91d9a1c8670b80dcc8ea44cb78d112d332c0c0c026339724834b7529352e2
3
+ size 502532
models/tokenizer/wo_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/wo_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cdfad0c183accc2741f7e3104abbafbdb1b9d0469c5cbe70541dc9634de7760
3
+ size 783207
models/tokenizer/wo_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/wo_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd45100d7b61b2a6a37c7204e047b3f6c36ae4219ffd6a271e5802d946f02990
3
+ size 370579
models/tokenizer/wo_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/wo_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07085318b5eb49c0e07ff710e98a086c958c57ae386c6d18c9db99a71f9a045a
3
+ size 348743
models/vocabulary/wo_vocabulary_metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "wo",
3
+ "vocabulary_size": 21320,
4
+ "variant": "full",
5
+ "statistics": {
6
+ "type_token_ratio": 0.059032389645416634,
7
+ "coverage": {
8
+ "top_100": 0.4492453835356144,
9
+ "top_1000": 0.7385675279034625,
10
+ "top_5000": 0.8855613281017517,
11
+ "top_10000": 0.9302721903111223
12
+ },
13
+ "hapax_count": 19347,
14
+ "hapax_ratio": 0.4757420021147368,
15
+ "total_documents": 1491
16
+ }
17
+ }
models/word_markov/wo_markov_ctx1_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c6783f65b9f4bc6ae3b895800a57ed6d71119d0f5b11a58e2c8a0a4b0c78b42
3
+ size 1633082
models/word_markov/wo_markov_ctx1_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "word",
4
+ "language": "wo",
5
+ "unique_contexts": 40525,
6
+ "total_transitions": 687402
7
+ }
models/word_markov/wo_markov_ctx2_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34170b664b311106f9c631633b04d5669ca98fc991db04b6456d21f1bb8ffac1
3
+ size 4117695