omarkamali commited on
Commit
a0f15aa
·
verified ·
1 Parent(s): d3b4dbd

Upload all models and assets for ceb (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. README.md +130 -666
  2. RESEARCH_REPORT.md +686 -0
  3. ceb_morph_tokenizer.json +0 -0
  4. models/embeddings/aligned/ceb_128d.bin +2 -2
  5. models/embeddings/aligned/ceb_128d.projection.npy +1 -1
  6. models/embeddings/aligned/ceb_128d_metadata.json +2 -2
  7. models/embeddings/aligned/ceb_32d.bin +2 -2
  8. models/embeddings/aligned/ceb_32d.projection.npy +1 -1
  9. models/embeddings/aligned/ceb_32d_metadata.json +2 -2
  10. models/embeddings/aligned/ceb_64d.bin +2 -2
  11. models/embeddings/aligned/ceb_64d.projection.npy +1 -1
  12. models/embeddings/aligned/ceb_64d_metadata.json +2 -2
  13. models/embeddings/monolingual/ceb_128d.bin +2 -2
  14. models/embeddings/monolingual/ceb_128d_metadata.json +3 -2
  15. models/embeddings/monolingual/ceb_32d.bin +2 -2
  16. models/embeddings/monolingual/ceb_32d_metadata.json +3 -2
  17. models/embeddings/monolingual/ceb_64d.bin +2 -2
  18. models/embeddings/monolingual/ceb_64d_metadata.json +3 -2
  19. models/subword_markov/ceb_markov_ctx1_subword.parquet +2 -2
  20. models/subword_markov/ceb_markov_ctx1_subword_metadata.json +2 -2
  21. models/subword_markov/ceb_markov_ctx2_subword.parquet +2 -2
  22. models/subword_markov/ceb_markov_ctx2_subword_metadata.json +2 -2
  23. models/subword_markov/ceb_markov_ctx3_subword.parquet +2 -2
  24. models/subword_markov/ceb_markov_ctx3_subword_metadata.json +2 -2
  25. models/subword_markov/ceb_markov_ctx4_subword.parquet +2 -2
  26. models/subword_markov/ceb_markov_ctx4_subword_metadata.json +2 -2
  27. models/subword_ngram/ceb_2gram_subword.parquet +2 -2
  28. models/subword_ngram/ceb_2gram_subword_metadata.json +2 -2
  29. models/subword_ngram/ceb_3gram_subword.parquet +2 -2
  30. models/subword_ngram/ceb_3gram_subword_metadata.json +2 -2
  31. models/subword_ngram/ceb_4gram_subword.parquet +2 -2
  32. models/subword_ngram/ceb_4gram_subword_metadata.json +2 -2
  33. models/subword_ngram/ceb_5gram_subword.parquet +2 -2
  34. models/subword_ngram/ceb_5gram_subword_metadata.json +2 -2
  35. models/tokenizer/ceb_tokenizer_16k.model +2 -2
  36. models/tokenizer/ceb_tokenizer_16k.vocab +0 -0
  37. models/tokenizer/ceb_tokenizer_32k.model +2 -2
  38. models/tokenizer/ceb_tokenizer_32k.vocab +0 -0
  39. models/tokenizer/ceb_tokenizer_64k.model +2 -2
  40. models/tokenizer/ceb_tokenizer_64k.vocab +0 -0
  41. models/tokenizer/ceb_tokenizer_8k.model +2 -2
  42. models/tokenizer/ceb_tokenizer_8k.vocab +0 -0
  43. models/vocabulary/ceb_vocabulary.parquet +2 -2
  44. models/vocabulary/ceb_vocabulary_metadata.json +9 -9
  45. models/word_markov/ceb_markov_ctx1_word.parquet +2 -2
  46. models/word_markov/ceb_markov_ctx1_word_metadata.json +2 -2
  47. models/word_markov/ceb_markov_ctx2_word.parquet +2 -2
  48. models/word_markov/ceb_markov_ctx2_word_metadata.json +2 -2
  49. models/word_markov/ceb_markov_ctx3_word.parquet +2 -2
  50. models/word_markov/ceb_markov_ctx3_word_metadata.json +2 -2
README.md CHANGED
@@ -33,734 +33,198 @@ dataset_info:
33
  metrics:
34
  - name: best_compression_ratio
35
  type: compression
36
- value: 4.059
37
  - name: best_isotropy
38
  type: isotropy
39
- value: 0.7670
 
 
 
40
  - name: vocabulary_size
41
  type: vocab
42
- value: 0
43
- generated: 2026-01-07
44
  ---
45
 
46
- # Cebuano - Wikilangs Models
47
- ## Comprehensive Research Report & Full Ablation Study
48
 
49
- This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Cebuano** 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.174x | 3.18 | 0.3878% | 267,679 |
94
- | **16k** | 3.550x | 3.55 | 0.4338% | 239,262 |
95
- | **32k** | 3.813x | 3.82 | 0.4660% | 222,758 |
96
- | **64k** | 4.059x 🏆 | 4.06 | 0.4960% | 209,290 |
97
 
98
- ### Tokenization Examples
 
99
 
100
- Below are sample sentences tokenized with each vocabulary size:
 
 
101
 
102
- **Sample 1:** `Kahenera sa mga kaka ang Cteniza. Ang Cteniza sakop sa kabanay nga Ctenizidae. A...`
 
 
 
103
 
104
  | Vocab | Tokens | Count |
105
  |-------|--------|-------|
106
- | 8k | `▁kahenerasa ▁mga ▁kaka ▁ang ▁cten iza . ▁ang ▁cten ... (+23 more)` | 33 |
107
- | 16k | `▁kahenerasa ▁mga ▁kaka ▁ang ▁cten iza . ▁ang ▁cten ... (+22 more)` | 32 |
108
- | 32k | `▁kahenerasa ▁mga ▁kaka ▁ang ▁cten iza . ▁ang ▁cten ... (+21 more)` | 31 |
109
- | 64k | `▁kahenerasa ▁mga ▁kaka ▁angcten iza . ▁ang ▁cten ... (+21 more)` | 31 |
110
 
111
- **Sample 2:** `Ang Jizō-saki ngalan niining mga mosunod: Heyograpiya Hapon Shakaga Hana, punta,...`
112
 
113
  | Vocab | Tokens | Count |
114
  |-------|--------|-------|
115
- | 8k | `▁ang ▁j iz ō - s aki ▁ngalanni in ... (+47 more)` | 57 |
116
- | 16k | `▁ang ▁j iz ō - s akingalan ▁ni ining ... (+36 more)` | 46 |
117
- | 32k | `▁ang ▁j iz ō - s akingalan ▁niining ▁mga ... (+32 more)` | 42 |
118
- | 64k | `▁ang ▁j iz ō - s akingalanniiningmga ... (+32 more)` | 42 |
119
 
120
- **Sample 3:** `Ang (MCMLXXXIII) mao ang usa ka tuig sa kalendaryong Gregoryano. Ang maoy usa ka...`
121
 
122
  | Vocab | Tokens | Count |
123
  |-------|--------|-------|
124
- | 8k | `▁ang ▁( m c m l xx x iii ) ... (+32 more)` | 42 |
125
- | 16k | `▁ang ▁( m c m l xx x iii ) ... (+28 more)` | 38 |
126
- | 32k | `▁ang ▁( m c m l xxx iii )mao ... (+24 more)` | 34 |
127
- | 64k | `▁ang ▁( mc m l xxx iii )maoang ... (+22 more)` | 32 |
128
-
129
-
130
- ### Key Findings
131
-
132
- - **Best Compression:** 64k achieves 4.059x compression
133
- - **Lowest UNK Rate:** 8k with 0.3878% 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 | 3,171 | 11.63 | 3,446,236 | 37.4% | 76.3% |
151
- | **2-gram** | Subword | 218 🏆 | 7.77 | 33,604 | 70.8% | 99.5% |
152
- | **3-gram** | Word | 6,839 | 12.74 | 7,766,658 | 32.6% | 69.1% |
153
- | **3-gram** | Subword | 1,277 | 10.32 | 196,868 | 35.6% | 83.3% |
154
- | **4-gram** | Word | 13,177 | 13.69 | 16,952,568 | 31.0% | 62.8% |
155
- | **4-gram** | Subword | 3,898 | 11.93 | 1,019,139 | 22.5% | 67.3% |
156
- | **5-gram** | Word | 19,115 | 14.22 | 18,655,008 | 30.0% | 58.4% |
157
- | **5-gram** | Subword | 7,890 | 12.95 | 3,628,728 | 16.7% | 59.8% |
158
-
159
- ### Top 5 N-grams by Size
160
-
161
- **2-grams (Word):**
162
-
163
- | Rank | N-gram | Count |
164
- |------|--------|-------|
165
- | 1 | `sa nasod` | 7,048,649 |
166
- | 2 | `km sa` | 6,204,569 |
167
- | 3 | `palibot sa` | 5,653,512 |
168
- | 4 | `ang mga` | 5,645,464 |
169
- | 5 | `mga gi` | 5,576,920 |
170
-
171
- **3-grams (Word):**
172
-
173
- | Rank | N-gram | Count |
174
- |------|--------|-------|
175
- | 1 | `mga gi basihan` | 5,576,915 |
176
- | 2 | `ang mga gi` | 5,576,913 |
177
- | 3 | `gi basihan niini` | 5,576,912 |
178
- | 4 | `geonames org cc` | 3,664,283 |
179
- | 5 | `org cc by` | 3,664,283 |
180
-
181
- **4-grams (Word):**
182
-
183
- | Rank | N-gram | Count |
184
- |------|--------|-------|
185
- | 1 | `ang mga gi basihan` | 5,576,913 |
186
- | 2 | `mga gi basihan niini` | 5,576,912 |
187
- | 3 | `geonames org cc by` | 3,664,283 |
188
- | 4 | `org cc by post` | 3,664,270 |
189
- | 5 | `cc by post updated` | 3,664,269 |
190
-
191
- **5-grams (Word):**
192
-
193
- | Rank | N-gram | Count |
194
- |------|--------|-------|
195
- | 1 | `ang mga gi basihan niini` | 5,576,912 |
196
- | 2 | `geonames org cc by post` | 3,664,270 |
197
- | 3 | `org cc by post updated` | 3,664,269 |
198
- | 4 | `cc by post updated database` | 3,664,234 |
199
- | 5 | `post updated database download sa` | 3,664,233 |
200
-
201
- **2-grams (Subword):**
202
-
203
- | Rank | N-gram | Count |
204
- |------|--------|-------|
205
- | 1 | `a _` | 176,572,408 |
206
- | 2 | `a n` | 170,636,786 |
207
- | 3 | `n g` | 127,660,424 |
208
- | 4 | `s a` | 126,044,028 |
209
- | 5 | `_ s` | 125,029,167 |
210
-
211
- **3-grams (Subword):**
212
-
213
- | Rank | N-gram | Count |
214
- |------|--------|-------|
215
- | 1 | `_ s a` | 104,157,280 |
216
- | 2 | `s a _` | 95,124,588 |
217
- | 3 | `a n g` | 80,898,551 |
218
- | 4 | `n g _` | 79,824,327 |
219
- | 5 | `_ a n` | 50,392,535 |
220
-
221
- **4-grams (Subword):**
222
-
223
- | Rank | N-gram | Count |
224
- |------|--------|-------|
225
- | 1 | `_ s a _` | 94,060,964 |
226
- | 2 | `a n g _` | 70,289,894 |
227
- | 3 | `_ a n g` | 46,728,827 |
228
- | 4 | `_ n g a` | 28,593,356 |
229
- | 5 | `n g a _` | 26,245,654 |
230
-
231
- **5-grams (Subword):**
232
-
233
- | Rank | N-gram | Count |
234
- |------|--------|-------|
235
- | 1 | `_ a n g _` | 46,539,851 |
236
- | 2 | `_ n g a _` | 26,090,887 |
237
- | 3 | `n _ s a _` | 24,592,104 |
238
- | 4 | `. _ a n g` | 21,317,144 |
239
- | 5 | `a n g _ k` | 20,331,305 |
240
-
241
-
242
- ### Key Findings
243
-
244
- - **Best Perplexity:** 2-gram (subword) with 218
245
- - **Entropy Trend:** Decreases with larger n-grams (more predictable)
246
- - **Coverage:** Top-1000 patterns cover ~60% 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 | 1.4579 | 2.747 | 8.46 | 2,622,358 | 0.0% |
263
- | **1** | Subword | 1.5846 | 2.999 | 12.23 | 10,636 | 0.0% |
264
- | **2** | Word | 0.5081 | 1.422 | 2.51 | 21,964,306 | 49.2% |
265
- | **2** | Subword | 0.6448 | 1.564 | 3.57 | 129,845 | 35.5% |
266
- | **3** | Word | 0.2262 | 1.170 | 1.63 | 54,790,128 | 77.4% |
267
- | **3** | Subword | 0.6034 | 1.519 | 3.47 | 463,245 | 39.7% |
268
- | **4** | Word | 0.0992 🏆 | 1.071 | 1.32 | 89,104,487 | 90.1% |
269
- | **4** | Subword | 0.6107 | 1.527 | 3.20 | 1,608,648 | 38.9% |
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. `sa lintjønnåsen bungtod mikkelhaugen ang poluostrov zuyeva sa amihanan sidlakan dagat kahaboga ang k...`
278
- 2. `ang kinainitan nga matang nga sama niini turkey hill sa british columbia river ang kinahabogang dapi...`
279
- 3. `nga sama niini villabuena del atlántico sur peru nga ugahon ang kinabasaan nga bulan hunyo sa`
280
-
281
- **Context Size 2:**
282
-
283
- 1. `sa nasod ang klima bugnaw nga ugahon ang kasarangang giiniton c ang kasarangang pag ulan milimetro m...`
284
- 2. `km sa amihanan kasadpan sa washington d c metros ibabaw sa dagat kahaboga ang nahimutangan sa mållok`
285
- 3. `palibot sa desa caringin administratibo nga balangay ang kudumbuwa sa geonames org cc by post update...`
286
-
287
- **Context Size 3:**
288
-
289
- 1. `mga gi basihan niini jessup guymer in austrobaileya 7 15 govaerts r ed for a full list of`
290
- 2. `ang mga gi basihan niini kūh e tīr sa rehiyon palibot sa parksville knob hapit nalukop sa kaumahan`
291
- 3. `gi basihan niini nhamiraze sa geonames org cc by post updated database download sa pahang suba sa ma...`
292
-
293
- **Context Size 4:**
294
-
295
- 1. `ang mga gi basihan niini austdalen sa geonames org cc by post updated database download sa suba sa i...`
296
- 2. `mga gi basihan niini cañada del mundo sa dominikanhong republika nahimutang ni sa sentro nga bahin s...`
297
- 3. `geonames org cc by post updated database download sa bungtod sa northern estado sa sudan sa sudan ng...`
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. `_nahinababaes_pi`
307
- 2. `a_mga_nl._sangan`
308
- 3. `nga_mibluagingal`
309
-
310
- **Context Size 2:**
311
-
312
- 1. `a_amasmyctomihapr`
313
- 2. `andsby)];_p.m._an`
314
- 3. `ngaloado_nga_gel.`
315
-
316
- **Context Size 3:**
317
 
318
- 1. `_sa_hayop_sa_tro._`
319
- 2. `sa_orrell_(cc-by)]`
320
- 3. `ang_sourgoin_tom_n`
321
 
322
- **Context Size 4:**
323
 
324
- 1. `_sa_nasod,_km_sa_[_`
325
- 2. `ang_patag_tuig._kin`
326
- 3. `_ang_kinabarat_aaku`
327
 
 
 
328
 
329
- ### Key Findings
330
-
331
- - **Best Predictability:** Context-4 (word) with 90.1% predictability
332
- - **Branching Factor:** Decreases with context size (more deterministic)
333
- - **Memory Trade-off:** Larger contexts require more storage (1,608,648 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 | 2,197,636 |
350
- | Total Tokens | 770,818,249 |
351
- | Mean Frequency | 350.75 |
352
- | Median Frequency | 6 |
353
- | Frequency Std Dev | 78759.96 |
354
-
355
- ### Most Common Words
356
-
357
- | Rank | Word | Frequency |
358
- |------|------|-----------|
359
- | 1 | sa | 95,123,802 |
360
- | 2 | ang | 48,189,862 |
361
- | 3 | nga | 26,091,942 |
362
- | 4 | ug | 11,614,833 |
363
- | 5 | mga | 11,196,843 |
364
- | 6 | c | 9,761,410 |
365
- | 7 | ni | 8,490,669 |
366
- | 8 | niini | 7,626,074 |
367
- | 9 | palibot | 7,306,530 |
368
- | 10 | nasod | 7,071,533 |
369
-
370
- ### Least Common Words (from vocabulary)
371
-
372
- | Rank | Word | Frequency |
373
- |------|------|-----------|
374
- | 1 | kaliforńijo | 2 |
375
- | 2 | kaliforniya | 2 |
376
- | 3 | کیلیفورنیا | 2 |
377
- | 4 | couzzens | 2 |
378
- | 5 | hellgrammite | 2 |
379
- | 6 | powena | 2 |
380
- | 7 | californië | 2 |
381
- | 8 | mcgarva | 2 |
382
- | 9 | fightertown | 2 |
383
- | 10 | ferril | 2 |
384
-
385
- ### Zipf's Law Analysis
386
-
387
- | Metric | Value |
388
- |--------|-------|
389
- | Zipf Coefficient | 1.4288 |
390
- | R² (Goodness of Fit) | 0.993579 |
391
- | Adherence Quality | **excellent** |
392
-
393
- ### Coverage Analysis
394
-
395
- | Top N Words | Coverage |
396
- |-------------|----------|
397
- | Top 100 | 63.2% |
398
- | Top 1,000 | 88.4% |
399
- | Top 5,000 | 93.1% |
400
- | Top 10,000 | 94.4% |
401
-
402
- ### Key Findings
403
-
404
- - **Zipf Compliance:** R²=0.9936 indicates excellent adherence to Zipf's law
405
- - **High Frequency Dominance:** Top 100 words cover 63.2% of corpus
406
- - **Long Tail:** 2,187,636 words needed for remaining 5.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.7670 🏆 | 0.3194 | N/A | N/A |
432
- | **mono_64d** | 64 | 0.7432 | 0.2748 | N/A | N/A |
433
- | **mono_128d** | 128 | 0.6660 | 0.2423 | N/A | N/A |
434
- | **aligned_32d** | 32 | 0.7670 | 0.3286 | 0.1020 | 0.4400 |
435
- | **aligned_64d** | 64 | 0.7432 | 0.2716 | 0.2480 | 0.6140 |
436
- | **aligned_128d** | 128 | 0.6660 | 0.2452 | 0.3300 | 0.7240 |
437
 
438
- ### Key Findings
439
 
440
- - **Best Isotropy:** mono_32d with 0.7670 (more uniform distribution)
441
- - **Semantic Density:** Average pairwise similarity of 0.2803. Lower values indicate better semantic separation.
442
- - **Alignment Quality:** Aligned models achieve up to 33.0% 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.024** | 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
- | `-ma` | mazanderanica, magnesita, magnhildmyra |
465
-
466
- #### Productive Suffixes
467
- | Suffix | Examples |
468
- |--------|----------|
469
- | `-a` | susumwa, pucanaylla, mazanderanica |
470
- | `-s` | heteraxinoides, gastroglottis, supersentiens |
471
- | `-en` | sveinebakken, elgemyrdalen, føytongjen |
472
- | `-is` | gastroglottis, nooksackensis, naraiensis |
473
- | `-us` | pseudogymnostreptus, rearedpiaractus, supremus |
474
- | `-ia` | omphalomia, eugomontia, leucospilaria |
475
- | `-la` | pucanaylla, diltilla, bulbulla |
476
- | `-na` | thunbergiana, jajina, coolarrikinna |
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
- | `lson` | 2.69x | 160 contexts | olson, alson, elson |
485
- | `ahim` | 2.83x | 95 contexts | kahim, rahim, tahim |
486
- | `eona` | 2.74x | 87 contexts | teona, meona, leona |
487
- | `ngto` | 2.54x | 108 contexts | hangto, singto, langto |
488
- | `ugna` | 2.37x | 146 contexts | yugna, pugna, ugnat |
489
- | `ogue` | 2.44x | 115 contexts | bogue, logue, gogue |
490
- | `etro` | 2.08x | 203 contexts | netro, uetro, etrou |
491
- | `ands` | 2.06x | 206 contexts | sands, wands, pands |
492
- | `abaw` | 2.19x | 74 contexts | mabaw, labaw, tabaw |
493
- | `ecie` | 2.61x | 34 contexts | decie, pecies, specie |
494
- | `ated` | 2.52x | 37 contexts | dated, rated, hated |
495
- | `atag` | 1.65x | 256 contexts | atagn, datag, atago |
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
- | `-ma` | `-a` | 56 words | matarrala, mahmudiya |
504
- | `-ma` | `-s` | 25 words | macrostrobilus, macroconus |
505
- | `-ma` | `-na` | 13 words | magiana, manvoumouna |
506
- | `-ma` | `-us` | 9 words | macrostrobilus, macroconus |
507
- | `-ma` | `-la` | 8 words | matarrala, macunolla |
508
- | `-ma` | `-is` | 7 words | mallecensis, marizópolis |
509
- | `-ma` | `-ia` | 4 words | maligia, mariahuslia |
510
- | `-ma` | `-ra` | 3 words | mautotara, macrochiera |
511
- | `-ma` | `-en` | 3 words | maben, maureen |
512
- | `-ma` | `-es` | 2 words | macroscelides, mashes |
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
- | whittieriana | **`whittier-ia-na`** | 6.0 | `whittier` |
521
- | darwiniana | **`darwin-ia-na`** | 6.0 | `darwin` |
522
- | huicumera | **`huicume-ra`** | 4.5 | `huicume` |
523
- | javorkana | **`javorka-na`** | 4.5 | `javorka` |
524
- | olavsbekken | **`olavsbekk-en`** | 4.5 | `olavsbekk` |
525
- | campelles | **`campell-es`** | 4.5 | `campell` |
526
- | apolinaria | **`apolinar-ia`** | 4.5 | `apolinar` |
527
- | steyskalia | **`steyskal-ia`** | 4.5 | `steyskal` |
528
- | liniholmen | **`liniholm-en`** | 4.5 | `liniholm` |
529
- | finngrunden | **`finngrund-en`** | 4.5 | `finngrund` |
530
- | maaprobahan | **`ma-aprobahan`** | 4.5 | `aprobahan` |
531
- | macrostylospora | **`ma-crostylospo-ra`** | 3.0 | `crostylospo` |
532
- | saharolana | **`saharo-la-na`** | 3.0 | `saharo` |
533
- | maxwellensis | **`ma-xwellens-is`** | 3.0 | `xwellens` |
534
- | mappianthus | **`ma-ppianth-us`** | 3.0 | `ppianth` |
535
-
536
- ### 6.6 Linguistic Interpretation
537
-
538
- > **Automated Insight:**
539
- The language Cebuano 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.06x) |
551
- | N-gram | **2-gram** | Lowest perplexity (218) |
552
- | Markov | **Context-4** | Highest predictability (90.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-07 20:10:38*
 
 
 
 
33
  metrics:
34
  - name: best_compression_ratio
35
  type: compression
36
+ value: 4.164
37
  - name: best_isotropy
38
  type: isotropy
39
+ value: 0.8551
40
+ - name: best_alignment_r10
41
+ type: alignment
42
+ value: 0.5920
43
  - name: vocabulary_size
44
  type: vocab
45
+ value: 208251
46
+ generated: 2026-03-04
47
  ---
48
 
49
+ # Cebuano Wikilangs Models
 
50
 
51
+ Open-source tokenizers, n-gram & Markov language models, vocabulary stats, and word embeddings trained on **Cebuano** Wikipedia by [Wikilangs](https://wikilangs.org).
 
52
 
53
+ 🌐 [Language Page](https://wikilangs.org/languages/ceb/) · 🎮 [Playground](https://wikilangs.org/playground/?lang=ceb) · 📊 [Full Research Report](RESEARCH_REPORT.md)
54
 
55
+ ## Language Samples
56
 
57
+ Example sentences drawn from the Cebuano Wikipedia corpus:
 
 
 
 
 
 
58
 
59
+ > Kining maong panid gitagana alang sa lista sa mga tawo nga nahimong mayor sa lalawigan sa Sugbo. Alkalde sa Lalawigan sa Sugbo Alkalde
60
 
61
+ > Ang sekswalidad puyde mopasabot sa: Sekswalidad sa tawo Sekswalidad sa tanom Sekswalidad (oryentasyon) Sekswalidad sa mananap
62
 
63
+ > Katawhan ug Kultura Ekonomiya Heyograpiya Politikal Mga lungsod Dakbayan Mga dakbayan Pisikal Kaagi Mga sumpay sa gawas
 
 
 
 
 
 
 
 
64
 
65
+ > Kining maong panid gitagana alang sa lista sa mga tawo nga nahimong gobernador sa lalawigan sa Samar. Mga Gobernador Antonio Bolastig Milagrosa T. Tan Gobernador Gobernador sa Samar
 
66
 
67
+ > Kining maong panid gitagana alang sa lista sa mga tawo nga nahimong gobernador sa lalawigan sa Biliran. Mga Gobernador (gikan Wayne Jaro Rogelio J. Espina Gobernador Gobernador sa Biliran
68
 
69
+ ## Quick Start
70
 
71
+ ### Load the Tokenizer
72
 
73
+ ```python
74
+ import sentencepiece as spm
75
 
76
+ sp = spm.SentencePieceProcessor()
77
+ sp.Load("ceb_tokenizer_32k.model")
78
 
79
+ text = "Ang (MDCCL) mao ang usa ka tuig sa kalendaryong Gregoryano. Ang maoy usa ka tuig"
80
+ tokens = sp.EncodeAsPieces(text)
81
+ ids = sp.EncodeAsIds(text)
 
 
 
82
 
83
+ print(tokens) # subword pieces
84
+ print(ids) # integer ids
85
 
86
+ # Decode back
87
+ print(sp.DecodeIds(ids))
88
+ ```
89
 
90
+ <details>
91
+ <summary><b>Tokenization examples (click to expand)</b></summary>
92
+
93
+ **Sample 1:** `Ang (MDCCL) mao ang usa ka tuig sa kalendaryong Gregoryano. Ang maoy usa ka tuig…`
94
 
95
  | Vocab | Tokens | Count |
96
  |-------|--------|-------|
97
+ | 8k | `▁ang( m d c cl ) ▁mao ▁ang ▁usa (+27 more)` | 37 |
98
+ | 16k | `▁ang( m d c cl ) ▁mao ▁ang ▁usa (+24 more)` | 34 |
99
+ | 32k | `▁ang( m d c cl ) ▁mao ▁ang ▁usa (+22 more)` | 32 |
100
+ | 64k | `▁ang( md c cl ) mao ▁ang ▁usa ▁ka (+21 more)` | 31 |
101
 
102
+ **Sample 2:** `Vilnius - Ulohan, Lyetuwanya. lungsod ug dakbayan sa Uropa`
103
 
104
  | Vocab | Tokens | Count |
105
  |-------|--------|-------|
106
+ | 8k | `▁v il n ius - ▁ulo han ,ly et (+9 more)` | 19 |
107
+ | 16k | `▁vil n ius - ▁ulohan ,ly et uw an (+7 more)` | 17 |
108
+ | 32k | `▁vil n ius - ▁ulohan ,ly et uw an (+7 more)` | 17 |
109
+ | 64k | `▁vil n ius - ▁ulohan ,lyetuwanya . lungsodug (+3 more)` | 13 |
110
 
111
+ **Sample 3:** `Ang manunuwat usa ka tawo nga naay propesyon sa pagsulat.`
112
 
113
  | Vocab | Tokens | Count |
114
  |-------|--------|-------|
115
+ | 8k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nga ▁na (+9 more)` | 19 |
116
+ | 16k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nga ▁na (+8 more)` | 18 |
117
+ | 32k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nganaay (+6 more)` | 16 |
118
+ | 64k | `▁ang ▁man un uwat ▁usa ▁ka ▁tawo ▁nganaaypropes (+4 more)` | 14 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
+ </details>
 
 
121
 
122
+ ### Load Word Embeddings
123
 
124
+ ```python
125
+ from gensim.models import KeyedVectors
 
126
 
127
+ # Aligned embeddings (cross-lingual, mapped to English vector space)
128
+ wv = KeyedVectors.load("ceb_embeddings_128d_aligned.kv")
129
 
130
+ similar = wv.most_similar("word", topn=5)
131
+ for word, score in similar:
132
+ print(f" {word}: {score:.3f}")
133
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
135
+ ### Load N-gram Model
136
 
137
+ ```python
138
+ import pyarrow.parquet as pq
 
 
139
 
140
+ df = pq.read_table("ceb_3gram_word.parquet").to_pandas()
141
+ print(df.head())
142
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
+ ## Models Overview
 
145
 
146
  ![Performance Dashboard](visualizations/performance_dashboard.png)
147
 
148
+ | Category | Assets |
149
+ |----------|--------|
150
+ | Tokenizers | BPE at 8k, 16k, 32k, 64k vocab sizes |
151
+ | N-gram models | 2 / 3 / 4 / 5-gram (word & subword) |
152
+ | Markov chains | Context 1–5 (word & subword) |
153
+ | Embeddings | 32d, 64d, 128d mono & aligned |
154
+ | Vocabulary | Full frequency list + Zipf analysis |
155
+ | Statistics | Corpus & model statistics JSON |
156
+
157
+ ## Metrics Summary
158
+
159
+ | Component | Model | Key Metric | Value |
160
+ |-----------|-------|------------|-------|
161
+ | Tokenizer | 8k BPE | Compression | 3.20x |
162
+ | Tokenizer | 16k BPE | Compression | 3.59x |
163
+ | Tokenizer | 32k BPE | Compression | 3.89x |
164
+ | Tokenizer | 64k BPE | Compression | 4.16x 🏆 |
165
+ | N-gram | 2-gram (subword) | Perplexity | 244 🏆 |
166
+ | N-gram | 2-gram (word) | Perplexity | 1,490 |
167
+ | N-gram | 3-gram (subword) | Perplexity | 1,343 |
168
+ | N-gram | 3-gram (word) | Perplexity | 2,538 |
169
+ | N-gram | 4-gram (subword) | Perplexity | 3,750 |
170
+ | N-gram | 4-gram (word) | Perplexity | 4,059 |
171
+ | N-gram | 5-gram (subword) | Perplexity | 6,751 |
172
+ | N-gram | 5-gram (word) | Perplexity | 5,049 |
173
+ | Markov | ctx-1 (subword) | Predictability | 13.0% |
174
+ | Markov | ctx-1 (word) | Predictability | 0.0% |
175
+ | Markov | ctx-2 (subword) | Predictability | 32.8% |
176
+ | Markov | ctx-2 (word) | Predictability | 66.0% |
177
+ | Markov | ctx-3 (subword) | Predictability | 28.5% |
178
+ | Markov | ctx-3 (word) | Predictability | 83.0% |
179
+ | Markov | ctx-4 (subword) | Predictability | 31.1% |
180
+ | Markov | ctx-4 (word) | Predictability | 94.4% 🏆 |
181
+ | Vocabulary | full | Size | 208,251 |
182
+ | Vocabulary | full | Zipf | 0.9938 |
183
+ | Embeddings | mono_32d | Isotropy | 0.8551 |
184
+ | Embeddings | mono_64d | Isotropy | 0.8254 |
185
+ | Embeddings | mono_128d | Isotropy | 0.7631 |
186
+ | Embeddings | aligned_32d | Isotropy | 0.8551 🏆 |
187
+ | Embeddings | aligned_64d | Isotropy | 0.8254 |
188
+ | Embeddings | aligned_128d | Isotropy | 0.7631 |
189
+ | Alignment | aligned_32d | R@1 / R@5 / R@10 | 5.8% / 18.8% / 31.4% |
190
+ | Alignment | aligned_64d | R@1 / R@5 / R@10 | 11.2% / 32.6% / 46.4% |
191
+ | Alignment | aligned_128d | R@1 / R@5 / R@10 | 23.8% / 47.0% / 59.2% 🏆 |
192
+
193
+ 📊 **[Full ablation study, per-model breakdowns, and interpretation guide →](RESEARCH_REPORT.md)**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
 
195
  ---
 
 
 
196
 
197
+ ## About
198
 
199
+ Trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) — monthly snapshots of 300+ Wikipedia languages.
200
 
201
+ A project by **[Wikilangs](https://wikilangs.org)** · Maintainer: [Omar Kamali](https://omarkamali.com) · [Omneity Labs](https://omneitylabs.com)
 
 
 
 
202
 
203
  ### Citation
204
 
 
 
205
  ```bibtex
206
  @misc{wikilangs2025,
207
+ author = {Kamali, Omar},
208
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
209
+ year = {2025},
210
+ doi = {10.5281/zenodo.18073153},
211
  publisher = {Zenodo},
212
+ url = {https://huggingface.co/wikilangs},
213
  institution = {Omneity Labs}
214
  }
215
  ```
216
 
 
 
 
 
217
  ### Links
218
 
219
+ - 🌐 [wikilangs.org](https://wikilangs.org)
220
+ - 🌍 [Language page](https://wikilangs.org/languages/ceb/)
221
+ - 🎮 [Playground](https://wikilangs.org/playground/?lang=ceb)
222
+ - 🤗 [HuggingFace models](https://huggingface.co/wikilangs)
223
+ - 📊 [wikipedia-monthly dataset](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
224
+ - 👤 [Omar Kamali](https://huggingface.co/omarkamali)
225
  - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
 
 
226
 
227
+ **License:** MIT — free for academic and commercial use.
228
+
229
+ ---
230
+ *Generated by Wikilangs Pipeline · 2026-03-04 08:49:55*
RESEARCH_REPORT.md ADDED
@@ -0,0 +1,686 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cebuano — Full Ablation Study & Research Report
2
+
3
+ Detailed evaluation of all model variants trained on **Cebuano** Wikipedia data by [Wikilangs](https://wikilangs.org).
4
+
5
+ 👈 [Back to README](README.md)
6
+
7
+ ## 📋 Repository Contents
8
+
9
+ ### Models & Assets
10
+
11
+ - Tokenizers (8k, 16k, 32k, 64k)
12
+ - N-gram models (2, 3, 4, 5-gram)
13
+ - Markov chains (context of 1, 2, 3, 4 and 5)
14
+ - Subword N-gram and Markov chains
15
+ - Embeddings in various sizes and dimensions (aligned and unaligned)
16
+ - Language Vocabulary
17
+ - Language Statistics
18
+
19
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
20
+
21
+ ### Analysis and Evaluation
22
+
23
+ - [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
24
+ - [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
25
+ - [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
26
+ - [4. Vocabulary Analysis](#4-vocabulary-analysis)
27
+ - [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
28
+ - [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
29
+ - [7. Summary & Recommendations](#7-summary--recommendations)
30
+ - [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
31
+ - [Visualizations Index](#visualizations-index)
32
+
33
+ ---
34
+ ## 1. Tokenizer Evaluation
35
+
36
+ ![Tokenizer Compression](visualizations/tokenizer_compression.png)
37
+
38
+ ![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
39
+
40
+ ![Tokenizer OOV](visualizations/tokenizer_oov.png)
41
+
42
+ ![Total Tokens](visualizations/tokenizer_total_tokens.png)
43
+
44
+ ### Results
45
+
46
+ | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
47
+ |------------|-------------|---------------|----------|--------------|
48
+ | **8k** | 3.198x | 3.20 | 0.4957% | 265,676 |
49
+ | **16k** | 3.587x | 3.59 | 0.5559% | 236,895 |
50
+ | **32k** | 3.895x | 3.90 | 0.6036% | 218,173 |
51
+ | **64k** | 4.164x 🏆 | 4.17 | 0.6455% | 204,032 |
52
+
53
+ ### Tokenization Examples
54
+
55
+ Below are sample sentences tokenized with each vocabulary size:
56
+
57
+ **Sample 1:** `Ang (MDCCL) mao ang usa ka tuig sa kalendaryong Gregoryano. Ang maoy usa ka tuig...`
58
+
59
+ | Vocab | Tokens | Count |
60
+ |-------|--------|-------|
61
+ | 8k | `▁ang ▁( m d c cl ) ▁mao ▁ang ▁usa ... (+27 more)` | 37 |
62
+ | 16k | `▁ang ▁( m d c cl ) ▁mao ▁ang ▁usa ... (+24 more)` | 34 |
63
+ | 32k | `▁ang ▁( m d c cl ) ▁mao ▁ang ▁usa ... (+22 more)` | 32 |
64
+ | 64k | `▁ang ▁( md c cl ) ▁mao ▁ang ▁usa ▁ka ... (+21 more)` | 31 |
65
+
66
+ **Sample 2:** `Vilnius - Ulohan, Lyetuwanya. lungsod ug dakbayan sa Uropa`
67
+
68
+ | Vocab | Tokens | Count |
69
+ |-------|--------|-------|
70
+ | 8k | `▁v il n ius ▁- ▁ulo han , ▁ly et ... (+9 more)` | 19 |
71
+ | 16k | `▁vil n ius ▁- ▁ulohan , ▁ly et uw an ... (+7 more)` | 17 |
72
+ | 32k | `▁vil n ius ▁- ▁ulohan , ▁ly et uw an ... (+7 more)` | 17 |
73
+ | 64k | `▁vil n ius ▁- ▁ulohan , ▁lyetuwanya . ▁lungsod ▁ug ... (+3 more)` | 13 |
74
+
75
+ **Sample 3:** `Ang manunuwat usa ka tawo nga naay propesyon sa pagsulat.`
76
+
77
+ | Vocab | Tokens | Count |
78
+ |-------|--------|-------|
79
+ | 8k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nga ▁na ... (+9 more)` | 19 |
80
+ | 16k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nga ▁na ... (+8 more)` | 18 |
81
+ | 32k | `▁ang ▁man un u wat ▁usa ▁ka ▁tawo ▁nga ▁naay ... (+6 more)` | 16 |
82
+ | 64k | `▁ang ▁man un uwat ▁usa ▁ka ▁tawo ▁nga ▁naay ▁propes ... (+4 more)` | 14 |
83
+
84
+
85
+ ### Key Findings
86
+
87
+ - **Best Compression:** 64k achieves 4.164x compression
88
+ - **Lowest UNK Rate:** 8k with 0.4957% unknown tokens
89
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
90
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
91
+
92
+ ---
93
+ ## 2. N-gram Model Evaluation
94
+
95
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
96
+
97
+ ![N-gram Unique](visualizations/ngram_unique.png)
98
+
99
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
100
+
101
+ ### Results
102
+
103
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
104
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
105
+ | **2-gram** | Word | 1,490 | 10.54 | 185,133 | 57.1% | 77.3% |
106
+ | **2-gram** | Subword | 244 🏆 | 7.93 | 4,031 | 67.3% | 99.8% |
107
+ | **3-gram** | Word | 2,538 | 11.31 | 375,720 | 52.5% | 71.1% |
108
+ | **3-gram** | Subword | 1,343 | 10.39 | 30,833 | 30.7% | 83.1% |
109
+ | **4-gram** | Word | 4,059 | 11.99 | 640,004 | 49.1% | 65.5% |
110
+ | **4-gram** | Subword | 3,750 | 11.87 | 184,896 | 19.6% | 67.9% |
111
+ | **5-gram** | Word | 5,049 | 12.30 | 714,886 | 47.5% | 62.8% |
112
+ | **5-gram** | Subword | 6,751 | 12.72 | 629,698 | 15.6% | 62.9% |
113
+
114
+ ### Top 5 N-grams by Size
115
+
116
+ **2-grams (Word):**
117
+
118
+ | Rank | N-gram | Count |
119
+ |------|--------|-------|
120
+ | 1 | `nga matang` | 332,031 |
121
+ | 2 | `ang mga` | 257,884 |
122
+ | 3 | `sakop sa` | 255,886 |
123
+ | 4 | `catalogue of` | 255,734 |
124
+ | 5 | `mga gi` | 255,465 |
125
+
126
+ **3-grams (Word):**
127
+
128
+ | Rank | N-gram | Count |
129
+ |------|--------|-------|
130
+ | 1 | `ang mga gi` | 255,464 |
131
+ | 2 | `mga gi basihan` | 255,464 |
132
+ | 3 | `gi basihan niini` | 255,464 |
133
+ | 4 | `catalogue of life` | 247,130 |
134
+ | 5 | `sakop sa kahenera` | 225,289 |
135
+
136
+ **4-grams (Word):**
137
+
138
+ | Rank | N-gram | Count |
139
+ |------|--------|-------|
140
+ | 1 | `mga gi basihan niini` | 255,464 |
141
+ | 2 | `ang mga gi basihan` | 255,464 |
142
+ | 3 | `sakop sa kahenera nga` | 225,289 |
143
+ | 4 | `una ning gihulagway ni` | 221,595 |
144
+ | 5 | `leiden the netherlands issn` | 218,326 |
145
+
146
+ **5-grams (Word):**
147
+
148
+ | Rank | N-gram | Count |
149
+ |------|--------|-------|
150
+ | 1 | `ang mga gi basihan niini` | 255,464 |
151
+ | 2 | `annual checklist roskov y ower` | 218,326 |
152
+ | 3 | `of life annual checklist roskov` | 218,326 |
153
+ | 4 | `y ower g orrell t` | 218,326 |
154
+ | 5 | `roskov y ower g orrell` | 218,326 |
155
+
156
+ **2-grams (Subword):**
157
+
158
+ | Rank | N-gram | Count |
159
+ |------|--------|-------|
160
+ | 1 | `a _` | 5,047,183 |
161
+ | 2 | `, _` | 4,781,955 |
162
+ | 3 | `a n` | 4,335,344 |
163
+ | 4 | `_ n` | 4,282,281 |
164
+ | 5 | `n g` | 3,457,212 |
165
+
166
+ **3-grams (Subword):**
167
+
168
+ | Rank | N-gram | Count |
169
+ |------|--------|-------|
170
+ | 1 | `. , _` | 2,839,080 |
171
+ | 2 | `_ s a` | 2,121,271 |
172
+ | 3 | `n g _` | 2,068,103 |
173
+ | 4 | `_ n i` | 1,666,672 |
174
+ | 5 | `a n g` | 1,567,452 |
175
+
176
+ **4-grams (Subword):**
177
+
178
+ | Rank | N-gram | Count |
179
+ |------|--------|-------|
180
+ | 1 | `a n g _` | 1,504,868 |
181
+ | 2 | `_ s a _` | 1,342,701 |
182
+ | 3 | `_ n g a` | 1,178,364 |
183
+ | 4 | `n g a _` | 1,167,784 |
184
+ | 5 | `_ a n g` | 872,500 |
185
+
186
+ **5-grams (Subword):**
187
+
188
+ | Rank | N-gram | Count |
189
+ |------|--------|-------|
190
+ | 1 | `_ n g a _` | 1,165,749 |
191
+ | 2 | `_ a n g _` | 865,643 |
192
+ | 3 | `n _ s a _` | 599,691 |
193
+ | 4 | `t a n g _` | 499,600 |
194
+ | 5 | `s p e c i` | 496,776 |
195
+
196
+
197
+ ### Key Findings
198
+
199
+ - **Best Perplexity:** 2-gram (subword) with 244
200
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
201
+ - **Coverage:** Top-1000 patterns cover ~63% of corpus
202
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
203
+
204
+ ---
205
+ ## 3. Markov Chain Evaluation
206
+
207
+ ![Markov Entropy](visualizations/markov_entropy.png)
208
+
209
+ ![Markov Contexts](visualizations/markov_contexts.png)
210
+
211
+ ![Markov Branching](visualizations/markov_branching.png)
212
+
213
+ ### Results
214
+
215
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
216
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
217
+ | **1** | Word | 1.1540 | 2.225 | 5.53 | 285,670 | 0.0% |
218
+ | **1** | Subword | 0.8701 | 1.828 | 5.60 | 2,205 | 13.0% |
219
+ | **2** | Word | 0.3400 | 1.266 | 1.77 | 1,571,794 | 66.0% |
220
+ | **2** | Subword | 0.6716 | 1.593 | 4.58 | 12,300 | 32.8% |
221
+ | **3** | Word | 0.1703 | 1.125 | 1.39 | 2,770,828 | 83.0% |
222
+ | **3** | Subword | 0.7154 | 1.642 | 4.50 | 56,330 | 28.5% |
223
+ | **4** | Word | 0.0559 🏆 | 1.040 | 1.22 | 3,842,457 | 94.4% |
224
+ | **4** | Subword | 0.6886 | 1.612 | 3.49 | 253,091 | 31.1% |
225
+
226
+ ### Generated Text Samples (Word-based)
227
+
228
+ Below are text samples generated from each word-based Markov chain model:
229
+
230
+ **Context Size 1:**
231
+
232
+ 1. `sa turkeya aserbaiyan iran and speciation the world spider catalog version in species naturalis leid...`
233
+ 2. `nga sama niini nga onychogomphus maculivertex sakop sa java pulo sa mont saint franchy usa ka`
234
+ 3. `ang mga gi basihan niini gordon d bailly n kirk p m bourgoin t custodian nicolson`
235
+
236
+ **Context Size 2:**
237
+
238
+ 1. `nga matang nga sama niini ang mga gi basihan niini pycnobase bamber r n lea and j`
239
+ 2. `ang mga gi basihan niini boyko c b taiti s schotte m wilson g d f d`
240
+ 3. `sakop sa kahenera nga episinus ug kabanay nga sisoridae giklaseklase sa iucn ang kaliwatan sa manana...`
241
+
242
+ **Context Size 3:**
243
+
244
+ 1. `mga gi basihan niini millard n a h monograph on the hydroida dredged by h m s challenger`
245
+ 2. `ang mga gi basihan niini jeekel c a w nomenclator generum et familiarum diplopodorum a list of the`
246
+ 3. `catalogue of life annual checklist roskov y ower g orrell t nicolson d bailly n kirk p m`
247
+
248
+ **Context Size 4:**
249
+
250
+ 1. `ang mga gi basihan niini bock p gordon d worms bryozoa world list of bryozoa version in species itis`
251
+ 2. `mga gi basihan niini frank norman ramus erica a complete guide to scientific and common names of rep...`
252
+ 3. `sakop sa kahenera nga rhyacodrilis ug kabanay nga almidae walay nalista nga matang nga sama niini an...`
253
+
254
+
255
+ ### Generated Text Samples (Subword-based)
256
+
257
+ Below are text samples generated from each subword-based Markov chain model:
258
+
259
+ **Context Size 1:**
260
+
261
+ 1. `_pemahi_tit._he.`
262
+ 2. `al_sopol_i_ong_h`
263
+ 3. `n_chewal:_ahydsa`
264
+
265
+ **Context Size 2:**
266
+
267
+ 1. `a_ni._&_ficoce_ws`
268
+ 2. `,_e.,_ta_decologu`
269
+ 3. `anal_c.,_dus_&_it`
270
+
271
+ **Context Size 3:**
272
+
273
+ 1. `.,_data_nuzelatta_`
274
+ 2. `_sa_hason_fromallo`
275
+ 3. `ng_mga_tural_check`
276
+
277
+ **Context Size 4:**
278
+
279
+ 1. `ang_kadagatang_kaba`
280
+ 2. `_sa_hulagway_ni_wil`
281
+ 3. `_nga_matang_hayop_n`
282
+
283
+
284
+ ### Key Findings
285
+
286
+ - **Best Predictability:** Context-4 (word) with 94.4% predictability
287
+ - **Branching Factor:** Decreases with context size (more deterministic)
288
+ - **Memory Trade-off:** Larger contexts require more storage (253,091 contexts)
289
+ - **Recommendation:** Context-3 or Context-4 for text generation
290
+
291
+ ---
292
+ ## 4. Vocabulary Analysis
293
+
294
+ ![Zipf's Law](visualizations/zipf_law.png)
295
+
296
+ ![Top Words](visualizations/top20_words.png)
297
+
298
+ ![Coverage Curve](visualizations/vocab_coverage.png)
299
+
300
+ ### Statistics
301
+
302
+ | Metric | Value |
303
+ |--------|-------|
304
+ | Vocabulary Size | 208,251 |
305
+ | Total Tokens | 32,410,695 |
306
+ | Mean Frequency | 155.63 |
307
+ | Median Frequency | 4 |
308
+ | Frequency Std Dev | 6860.23 |
309
+
310
+ ### Most Common Words
311
+
312
+ | Rank | Word | Frequency |
313
+ |------|------|-----------|
314
+ | 1 | sa | 1,466,791 |
315
+ | 2 | nga | 1,165,822 |
316
+ | 3 | ang | 906,355 |
317
+ | 4 | of | 522,496 |
318
+ | 5 | t | 521,002 |
319
+ | 6 | species | 490,688 |
320
+ | 7 | e | 486,096 |
321
+ | 8 | niini | 478,412 |
322
+ | 9 | ni | 451,703 |
323
+ | 10 | the | 433,952 |
324
+
325
+ ### Least Common Words (from vocabulary)
326
+
327
+ | Rank | Word | Frequency |
328
+ |------|------|-----------|
329
+ | 1 | parvanalis | 2 |
330
+ | 2 | micronemus | 2 |
331
+ | 3 | distolothrix | 2 |
332
+ | 4 | dolicholophia | 2 |
333
+ | 5 | brachypopterus | 2 |
334
+ | 6 | moolenburghae | 2 |
335
+ | 7 | debauwi | 2 |
336
+ | 8 | buffei | 2 |
337
+ | 9 | longibarbis | 2 |
338
+ | 10 | durinii | 2 |
339
+
340
+ ### Zipf's Law Analysis
341
+
342
+ | Metric | Value |
343
+ |--------|-------|
344
+ | Zipf Coefficient | 1.2679 |
345
+ | R² (Goodness of Fit) | 0.993803 |
346
+ | Adherence Quality | **excellent** |
347
+
348
+ ### Coverage Analysis
349
+
350
+ | Top N Words | Coverage |
351
+ |-------------|----------|
352
+ | Top 100 | 72.0% |
353
+ | Top 1,000 | 87.3% |
354
+ | Top 5,000 | 93.0% |
355
+ | Top 10,000 | 94.9% |
356
+
357
+ ### Key Findings
358
+
359
+ - **Zipf Compliance:** R²=0.9938 indicates excellent adherence to Zipf's law
360
+ - **High Frequency Dominance:** Top 100 words cover 72.0% of corpus
361
+ - **Long Tail:** 198,251 words needed for remaining 5.1% coverage
362
+
363
+ ---
364
+ ## 5. Word Embeddings Evaluation
365
+
366
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
367
+
368
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
369
+
370
+ ![t-SNE Words](visualizations/tsne_words.png)
371
+
372
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
373
+
374
+
375
+ ### 5.1 Cross-Lingual Alignment
376
+
377
+ ![Alignment Quality](visualizations/embedding_alignment_quality.png)
378
+
379
+ ![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
380
+
381
+
382
+ ### 5.2 Model Comparison
383
+
384
+ | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
385
+ |-------|-----------|----------|------------------|---------------|----------------|
386
+ | **mono_32d** | 32 | 0.8551 | 0.3308 | N/A | N/A |
387
+ | **mono_64d** | 64 | 0.8254 | 0.2774 | N/A | N/A |
388
+ | **mono_128d** | 128 | 0.7631 | 0.2408 | N/A | N/A |
389
+ | **aligned_32d** | 32 | 0.8551 🏆 | 0.3257 | 0.0580 | 0.3140 |
390
+ | **aligned_64d** | 64 | 0.8254 | 0.2774 | 0.1120 | 0.4640 |
391
+ | **aligned_128d** | 128 | 0.7631 | 0.2443 | 0.2380 | 0.5920 |
392
+
393
+ ### Key Findings
394
+
395
+ - **Best Isotropy:** aligned_32d with 0.8551 (more uniform distribution)
396
+ - **Semantic Density:** Average pairwise similarity of 0.2827. Lower values indicate better semantic separation.
397
+ - **Alignment Quality:** Aligned models achieve up to 23.8% R@1 in cross-lingual retrieval.
398
+ - **Recommendation:** 128d aligned for best cross-lingual performance
399
+
400
+ ---
401
+ ## 6. Morphological Analysis (Experimental)
402
+
403
+ 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.
404
+
405
+ ### 6.1 Productivity & Complexity
406
+
407
+ | Metric | Value | Interpretation | Recommendation |
408
+ |--------|-------|----------------|----------------|
409
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
410
+ | Idiomaticity Gap | **-0.003** | Low formulaic content | - |
411
+
412
+ ### 6.2 Affix Inventory (Productive Units)
413
+
414
+ 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.
415
+
416
+ #### Productive Prefixes
417
+ | Prefix | Examples |
418
+ |--------|----------|
419
+ | `-a` | amotus, aethes, appolinard |
420
+ | `-ma` | macrura, maigné, magpapatik |
421
+ | `-s` | stieren, solasteridae, spermophilopsis |
422
+ | `-b` | bahit, baod, berchtold |
423
+ | `-p` | pseudocollinus, pseudoannulata, pseudocompressa |
424
+ | `-m` | macrura, moscu, maigné |
425
+ | `-pa` | panomya, pagkaayo, pagkapagka |
426
+ | `-ca` | carteroniella, caudaornata, catmon |
427
+
428
+ #### Productive Suffixes
429
+ | Suffix | Examples |
430
+ |--------|----------|
431
+ | `-s` | amotus, turdinus, pseudocollinus |
432
+ | `-a` | elucubata, macrura, coccopoma |
433
+ | `-us` | amotus, turdinus, pseudocollinus |
434
+ | `-is` | dactylis, yambaensis, tenuis |
435
+ | `-e` | hyèvre, ogyridione, raspailiidae |
436
+ | `-ae` | raspailiidae, solasteridae, mitwabae |
437
+ | `-i` | heurni, gaskelli, ogdeni |
438
+ | `-es` | corneilles, récoltes, fragilipes |
439
+
440
+ ### 6.3 Bound Stems (Lexical Roots)
441
+
442
+ 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.
443
+
444
+ | Stem | Cohesion | Substitutability | Examples |
445
+ |------|----------|------------------|----------|
446
+ | `aban` | 2.82x | 102 contexts | abang, gaban, daban |
447
+ | `icol` | 2.34x | 196 contexts | nicol, bicol, vicola |
448
+ | `lson` | 2.80x | 38 contexts | olson, nelson, bulson |
449
+ | `kaba` | 2.65x | 43 contexts | kabay, kabat, kabag |
450
+ | `ihan` | 2.85x | 27 contexts | gihan, atihan, dihang |
451
+ | `rell` | 1.89x | 103 contexts | torell, trelly, crella |
452
+ | `orre` | 2.07x | 56 contexts | yorre, orret, orres |
453
+ | `ener` | 1.96x | 61 contexts | enero, tener, eener |
454
+ | `atal` | 1.89x | 56 contexts | datal, batal, natal |
455
+ | `sako` | 2.86x | 12 contexts | sakop, masako, masakop |
456
+ | `akop` | 2.88x | 10 contexts | sakop, panakop, sinakop |
457
+ | `nera` | 1.77x | 41 contexts | minera, cinera, ponera |
458
+
459
+ ### 6.4 Affix Compatibility (Co-occurrence)
460
+
461
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
462
+
463
+ | Prefix | Suffix | Frequency | Examples |
464
+ |--------|--------|-----------|----------|
465
+ | `-p` | `-s` | 290 words | pteroctopus, purpurescens |
466
+ | `-a` | `-s` | 246 words | apopkensis, albicaudatus |
467
+ | `-p` | `-a` | 218 words | pontoparta, paiwa |
468
+ | `-s` | `-s` | 207 words | suctotegeus, stavropoulos |
469
+ | `-c` | `-s` | 207 words | camelopardalis, conjugalis |
470
+ | `-p` | `-us` | 155 words | pteroctopus, piliocolobus |
471
+ | `-s` | `-a` | 153 words | siqueira, sexmacula |
472
+ | `-a` | `-a` | 151 words | alaria, arafoera |
473
+ | `-t` | `-s` | 134 words | thyroidus, trapelus |
474
+ | `-b` | `-s` | 132 words | billings, bourdeilles |
475
+
476
+ ### 6.5 Recursive Morpheme Segmentation
477
+
478
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
479
+
480
+ | Word | Suggested Split | Confidence | Stem |
481
+ |------|-----------------|------------|------|
482
+ | bruneitarsis | **`bruneitar-s-is`** | 7.5 | `s` |
483
+ | validentata | **`valident-a-ta`** | 7.5 | `a` |
484
+ | pretoriaensis | **`pretoriaen-s-is`** | 7.5 | `s` |
485
+ | geograpsus | **`geograp-s-us`** | 7.5 | `s` |
486
+ | gimatangmatang | **`gimatangmat-a-ng`** | 7.5 | `a` |
487
+ | labropsis | **`labrop-s-is`** | 7.5 | `s` |
488
+ | chihuahuaensis | **`chihuahuaen-s-is`** | 7.5 | `s` |
489
+ | chevannay | **`chevann-a-y`** | 7.5 | `a` |
490
+ | ovosetosa | **`ovoseto-s-a`** | 7.5 | `s` |
491
+ | leporosum | **`leporo-s-um`** | 7.5 | `s` |
492
+ | schistosum | **`schisto-s-um`** | 7.5 | `s` |
493
+ | antromysis | **`antromy-s-is`** | 7.5 | `s` |
494
+ | chalonnes | **`chalon-n-es`** | 7.5 | `n` |
495
+ | strongyloxea | **`strongylox-e-a`** | 7.5 | `e` |
496
+ | paragaveae | **`paragav-e-ae`** | 7.5 | `e` |
497
+
498
+ ### 6.6 Linguistic Interpretation
499
+
500
+ > **Automated Insight:**
501
+ The language Cebuano shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
502
+
503
+ ---
504
+ ## 7. Summary & Recommendations
505
+
506
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
507
+
508
+ ### Production Recommendations
509
+
510
+ | Component | Recommended | Rationale |
511
+ |-----------|-------------|-----------|
512
+ | Tokenizer | **64k BPE** | Best compression (4.16x) |
513
+ | N-gram | **2-gram** | Lowest perplexity (244) |
514
+ | Markov | **Context-4** | Highest predictability (94.4%) |
515
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
516
+
517
+
518
+ ---
519
+ ## Appendix: Metrics Glossary & Interpretation Guide
520
+
521
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
522
+
523
+ ### Tokenizer Metrics
524
+
525
+ **Compression Ratio**
526
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
527
+ >
528
+ > *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.
529
+ >
530
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
531
+
532
+ **Average Token Length (Fertility)**
533
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
534
+ >
535
+ > *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.
536
+ >
537
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
538
+
539
+ **Unknown Token Rate (OOV Rate)**
540
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
541
+ >
542
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
543
+ >
544
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
545
+
546
+ ### N-gram Model Metrics
547
+
548
+ **Perplexity**
549
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
550
+ >
551
+ > *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.
552
+ >
553
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
554
+
555
+ **Entropy**
556
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
557
+ >
558
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
559
+ >
560
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
561
+
562
+ **Coverage (Top-K)**
563
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
564
+ >
565
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
566
+ >
567
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
568
+
569
+ ### Markov Chain Metrics
570
+
571
+ **Average Entropy**
572
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
573
+ >
574
+ > *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).
575
+ >
576
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
577
+
578
+ **Branching Factor**
579
+ > *Definition:* Average number of unique next tokens observed for each context.
580
+ >
581
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
582
+ >
583
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
584
+
585
+ **Predictability**
586
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
587
+ >
588
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
589
+ >
590
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
591
+
592
+ ### Vocabulary & Zipf's Law Metrics
593
+
594
+ **Zipf's Coefficient**
595
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
596
+ >
597
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
598
+ >
599
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
600
+
601
+ **R² (Coefficient of Determination)**
602
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
603
+ >
604
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
605
+ >
606
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
607
+
608
+ **Vocabulary Coverage**
609
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
610
+ >
611
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
612
+ >
613
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
614
+
615
+ ### Word Embedding Metrics
616
+
617
+ **Isotropy**
618
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
619
+ >
620
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
621
+ >
622
+ > *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.
623
+
624
+ **Average Norm**
625
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
626
+ >
627
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
628
+ >
629
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
630
+
631
+ **Cosine Similarity**
632
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
633
+ >
634
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
635
+ >
636
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
637
+
638
+ **t-SNE Visualization**
639
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
640
+ >
641
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
642
+ >
643
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
644
+
645
+ ### General Interpretation Guidelines
646
+
647
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
648
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
649
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
650
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
651
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
652
+
653
+
654
+ ### Visualizations Index
655
+
656
+ | Visualization | Description |
657
+ |---------------|-------------|
658
+ | Tokenizer Compression | Compression ratios by vocabulary size |
659
+ | Tokenizer Fertility | Average token length by vocabulary |
660
+ | Tokenizer OOV | Unknown token rates |
661
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
662
+ | N-gram Perplexity | Perplexity by n-gram size |
663
+ | N-gram Entropy | Entropy by n-gram size |
664
+ | N-gram Coverage | Top pattern coverage |
665
+ | N-gram Unique | Unique n-gram counts |
666
+ | Markov Entropy | Entropy by context size |
667
+ | Markov Branching | Branching factor by context |
668
+ | Markov Contexts | Unique context counts |
669
+ | Zipf's Law | Frequency-rank distribution with fit |
670
+ | Vocab Frequency | Word frequency distribution |
671
+ | Top 20 Words | Most frequent words |
672
+ | Vocab Coverage | Cumulative coverage curve |
673
+ | Embedding Isotropy | Vector space uniformity |
674
+ | Embedding Norms | Vector magnitude distribution |
675
+ | Embedding Similarity | Word similarity heatmap |
676
+ | Nearest Neighbors | Similar words for key terms |
677
+ | t-SNE Words | 2D word embedding visualization |
678
+ | t-SNE Sentences | 2D sentence embedding visualization |
679
+ | Position Encoding | Encoding method comparison |
680
+ | Model Sizes | Storage requirements |
681
+ | Performance Dashboard | Comprehensive performance overview |
682
+
683
+ ---
684
+ 👈 [Back to README](README.md)
685
+
686
+ *Generated by Wikilangs Pipeline · 2026-03-04 08:50:39*
ceb_morph_tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/embeddings/aligned/ceb_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3eb8cd36ef12787b52a4668ec8d932c15ae2506ba3d10269c67067feb027418f
3
- size 2541152375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5302a1d541d62e832452300f0b993cc5d8b4e162c893d214a4471a9969ecd5
3
+ size 1138230096
models/embeddings/aligned/ceb_128d.projection.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ea5b20fdaac8234f50ae2c532a86b279e3aff39e4d73f285b1e0a70647b71f91
3
  size 65664
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82e90144b729d2438104ea319cc51f9ce6e67842d80ba8a7a40f33a961da14e9
3
  size 65664
models/embeddings/aligned/ceb_128d_metadata.json CHANGED
@@ -3,6 +3,6 @@
3
  "dimension": 128,
4
  "version": "aligned",
5
  "hub_language": "en",
6
- "seed_vocab_size": 152433,
7
- "vocab_size": 1454790
8
  }
 
3
  "dimension": 128,
4
  "version": "aligned",
5
  "hub_language": "en",
6
+ "seed_vocab_size": 25620,
7
+ "vocab_size": 109514
8
  }
models/embeddings/aligned/ceb_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eafa8758d8b2648080dbb701fc676f2b6825d9fc3b9caa5a358d6a42f7c68238
3
- size 655873655
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23b77adefa3dd1d53bdbd3a9aae8d3323324cda0bd92453942d35b7f8e22673e
3
+ size 286123344
models/embeddings/aligned/ceb_32d.projection.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:94bb2c9dcb6b024b0a37da5310b8164eaccd4a8d06893cf45a28f70e9ed38b1d
3
  size 4224
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4bddb5514e0bf08687825d17b4ce5a6c2927cd7efe80755336501e3503f0a7c
3
  size 4224
models/embeddings/aligned/ceb_32d_metadata.json CHANGED
@@ -3,6 +3,6 @@
3
  "dimension": 32,
4
  "version": "aligned",
5
  "hub_language": "en",
6
- "seed_vocab_size": 152433,
7
- "vocab_size": 1454790
8
  }
 
3
  "dimension": 32,
4
  "version": "aligned",
5
  "hub_language": "en",
6
+ "seed_vocab_size": 25620,
7
+ "vocab_size": 109514
8
  }
models/embeddings/aligned/ceb_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a051326edada076b29c9b2bc4a1c13e1b92c0e582e710fcf349f23daf828fb19
3
- size 1284299895
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62551e10a38d11cf18a8464bfc535ec388ffd8961d56bdd8dfcf6c26bce4ee28
3
+ size 570158928
models/embeddings/aligned/ceb_64d.projection.npy CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c352c1836ef6cb3518cfb8cf48cd40d6d99ca83e50dedbf9849d9518e0efe65
3
  size 16512
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:076228f74776162de5fce0455b925f33e3d5e5cf5395694a1292a01eb9b07c60
3
  size 16512
models/embeddings/aligned/ceb_64d_metadata.json CHANGED
@@ -3,6 +3,6 @@
3
  "dimension": 64,
4
  "version": "aligned",
5
  "hub_language": "en",
6
- "seed_vocab_size": 152433,
7
- "vocab_size": 1454790
8
  }
 
3
  "dimension": 64,
4
  "version": "aligned",
5
  "hub_language": "en",
6
+ "seed_vocab_size": 25620,
7
+ "vocab_size": 109514
8
  }
models/embeddings/monolingual/ceb_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3eb8cd36ef12787b52a4668ec8d932c15ae2506ba3d10269c67067feb027418f
3
- size 2541152375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f5302a1d541d62e832452300f0b993cc5d8b4e162c893d214a4471a9969ecd5
3
+ size 1138230096
models/embeddings/monolingual/ceb_128d_metadata.json CHANGED
@@ -9,7 +9,8 @@
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
- "dim": 128
 
13
  },
14
- "vocab_size": 1454790
15
  }
 
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
+ "dim": 128,
13
+ "threads": 20
14
  },
15
+ "vocab_size": 109514
16
  }
models/embeddings/monolingual/ceb_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eafa8758d8b2648080dbb701fc676f2b6825d9fc3b9caa5a358d6a42f7c68238
3
- size 655873655
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23b77adefa3dd1d53bdbd3a9aae8d3323324cda0bd92453942d35b7f8e22673e
3
+ size 286123344
models/embeddings/monolingual/ceb_32d_metadata.json CHANGED
@@ -9,7 +9,8 @@
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
- "dim": 32
 
13
  },
14
- "vocab_size": 1454790
15
  }
 
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
+ "dim": 32,
13
+ "threads": 20
14
  },
15
+ "vocab_size": 109514
16
  }
models/embeddings/monolingual/ceb_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a051326edada076b29c9b2bc4a1c13e1b92c0e582e710fcf349f23daf828fb19
3
- size 1284299895
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62551e10a38d11cf18a8464bfc535ec388ffd8961d56bdd8dfcf6c26bce4ee28
3
+ size 570158928
models/embeddings/monolingual/ceb_64d_metadata.json CHANGED
@@ -9,7 +9,8 @@
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
- "dim": 64
 
13
  },
14
- "vocab_size": 1454790
15
  }
 
9
  "negative": 5,
10
  "epochs": 5,
11
  "encoding_method": "rope",
12
+ "dim": 64,
13
+ "threads": 20
14
  },
15
+ "vocab_size": 109514
16
  }
models/subword_markov/ceb_markov_ctx1_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4f768ccf3c1b17ee6c3155af7196c8d3225ee1b5b17f295b763044d932178548
3
- size 843230
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:417205c9014561f72f84c76b62d2112de933b0bf78bd8bffd6ce31ad9ac85c57
3
+ size 104832
models/subword_markov/ceb_markov_ctx1_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_contexts": 10636,
6
- "total_transitions": 4741280452
7
  }
 
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_contexts": 2205,
6
+ "total_transitions": 205985910
7
  }
models/subword_markov/ceb_markov_ctx2_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:740d6da8735c5fe348a7d02eb110099031a0c7520aa307d58faedb1d948abea4
3
- size 4133523
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b63d43963ed1ecb0ae734609c3b43735df9f64a65b7ffe0f7120bf765137a4a9
3
+ size 566849
models/subword_markov/ceb_markov_ctx2_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_contexts": 129845,
6
- "total_transitions": 4735165236
7
  }
 
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_contexts": 12300,
6
+ "total_transitions": 205685910
7
  }
models/subword_markov/ceb_markov_ctx3_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7280cd84fb22bd825ecd5918fd659b4ee44d894dd426f7e4863f41140c3b9065
3
- size 15714134
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8210d4209c9d53eafaa49f275959900b56a0c2471d3ef03135b6f1de55f85e3
3
+ size 2452378
models/subword_markov/ceb_markov_ctx3_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_contexts": 463245,
6
- "total_transitions": 4729050020
7
  }
 
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_contexts": 56330,
6
+ "total_transitions": 205385910
7
  }
models/subword_markov/ceb_markov_ctx4_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c541cfbd127565d46008005e601455b973d3ebc5d5be3c000d9b4177c0faf931
3
- size 50278691
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e4f92c1369e01ee0859ee0a9cad993490fcf7c61b57a826a41d176a0ab3884c
3
+ size 8303017
models/subword_markov/ceb_markov_ctx4_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_contexts": 1608648,
6
- "total_transitions": 4722934804
7
  }
 
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_contexts": 253091,
6
+ "total_transitions": 205085910
7
  }
models/subword_ngram/ceb_2gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:75effbc8c3c560b65d736c9461a76644273c13e5a1bdf333accf36f01b482fd9
3
- size 472677
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de7ca288dce41fe2351b4062e0cf08f0de9ba3d521fa8ec3b7eb827eabf69f21
3
+ size 59472
models/subword_ngram/ceb_2gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_ngrams": 33604,
6
- "total_ngrams": 4741280452
7
  }
 
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_ngrams": 4031,
6
+ "total_ngrams": 205985910
7
  }
models/subword_ngram/ceb_3gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf35e60b92e9a30a6bddca322cbb5e9b26d7208c3b985403b5ad20e71d81c489
3
- size 2514513
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69a6c36d31632f45ed367042d1b7af476afb7588a46d17fbeb25ac5ed153b8f6
3
+ size 431287
models/subword_ngram/ceb_3gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_ngrams": 196868,
6
- "total_ngrams": 4735165236
7
  }
 
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_ngrams": 30833,
6
+ "total_ngrams": 205685910
7
  }
models/subword_ngram/ceb_4gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c8bed27ef2e0fd850c1d5afdae26a0c1d582caa13740b70d686a3c4b6572dfe6
3
- size 12745233
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7382f70fb756466be829ab6673f7e428e9d14ccbfb1778fc3e71d74190a7e126
3
+ size 2199050
models/subword_ngram/ceb_4gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_ngrams": 1019139,
6
- "total_ngrams": 4729050020
7
  }
 
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_ngrams": 184896,
6
+ "total_ngrams": 205385910
7
  }
models/subword_ngram/ceb_5gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ded5fa72b1333db15722dc0eadc2671d488350d645d3763e7c475a650a835795
3
- size 44204990
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9a1e6d68e5ff6bbc150d183517661652c513ad6dfd9851dbd5f47d413d64adb
3
+ size 7448778
models/subword_ngram/ceb_5gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 5,
3
  "variant": "subword",
4
  "language": "ceb",
5
- "unique_ngrams": 3628728,
6
- "total_ngrams": 4722934804
7
  }
 
2
  "n": 5,
3
  "variant": "subword",
4
  "language": "ceb",
5
+ "unique_ngrams": 629698,
6
+ "total_ngrams": 205085910
7
  }
models/tokenizer/ceb_tokenizer_16k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d0524fd2b40acc6f5b34cb83b12b24872b8c64abbd29e4a958043cd2c376fce7
3
- size 510736
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47d8ed69810c7f0dc5095603d89fee3c7cbcc0ccdaa1515cb03cd440b3798cbb
3
+ size 514642
models/tokenizer/ceb_tokenizer_16k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ceb_tokenizer_32k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:388d9039e50faf9eeb7281c832737aadf1e832bbe627c92b606b3ed690ea18f8
3
- size 798937
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb14fab709a83541842c1c49bc3c969fa29d2ae8f17fad5850d76e12c989913d
3
+ size 804931
models/tokenizer/ceb_tokenizer_32k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ceb_tokenizer_64k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0eaa647544e23d6b15bfee9173d40a3962bae64e5745da112bfba70081de1b77
3
- size 1394915
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:393d48aba8597deedd04c537c087801339d27d2960e4d926f6193b53153d31e2
3
+ size 1409733
models/tokenizer/ceb_tokenizer_64k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ceb_tokenizer_8k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:074f697a2540d914dbc182aa0ad66124f9535c265b7cfad75e78a6a21b055930
3
- size 373160
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a33de50ec527f1cec19b369e6c20fd73f09fc4cb3802a7b266e29a35ffb521b
3
+ size 374313
models/tokenizer/ceb_tokenizer_8k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/ceb_vocabulary.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4393f136f1e1677ad29b26e914ac0063db786da099d2088540d60a7c8d0a9015
3
- size 30923898
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a63d67e3e6b60f76c47f015642b53b97eeed351841f39e26aa45adce7fa75dc
3
+ size 3301786
models/vocabulary/ceb_vocabulary_metadata.json CHANGED
@@ -1,17 +1,17 @@
1
  {
2
  "language": "ceb",
3
- "vocabulary_size": 2197636,
4
  "variant": "full",
5
  "statistics": {
6
- "type_token_ratio": 0.0034010600533183766,
7
  "coverage": {
8
- "top_100": 0.6313898005092059,
9
- "top_1000": 0.8839513376148225,
10
- "top_5000": 0.9301546296408513,
11
- "top_10000": 0.9430208060874313
12
  },
13
- "hapax_count": 425410,
14
- "hapax_ratio": 0.1621816773323838,
15
- "total_documents": 6115216
16
  }
17
  }
 
1
  {
2
  "language": "ceb",
3
+ "vocabulary_size": 208251,
4
  "variant": "full",
5
  "statistics": {
6
+ "type_token_ratio": 0.00879715028031059,
7
  "coverage": {
8
+ "top_100": 0.7179463478609249,
9
+ "top_1000": 0.8706587686722903,
10
+ "top_5000": 0.927508710226541,
11
+ "top_10000": 0.9471302669199029
12
  },
13
+ "hapax_count": 77553,
14
+ "hapax_ratio": 0.2713502960070538,
15
+ "total_documents": 300000
16
  }
17
  }
models/word_markov/ceb_markov_ctx1_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d44f8a21899c99ba775bbcd5e8e5e784ac724f54d572a7815600b0965968b7e
3
- size 175693160
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2be8ddfd01b6ff55edafbee1bf428ad5f7f31eeaa2d15da78b4960e248072ce6
3
+ size 15131685
models/word_markov/ceb_markov_ctx1_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ceb",
5
- "unique_contexts": 2622358,
6
- "total_transitions": 765128443
7
  }
 
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ceb",
5
+ "unique_contexts": 285670,
6
+ "total_transitions": 32188248
7
  }
models/word_markov/ceb_markov_ctx2_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5967ac4958767576a34d1fec05136d6b8ecc2206dab7bb66d700c74150976f95
3
- size 502255980
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd6a6f27f5588f0fefca0a0c2994b22cf1a3de0c3b3845c3959fcb177eaecca4
3
+ size 30898564
models/word_markov/ceb_markov_ctx2_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ceb",
5
- "unique_contexts": 21964306,
6
- "total_transitions": 759013227
7
  }
 
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ceb",
5
+ "unique_contexts": 1571794,
6
+ "total_transitions": 31888248
7
  }
models/word_markov/ceb_markov_ctx3_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:59d6750f62c81fc93014aa3a7e2903459e0c63ede1f5a6e861221be385b09152
3
- size 924339417
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a21899f9e0db05b10991f7d5eb992e7e1a3791f748d9d6994a2cdce155927c8
3
+ size 47112000
models/word_markov/ceb_markov_ctx3_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "word",
4
  "language": "ceb",
5
- "unique_contexts": 54790128,
6
- "total_transitions": 752898011
7
  }
 
2
  "context_size": 3,
3
  "variant": "word",
4
  "language": "ceb",
5
+ "unique_contexts": 2770828,
6
+ "total_transitions": 31588248
7
  }