omarkamali commited on
Commit
cf500e8
·
verified ·
1 Parent(s): fcc6b63

Upload all models and assets for ban (latest)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. README.md +225 -192
  3. models/embeddings/aligned/ban_128d.bin +3 -0
  4. models/embeddings/aligned/ban_128d.meta.json +1 -0
  5. models/embeddings/aligned/ban_128d.projection.npy +3 -0
  6. models/embeddings/aligned/ban_128d_metadata.json +8 -0
  7. models/embeddings/aligned/ban_32d.bin +3 -0
  8. models/embeddings/aligned/ban_32d.meta.json +1 -0
  9. models/embeddings/aligned/ban_32d.projection.npy +3 -0
  10. models/embeddings/aligned/ban_32d_metadata.json +8 -0
  11. models/embeddings/aligned/ban_64d.bin +3 -0
  12. models/embeddings/aligned/ban_64d.meta.json +1 -0
  13. models/embeddings/aligned/ban_64d.projection.npy +3 -0
  14. models/embeddings/aligned/ban_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/ban_128d.bin +2 -2
  16. models/embeddings/monolingual/ban_128d_metadata.json +1 -1
  17. models/embeddings/monolingual/ban_32d.bin +2 -2
  18. models/embeddings/monolingual/ban_32d_metadata.json +1 -1
  19. models/embeddings/monolingual/ban_64d.bin +2 -2
  20. models/embeddings/monolingual/ban_64d_metadata.json +1 -1
  21. models/subword_markov/ban_markov_ctx1_subword.parquet +2 -2
  22. models/subword_markov/ban_markov_ctx1_subword_metadata.json +2 -2
  23. models/subword_markov/ban_markov_ctx2_subword.parquet +2 -2
  24. models/subword_markov/ban_markov_ctx2_subword_metadata.json +2 -2
  25. models/subword_markov/ban_markov_ctx3_subword.parquet +2 -2
  26. models/subword_markov/ban_markov_ctx3_subword_metadata.json +2 -2
  27. models/subword_markov/ban_markov_ctx4_subword.parquet +2 -2
  28. models/subword_markov/ban_markov_ctx4_subword_metadata.json +2 -2
  29. models/subword_ngram/ban_2gram_subword.parquet +2 -2
  30. models/subword_ngram/ban_2gram_subword_metadata.json +2 -2
  31. models/subword_ngram/ban_3gram_subword.parquet +2 -2
  32. models/subword_ngram/ban_3gram_subword_metadata.json +2 -2
  33. models/subword_ngram/ban_4gram_subword.parquet +2 -2
  34. models/subword_ngram/ban_4gram_subword_metadata.json +2 -2
  35. models/subword_ngram/ban_5gram_subword.parquet +3 -0
  36. models/subword_ngram/ban_5gram_subword_metadata.json +7 -0
  37. models/tokenizer/ban_tokenizer_16k.model +2 -2
  38. models/tokenizer/ban_tokenizer_16k.vocab +0 -0
  39. models/tokenizer/ban_tokenizer_32k.model +2 -2
  40. models/tokenizer/ban_tokenizer_32k.vocab +0 -0
  41. models/tokenizer/ban_tokenizer_64k.model +2 -2
  42. models/tokenizer/ban_tokenizer_64k.vocab +0 -0
  43. models/tokenizer/ban_tokenizer_8k.model +2 -2
  44. models/tokenizer/ban_tokenizer_8k.vocab +0 -0
  45. models/vocabulary/ban_vocabulary.parquet +2 -2
  46. models/vocabulary/ban_vocabulary_metadata.json +9 -9
  47. models/word_markov/ban_markov_ctx1_word.parquet +2 -2
  48. models/word_markov/ban_markov_ctx1_word_metadata.json +2 -2
  49. models/word_markov/ban_markov_ctx2_word.parquet +2 -2
  50. models/word_markov/ban_markov_ctx2_word_metadata.json +2 -2
.gitattributes CHANGED
@@ -39,3 +39,4 @@ visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -t
39
  visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
40
  visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
41
  visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
 
 
39
  visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
40
  visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
41
  visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
42
+ visualizations/embedding_tsne_multilingual.png filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  language: ban
3
- language_name: BAN
4
  language_family: austronesian_other
5
  tags:
6
  - wikilangs
@@ -10,11 +10,21 @@ tags:
10
  - n-gram
11
  - markov
12
  - wikipedia
 
 
 
 
 
 
 
 
 
 
13
  - monolingual
14
  - family-austronesian_other
15
  license: mit
16
  library_name: wikilangs
17
- pipeline_tag: feature-extraction
18
  datasets:
19
  - omarkamali/wikipedia-monthly
20
  dataset_info:
@@ -23,20 +33,20 @@ dataset_info:
23
  metrics:
24
  - name: best_compression_ratio
25
  type: compression
26
- value: 5.077
27
  - name: best_isotropy
28
  type: isotropy
29
- value: 0.8530
30
  - name: vocabulary_size
31
  type: vocab
32
  value: 0
33
  generated: 2026-01-03
34
  ---
35
 
36
- # BAN - Wikilangs Models
37
  ## Comprehensive Research Report & Full Ablation Study
38
 
39
- This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BAN** Wikipedia data.
40
  We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
41
 
42
  ## 📋 Repository Contents
@@ -60,7 +70,7 @@ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and
60
  - [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
61
  - [4. Vocabulary Analysis](#4-vocabulary-analysis)
62
  - [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
63
- - [6. Morphological Analysis (Experimental)](#6-morphological-analysis)
64
  - [7. Summary & Recommendations](#7-summary--recommendations)
65
  - [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
66
  - [Visualizations Index](#visualizations-index)
@@ -80,47 +90,47 @@ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and
80
 
81
  | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
82
  |------------|-------------|---------------|----------|--------------|
83
- | **8k** | 4.073x | 4.08 | 0.1890% | 240,149 |
84
- | **16k** | 4.474x | 4.48 | 0.2076% | 218,639 |
85
- | **32k** | 4.813x | 4.82 | 0.2234% | 203,246 |
86
- | **64k** | 5.077x 🏆 | 5.08 | 0.2356% | 192,667 |
87
 
88
  ### Tokenization Examples
89
 
90
  Below are sample sentences tokenized with each vocabulary size:
91
 
92
- **Sample 1:** `Hamm (, Latin: Hammona) inggih punika kota ring Rhine-Westphalia Kalér, Jerman.`
93
 
94
  | Vocab | Tokens | Count |
95
  |-------|--------|-------|
96
- | 8k | `▁ham m ▁(, ▁latin : ham m ona )inggih ... (+12 more)` | 22 |
97
- | 16k | `▁ham m ▁(, ▁latin : ham m ona )inggih ... (+10 more)` | 20 |
98
- | 32k | `▁ham m ▁(, ▁latin : ham m ona )inggih ... (+10 more)` | 20 |
99
- | 64k | `▁hamm ▁(, ▁latin :hamm ona ) ▁inggihpunika ▁kota ... (+8 more)` | 18 |
100
 
101
- **Sample 2:** `Kharkiv (), utawi Kharkov () inggih punika kota pinih ageng kakalih ring Ukraina...`
102
 
103
  | Vocab | Tokens | Count |
104
  |-------|--------|-------|
105
- | 8k | `▁kh ark iv ▁(),utawi ▁kh ark ov() ▁inggih ... (+24 more)` | 34 |
106
- | 16k | `▁kh ark iv ▁(),utawi ▁kh ark ov() ▁inggih ... (+22 more)` | 32 |
107
- | 32k | `▁kh ark iv ▁(),utawi ▁kh ark ov () ▁inggih ... (+22 more)` | 32 |
108
- | 64k | `▁kharkiv ▁(),utawi ▁khark ov() ▁inggih ▁punika ▁kota ▁pinih ... (+15 more)` | 25 |
109
 
110
- **Sample 3:** `Brasília (;"Brasilia" (US) tur ) inggih punika ibu kota saking Brasil. Pustaka`
111
 
112
  | Vocab | Tokens | Count |
113
  |-------|--------|-------|
114
- | 8k | `▁br as í l ia ▁(; " br asil ia ... (+14 more)` | 24 |
115
- | 16k | `▁br as í lia ▁(; " br asil ia " ... (+13 more)` | 23 |
116
- | 32k | `▁brasília ▁(; " br asil ia "( us ) ... (+10 more)` | 20 |
117
- | 64k | `▁brasília ▁(;" brasil ia "( us ) tur) ... (+8 more)` | 18 |
118
 
119
 
120
  ### Key Findings
121
 
122
- - **Best Compression:** 64k achieves 5.077x compression
123
- - **Lowest UNK Rate:** 8k with 0.1890% unknown tokens
124
  - **Trade-off:** Larger vocabularies improve compression but increase model size
125
  - **Recommendation:** 32k vocabulary provides optimal balance for production use
126
 
@@ -137,12 +147,14 @@ Below are sample sentences tokenized with each vocabulary size:
137
 
138
  | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
139
  |--------|---------|------------|---------|----------------|------------------|-------------------|
140
- | **2-gram** | Word | 4,798 | 12.23 | 59,688 | 35.6% | 57.3% |
141
- | **2-gram** | Subword | 225 🏆 | 7.81 | 7,788 | 73.4% | 99.2% |
142
- | **3-gram** | Word | 5,769 | 12.49 | 77,113 | 33.5% | 55.7% |
143
- | **3-gram** | Subword | 1,669 | 10.70 | 42,522 | 31.2% | 79.1% |
144
- | **4-gram** | Word | 8,680 | 13.08 | 116,715 | 28.6% | 51.0% |
145
- | **4-gram** | Subword | 7,684 | 12.91 | 208,144 | 18.1% | 53.6% |
 
 
146
 
147
  ### Top 5 N-grams by Size
148
 
@@ -150,68 +162,88 @@ Below are sample sentences tokenized with each vocabulary size:
150
 
151
  | Rank | N-gram | Count |
152
  |------|--------|-------|
153
- | 1 | `situs resmi` | 41,099 |
154
- | 2 | `inggih punika` | 37,495 |
155
- | 3 | `silih tunggil` | 22,082 |
156
- | 4 | `pranala jaba` | 21,960 |
157
- | 5 | `pusat statistik` | 21,725 |
158
 
159
  **3-grams (Word):**
160
 
161
  | Rank | N-gram | Count |
162
  |------|--------|-------|
163
- | 1 | `badan pusat statistik` | 21,708 |
164
- | 2 | `pustaka pranala jaba` | 20,507 |
165
- | 3 | `inggih punika silih` | 19,377 |
166
- | 4 | `punika silih tunggil` | 19,020 |
167
- | 5 | `pranala jaba situs` | 17,860 |
168
 
169
  **4-grams (Word):**
170
 
171
  | Rank | N-gram | Count |
172
  |------|--------|-------|
173
- | 1 | `inggih punika silih tunggil` | 18,913 |
174
- | 2 | `pranala jaba situs resmi` | 17,672 |
175
- | 3 | `pustaka pranala jaba situs` | 17,290 |
176
- | 4 | `dados kauahin ilang yening` | 14,166 |
177
- | 5 | `kauahin ilang yening url` | 13,881 |
 
 
 
 
 
 
 
 
 
 
178
 
179
  **2-grams (Subword):**
180
 
181
  | Rank | N-gram | Count |
182
  |------|--------|-------|
183
- | 1 | `a n` | 880,577 |
184
- | 2 | `n g` | 735,053 |
185
- | 3 | `a _` | 536,413 |
186
- | 4 | `i n` | 523,219 |
187
- | 5 | `n _` | 516,092 |
188
 
189
  **3-grams (Subword):**
190
 
191
  | Rank | N-gram | Count |
192
  |------|--------|-------|
193
- | 1 | `n g _` | 361,156 |
194
- | 2 | `a n _` | 287,413 |
195
- | 3 | `i n g` | 287,067 |
196
- | 4 | `a n g` | 219,608 |
197
- | 5 | `_ k a` | 213,760 |
198
 
199
  **4-grams (Subword):**
200
 
201
  | Rank | N-gram | Count |
202
  |------|--------|-------|
203
- | 1 | `i n g _` | 219,518 |
204
- | 2 | `r i n g` | 145,165 |
205
- | 3 | `_ r i n` | 128,090 |
206
- | 4 | `a n g _` | 86,655 |
207
- | 5 | `u n i k` | 72,566 |
 
 
 
 
 
 
 
 
 
 
208
 
209
 
210
  ### Key Findings
211
 
212
- - **Best Perplexity:** 2-gram (subword) with 225
213
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
214
- - **Coverage:** Top-1000 patterns cover ~54% of corpus
215
  - **Recommendation:** 4-gram or 5-gram for best predictive performance
216
 
217
  ---
@@ -227,14 +259,14 @@ Below are sample sentences tokenized with each vocabulary size:
227
 
228
  | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
229
  |---------|---------|-------------|------------|------------------|-----------------|----------------|
230
- | **1** | Word | 0.7212 | 1.649 | 5.13 | 253,714 | 27.9% |
231
- | **1** | Subword | 0.9714 | 1.961 | 7.03 | 4,633 | 2.9% |
232
- | **2** | Word | 0.2297 | 1.173 | 1.53 | 1,298,868 | 77.0% |
233
- | **2** | Subword | 0.6107 | 1.527 | 3.55 | 32,560 | 38.9% |
234
- | **3** | Word | 0.0749 | 1.053 | 1.14 | 1,983,308 | 92.5% |
235
- | **3** | Subword | 0.5954 | 1.511 | 3.32 | 115,474 | 40.5% |
236
- | **4** | Word | 0.0289 🏆 | 1.020 | 1.05 | 2,240,261 | 97.1% |
237
- | **4** | Subword | 0.6610 | 1.581 | 2.96 | 383,801 | 33.9% |
238
 
239
  ### Generated Text Samples (Word-based)
240
 
@@ -242,27 +274,27 @@ Below are text samples generated from each word-based Markov chain model:
242
 
243
  **Context Size 1:**
244
 
245
- 1. `ring warsa puniki dados kauahin ilang yening url dados kaapus saking sistem ekologi dan bedah langsu...`
246
- 2. `kabupatén kediri jawa timur pustaka pranala jaba situs resmi pamréntahan wali ngancan ngamokohang ba...`
247
- 3. `punika silih tunggil désa ring thailand punika wenten ring sérial mabasis ring wewidangan kecamatan ...`
248
 
249
  **Context Size 2:**
250
 
251
- 1. `situs resmi pamréntahan kabupatén bima badan pusat statistik kota bengkulu badan pusat statistik pro...`
252
- 2. `inggih punika silih sinunggil gendingan tradisional thailand sane pinih sering kacingak pinaka gerha...`
253
- 3. `silih tunggil pagending tur ngamedalang surat kaputusan nomor sadurugnyane ring warsa akéh kramanyan...`
254
 
255
  **Context Size 3:**
256
 
257
- 1. `badan pusat statistik propinsi jawa tengah indonésia mawit saking pérméndagri nomor 137 warsa indik ...`
258
- 2. `pustaka pranala jaba situs resmi propinsi bali badan pusat statistik propinsi kalimantan selatan bad...`
259
- 3. `inggih punika silih tunggil kecamatan ring kabupatén timor tengah utara ring nusa tenggara timur bad...`
260
 
261
  **Context Size 4:**
262
 
263
- 1. `inggih punika silih tunggil désa ring kecamatan pulau pulau kur tual propinsi maluku indonésia pusta...`
264
- 2. `pranala jaba situs resmi pamrentahan provinsi kepulauan bangka belitung badan pusat statistik kabupa...`
265
- 3. `pustaka pranala jaba situs resmi pamrentahan provinsi kepulauan bangka belitung badan pusat statisti...`
266
 
267
 
268
  ### Generated Text Samples (Subword-based)
@@ -271,34 +303,34 @@ Below are text samples generated from each subword-based Markov chain model:
271
 
272
  **Context Size 1:**
273
 
274
- 1. `a._gané_l_i,_dan`
275
- 2. `_ptrandopi_mi_ba`
276
- 3. `n_107_sika,_dika`
277
 
278
  **Context Size 2:**
279
 
280
- 1. `angaing_wawewidué`
281
- 2. `ng_gu_kin_éman_no`
282
- 3. `a_]_garingang_lat`
283
 
284
  **Context Size 3:**
285
 
286
- 1. `ng_kabupatén_sané_`
287
- 2. `an_kaapustaka_miwa`
288
- 3. `inggih_tunggih_pas`
289
 
290
  **Context Size 4:**
291
 
292
- 1. `ing_basa_badan_pran`
293
- 2. `ring_kaapus_sané_ri`
294
- 3. `_ring_kabupatén_kah`
295
 
296
 
297
  ### Key Findings
298
 
299
  - **Best Predictability:** Context-4 (word) with 97.1% predictability
300
  - **Branching Factor:** Decreases with context size (more deterministic)
301
- - **Memory Trade-off:** Larger contexts require more storage (383,801 contexts)
302
  - **Recommendation:** Context-3 or Context-4 for text generation
303
 
304
  ---
@@ -314,64 +346,64 @@ Below are text samples generated from each subword-based Markov chain model:
314
 
315
  | Metric | Value |
316
  |--------|-------|
317
- | Vocabulary Size | 96,177 |
318
- | Total Tokens | 3,540,495 |
319
- | Mean Frequency | 36.81 |
320
  | Median Frequency | 3 |
321
- | Frequency Std Dev | 739.04 |
322
 
323
  ### Most Common Words
324
 
325
  | Rank | Word | Frequency |
326
  |------|------|-----------|
327
- | 1 | ring | 127,899 |
328
- | 2 | kabupatén | 58,514 |
329
- | 3 | punika | 50,657 |
330
- | 4 | sané | 45,835 |
331
- | 5 | situs | 44,988 |
332
- | 6 | resmi | 42,224 |
333
- | 7 | inggih | 37,927 |
334
- | 8 | saking | 37,341 |
335
- | 9 | url | 32,061 |
336
- | 10 | miwah | 31,507 |
337
 
338
  ### Least Common Words (from vocabulary)
339
 
340
  | Rank | Word | Frequency |
341
  |------|------|-----------|
342
- | 1 | kitou | 2 |
343
- | 2 | sialet | 2 |
344
- | 3 | dibanda | 2 |
345
- | 4 | ᬦᬶᬲᬫ᭄ | 2 |
346
- | 5 | reuba | 2 |
347
- | 6 | reuleut | 2 |
348
- | 7 | rheue | 2 |
349
- | 8 | uleue | 2 |
350
- | 9 | muling | 2 |
351
- | 10 | sanderling | 2 |
352
 
353
  ### Zipf's Law Analysis
354
 
355
  | Metric | Value |
356
  |--------|-------|
357
- | Zipf Coefficient | 1.1306 |
358
- | R² (Goodness of Fit) | 0.997983 |
359
  | Adherence Quality | **excellent** |
360
 
361
  ### Coverage Analysis
362
 
363
  | Top N Words | Coverage |
364
  |-------------|----------|
365
- | Top 100 | 44.6% |
366
- | Top 1,000 | 68.9% |
367
- | Top 5,000 | 82.9% |
368
- | Top 10,000 | 87.9% |
369
 
370
  ### Key Findings
371
 
372
- - **Zipf Compliance:** R²=0.9980 indicates excellent adherence to Zipf's law
373
- - **High Frequency Dominance:** Top 100 words cover 44.6% of corpus
374
- - **Long Tail:** 86,177 words needed for remaining 12.1% coverage
375
 
376
  ---
377
  ## 5. Word Embeddings Evaluation
@@ -387,37 +419,40 @@ Below are text samples generated from each subword-based Markov chain model:
387
 
388
  ### 5.1 Cross-Lingual Alignment
389
 
390
- > *Note: Multilingual alignment visualization not available for this language.*
 
 
391
 
392
 
393
  ### 5.2 Model Comparison
394
 
395
  | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
396
  |-------|-----------|----------|------------------|---------------|----------------|
397
- | **mono_32d** | 32 | 0.8530 🏆 | 0.3516 | N/A | N/A |
398
- | **mono_64d** | 64 | 0.8495 | 0.2832 | N/A | N/A |
399
- | **mono_128d** | 128 | 0.8092 | 0.2232 | N/A | N/A |
 
 
 
400
 
401
  ### Key Findings
402
 
403
- - **Best Isotropy:** mono_32d with 0.8530 (more uniform distribution)
404
- - **Semantic Density:** Average pairwise similarity of 0.2860. Lower values indicate better semantic separation.
405
- - **Alignment Quality:** No aligned models evaluated in this run.
406
  - **Recommendation:** 128d aligned for best cross-lingual performance
407
 
408
  ---
409
  ## 6. Morphological Analysis (Experimental)
410
 
411
- > ⚠️ **Warning:** This language shows low morphological productivity. The statistical signals used for this analysis may be noisy or less reliable than for morphologically rich languages.
412
-
413
  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.
414
 
415
  ### 6.1 Productivity & Complexity
416
 
417
  | Metric | Value | Interpretation | Recommendation |
418
  |--------|-------|----------------|----------------|
419
- | Productivity Index | **0.000** | Low morphological productivity | ⚠️ Likely unreliable |
420
- | Idiomaticity Gap | **-1.000** | Low formulaic content | - |
421
 
422
  ### 6.2 Affix Inventory (Productive Units)
423
 
@@ -426,19 +461,17 @@ These are the most productive prefixes and suffixes identified by sampling the v
426
  #### Productive Prefixes
427
  | Prefix | Examples |
428
  |--------|----------|
429
- | `-ma` | martins, masduki, maffin |
430
- | `-ka` | kaméloh, kaaranin, kasum |
431
- | `-pa` | palopat, panandatanganan, pail |
432
- | `-pe` | peting, pencok, pemantauan |
433
 
434
  #### Productive Suffixes
435
  | Suffix | Examples |
436
  |--------|----------|
437
- | `-n` | baharuddin, setyawan, roussillon |
438
- | `-an` | setyawan, panandatanganan, mengupayakan |
439
- | `-ng` | peting, speaking, sanderling |
440
- | `-ang` | tenggarang, lendang, nguwahang |
441
- | `-né` | leluhurnyané, putranidané, bébékné |
442
 
443
  ### 6.3 Bound Stems (Lexical Roots)
444
 
@@ -446,18 +479,18 @@ Bound stems are high-frequency subword units that are semantically cohesive but
446
 
447
  | Stem | Cohesion | Substitutability | Examples |
448
  |------|----------|------------------|----------|
449
- | `anga` | 1.47x | 361 contexts | nanga, sanga, hanga |
450
- | `ngan` | 1.54x | 182 contexts | angan, ingan, tengan |
451
- | `nten` | 1.71x | 86 contexts | inten, enten, wnten |
452
- | `atan` | 1.52x | 149 contexts | vatan, gatan, matan |
453
- | `ungg` | 1.55x | 117 contexts | tungg, ungga, unggun |
454
- | `akin` | 1.88x | 41 contexts | aking, yakin, dakin |
455
- | `nggi` | 1.58x | 73 contexts | anggi, nggih, senggi |
456
- | `taha` | 1.90x | 32 contexts | tahai, tahap, tahan |
457
- | `ggih` | 2.03x | 22 contexts | nggih, lnggih, inggih |
458
- | `ados` | 2.01x | 22 contexts | dados, sados, padosa |
459
- | `isti` | 1.61x | 36 contexts | bistik, sistim, pistia |
460
- | `cama` | 1.87x | 19 contexts | camat, camas, camah |
461
 
462
  ### 6.4 Affix Compatibility (Co-occurrence)
463
 
@@ -465,16 +498,16 @@ This table shows which prefixes and suffixes most frequently co-occur on the sam
465
 
466
  | Prefix | Suffix | Frequency | Examples |
467
  |--------|--------|-----------|----------|
468
- | `-pa` | `-n` | 112 words | palimunan, pawacanan |
469
- | `-ka` | `-n` | 112 words | kamerdékaan, kagenahin |
470
- | `-pa` | `-an` | 96 words | palimunan, pawacanan |
471
- | `-pe` | `-n` | 92 words | perhubungan, penyaringan |
472
- | `-pe` | `-an` | 81 words | perhubungan, penyaringan |
473
- | `-ka` | `-ng` | 77 words | kaidipang, kawedharang |
474
- | `-ka` | `-ang` | 61 words | kaidipang, kawedharang |
475
- | `-ka` | `-an` | 56 words | kamerdékaan, kamaharajan |
476
- | `-ma` | `-n` | 55 words | marepan, mapitungan |
477
- | `-ma` | `-an` | 39 words | marepan, mapitungan |
478
 
479
  ### 6.5 Recursive Morpheme Segmentation
480
 
@@ -482,26 +515,26 @@ Using **Recursive Hierarchical Substitutability**, we decompose complex words in
482
 
483
  | Word | Suggested Split | Confidence | Stem |
484
  |------|-----------------|------------|------|
485
- | kauningan | **`ka-uning-an`** | 6.0 | `uning` |
486
- | kaorganisasiang | **`ka-organisasi-ang`** | 6.0 | `organisasi` |
487
- | kakaonang | **`ka-ka-onang`** | 6.0 | `onang` |
488
- | pasilihan | **`pa-silih-an`** | 6.0 | `silih` |
489
- | kajahatan | **`ka-jahat-an`** | 6.0 | `jahat` |
490
- | kasedukan | **`ka-seduk-an`** | 6.0 | `seduk` |
491
- | kalaporang | **`ka-lapor-ang`** | 6.0 | `lapor` |
492
- | kakuasaan | **`ka-kuasa-an`** | 6.0 | `kuasa` |
493
- | padruwénan | **`pa-druwén-an`** | 6.0 | `druwén` |
494
- | palekadan | **`pa-lekad-an`** | 6.0 | `lekad` |
495
- | mategakan | **`ma-tegak-an`** | 6.0 | `tegak` |
496
- | kaungkabang | **`ka-ungkab-ang`** | 6.0 | `ungkab` |
497
- | kauwugang | **`ka-uwug-ang`** | 6.0 | `uwug` |
498
- | panyambung | **`pa-nyambu-ng`** | 6.0 | `nyambu` |
499
- | panularan | **`pa-nular-an`** | 6.0 | `nular` |
500
 
501
  ### 6.6 Linguistic Interpretation
502
 
503
  > **Automated Insight:**
504
- The language BAN appears to be more isolating or has a highly fixed vocabulary. Word-level models perform nearly as well as subword models, indicating fewer productive morphological processes.
505
 
506
  ---
507
  ## 7. Summary & Recommendations
@@ -513,7 +546,7 @@ The language BAN appears to be more isolating or has a highly fixed vocabulary.
513
  | Component | Recommended | Rationale |
514
  |-----------|-------------|-----------|
515
  | Tokenizer | **64k BPE** | Best compression (5.08x) |
516
- | N-gram | **2-gram** | Lowest perplexity (225) |
517
  | Markov | **Context-4** | Highest predictability (97.1%) |
518
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
519
 
@@ -728,4 +761,4 @@ MIT License - Free for academic and commercial use.
728
  ---
729
  *Generated by Wikilangs Models Pipeline*
730
 
731
- *Report Date: 2026-01-03 06:12:56*
 
1
  ---
2
  language: ban
3
+ language_name: Balinese
4
  language_family: austronesian_other
5
  tags:
6
  - wikilangs
 
10
  - n-gram
11
  - markov
12
  - wikipedia
13
+ - feature-extraction
14
+ - sentence-similarity
15
+ - tokenization
16
+ - n-grams
17
+ - markov-chain
18
+ - text-mining
19
+ - fasttext
20
+ - babelvec
21
+ - vocabulous
22
+ - vocabulary
23
  - monolingual
24
  - family-austronesian_other
25
  license: mit
26
  library_name: wikilangs
27
+ pipeline_tag: text-generation
28
  datasets:
29
  - omarkamali/wikipedia-monthly
30
  dataset_info:
 
33
  metrics:
34
  - name: best_compression_ratio
35
  type: compression
36
+ value: 5.076
37
  - name: best_isotropy
38
  type: isotropy
39
+ value: 0.8561
40
  - name: vocabulary_size
41
  type: vocab
42
  value: 0
43
  generated: 2026-01-03
44
  ---
45
 
46
+ # Balinese - Wikilangs Models
47
  ## Comprehensive Research Report & Full Ablation Study
48
 
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Balinese** Wikipedia data.
50
  We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
51
 
52
  ## 📋 Repository Contents
 
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)
 
90
 
91
  | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
92
  |------------|-------------|---------------|----------|--------------|
93
+ | **8k** | 4.067x | 4.07 | 0.1935% | 240,819 |
94
+ | **16k** | 4.471x | 4.48 | 0.2127% | 219,044 |
95
+ | **32k** | 4.812x | 4.82 | 0.2289% | 203,541 |
96
+ | **64k** | 5.076x 🏆 | 5.08 | 0.2415% | 192,952 |
97
 
98
  ### Tokenization Examples
99
 
100
  Below are sample sentences tokenized with each vocabulary size:
101
 
102
+ **Sample 1:** `920 921 922 923 924 925 926 927 928 929 Jadma Embas Seda Pustaka Pranala liyané ...`
103
 
104
  | Vocab | Tokens | Count |
105
  |-------|--------|-------|
106
+ | 8k | `▁ 9 2 09 2 19 ... (+40 more)` | 50 |
107
+ | 16k | `▁ 9 2 09 2 19 ... (+40 more)` | 50 |
108
+ | 32k | `▁ 9 2 09 2 19 ... (+40 more)` | 50 |
109
+ | 64k | `▁ 9 2 09 2 19 ... (+40 more)` | 50 |
110
 
111
+ **Sample 2:** `Reutlingen (; Swabia: Reitlenga) inggih punika sinunggil kota ring Baden-Württem...`
112
 
113
  | Vocab | Tokens | Count |
114
  |-------|--------|-------|
115
+ | 8k | `▁re ut ling en ▁(;sw ab ia :re ... (+34 more)` | 44 |
116
+ | 16k | `▁re ut ling en ▁(;sw ab ia :re ... (+28 more)` | 38 |
117
+ | 32k | `▁re ut lingen ▁(;sw abia :re it l ... (+25 more)` | 35 |
118
+ | 64k | `▁reut lingen ▁(;sw abia :re it l enga ... (+22 more)` | 32 |
119
 
120
+ **Sample 3:** `Terneuzen () inggih punika kota miwah kotamadya ring sisi kelod kauh Belanda, ri...`
121
 
122
  | Vocab | Tokens | Count |
123
  |-------|--------|-------|
124
+ | 8k | `▁ter ne uz en ▁() ▁inggih ▁punika ▁kota ▁miwah ▁kotamadya ... (+21 more)` | 31 |
125
+ | 16k | `▁ter ne uz en ▁() ▁inggih ▁punika ▁kota ▁miwah ▁kotamadya ... (+17 more)` | 27 |
126
+ | 32k | `▁ter ne uz en ▁() ▁inggih ▁punikakota ▁miwah ▁kotamadya ... (+15 more)` | 25 |
127
+ | 64k | `▁ter ne uzen ▁() ▁inggih ▁punika ▁kotamiwahkotamadyaring ... (+14 more)` | 24 |
128
 
129
 
130
  ### Key Findings
131
 
132
+ - **Best Compression:** 64k achieves 5.076x compression
133
+ - **Lowest UNK Rate:** 8k with 0.1935% unknown tokens
134
  - **Trade-off:** Larger vocabularies improve compression but increase model size
135
  - **Recommendation:** 32k vocabulary provides optimal balance for production use
136
 
 
147
 
148
  | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
149
  |--------|---------|------------|---------|----------------|------------------|-------------------|
150
+ | **2-gram** | Word | 4,640 | 12.18 | 61,259 | 36.3% | 57.8% |
151
+ | **2-gram** | Subword | 223 🏆 | 7.80 | 8,004 | 73.6% | 99.2% |
152
+ | **3-gram** | Word | 5,627 | 12.46 | 79,401 | 34.2% | 56.0% |
153
+ | **3-gram** | Subword | 1,643 | 10.68 | 43,230 | 31.4% | 79.4% |
154
+ | **4-gram** | Word | 8,547 | 13.06 | 120,311 | 29.1% | 51.2% |
155
+ | **4-gram** | Subword | 7,491 | 12.87 | 210,661 | 18.4% | 54.1% |
156
+ | **5-gram** | Word | 8,777 | 13.10 | 92,971 | 25.7% | 49.1% |
157
+ | **5-gram** | Subword | 21,126 | 14.37 | 563,270 | 15.0% | 42.7% |
158
 
159
  ### Top 5 N-grams by Size
160
 
 
162
 
163
  | Rank | N-gram | Count |
164
  |------|--------|-------|
165
+ | 1 | `situs resmi` | 43,663 |
166
+ | 2 | `inggih punika` | 39,149 |
167
+ | 3 | `pusat statistik` | 24,769 |
168
+ | 4 | `badan pusat` | 24,755 |
169
+ | 5 | `silih tunggil` | 23,231 |
170
 
171
  **3-grams (Word):**
172
 
173
  | Rank | N-gram | Count |
174
  |------|--------|-------|
175
+ | 1 | `badan pusat statistik` | 24,753 |
176
+ | 2 | `pustaka pranala jaba` | 21,680 |
177
+ | 3 | `inggih punika silih` | 20,522 |
178
+ | 4 | `punika silih tunggil` | 20,156 |
179
+ | 5 | `pranala jaba situs` | 19,252 |
180
 
181
  **4-grams (Word):**
182
 
183
  | Rank | N-gram | Count |
184
  |------|--------|-------|
185
+ | 1 | `inggih punika silih tunggil` | 20,046 |
186
+ | 2 | `pranala jaba situs resmi` | 19,034 |
187
+ | 3 | `pustaka pranala jaba situs` | 18,664 |
188
+ | 4 | `dados kauahin ilang yening` | 15,610 |
189
+ | 5 | `kauahin ilang yening url` | 15,325 |
190
+
191
+ **5-grams (Word):**
192
+
193
+ | Rank | N-gram | Count |
194
+ |------|--------|-------|
195
+ | 1 | `pustaka pranala jaba situs resmi` | 18,475 |
196
+ | 2 | `dados kauahin ilang yening url` | 15,325 |
197
+ | 3 | `kauahin ilang yening url nenten` | 15,194 |
198
+ | 4 | `url dados kauahin ilang yening` | 15,039 |
199
+ | 5 | `ilang yening url nenten aktip` | 14,998 |
200
 
201
  **2-grams (Subword):**
202
 
203
  | Rank | N-gram | Count |
204
  |------|--------|-------|
205
+ | 1 | `a n` | 914,478 |
206
+ | 2 | `n g` | 765,351 |
207
+ | 3 | `a _` | 556,979 |
208
+ | 4 | `i n` | 546,378 |
209
+ | 5 | `n _` | 539,027 |
210
 
211
  **3-grams (Subword):**
212
 
213
  | Rank | N-gram | Count |
214
  |------|--------|-------|
215
+ | 1 | `n g _` | 376,926 |
216
+ | 2 | `a n _` | 301,627 |
217
+ | 3 | `i n g` | 300,756 |
218
+ | 4 | `a n g` | 227,744 |
219
+ | 5 | `_ k a` | 223,144 |
220
 
221
  **4-grams (Subword):**
222
 
223
  | Rank | N-gram | Count |
224
  |------|--------|-------|
225
+ | 1 | `i n g _` | 230,681 |
226
+ | 2 | `r i n g` | 152,062 |
227
+ | 3 | `_ r i n` | 133,355 |
228
+ | 4 | `a n g _` | 89,274 |
229
+ | 5 | `u n i k` | 75,300 |
230
+
231
+ **5-grams (Subword):**
232
+
233
+ | Rank | N-gram | Count |
234
+ |------|--------|-------|
235
+ | 1 | `r i n g _` | 149,014 |
236
+ | 2 | `_ r i n g` | 133,072 |
237
+ | 3 | `p u n i k` | 74,857 |
238
+ | 4 | `_ p u n i` | 72,286 |
239
+ | 5 | `b u p a t` | 70,377 |
240
 
241
 
242
  ### Key Findings
243
 
244
+ - **Best Perplexity:** 2-gram (subword) with 223
245
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
246
+ - **Coverage:** Top-1000 patterns cover ~43% of corpus
247
  - **Recommendation:** 4-gram or 5-gram for best predictive performance
248
 
249
  ---
 
259
 
260
  | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
261
  |---------|---------|-------------|------------|------------------|-----------------|----------------|
262
+ | **1** | Word | 0.7231 | 1.651 | 5.15 | 258,667 | 27.7% |
263
+ | **1** | Subword | 0.9698 | 1.959 | 7.06 | 4,719 | 3.0% |
264
+ | **2** | Word | 0.2300 | 1.173 | 1.54 | 1,327,861 | 77.0% |
265
+ | **2** | Subword | 0.6130 | 1.529 | 3.55 | 33,296 | 38.7% |
266
+ | **3** | Word | 0.0751 | 1.053 | 1.14 | 2,029,547 | 92.5% |
267
+ | **3** | Subword | 0.5903 | 1.506 | 3.30 | 118,157 | 41.0% |
268
+ | **4** | Word | 0.0289 🏆 | 1.020 | 1.05 | 2,293,918 | 97.1% |
269
+ | **4** | Subword | 0.6581 | 1.578 | 2.95 | 389,827 | 34.2% |
270
 
271
  ### Generated Text Samples (Word-based)
272
 
 
274
 
275
  **Context Size 1:**
276
 
277
+ 1. `ring kabupatén manggarai univérsitas téknologi langkungan saking lis kediri propinsi jawa timur situ...`
278
+ 2. `kabupatén bandar udara sipil negara wagian connecticut john musker dave akbarshah fikarno partai pol...`
279
+ 3. `punika silih tunggil gampong ring panguntat warsa perang sane madaging aglomerasi pays blanc kawentu...`
280
 
281
  **Context Size 2:**
282
 
283
+ 1. `situs resmi provinsi kalimantan timur indonésia pustaka pranala jaba of the betawi and their subordi...`
284
+ 2. `inggih punika silih tunggil désa dinas sané magenah ring désa karimunjawa pulau karimunjawa gua sara...`
285
+ 3. `pusat statistik provinsi lampung badan pusat statistik nusa tenggara timur ring panegara indonésia p...`
286
 
287
  **Context Size 3:**
288
 
289
+ 1. `badan pusat statistik provinsi lampung badan pusat statistik provinsi banten situs resmi pemerintah ...`
290
+ 2. `pustaka pranala jaba situs resmi pamréntahan kota malang prodeskel binapemdes kemendagri banyuwangi ...`
291
+ 3. `inggih punika silih tunggil kecamatan ring kabupatén tuban ring jawa timur ring panegara indonésia p...`
292
 
293
  **Context Size 4:**
294
 
295
+ 1. `inggih punika silih tunggil désa dinas sané magenah ring kecamatan pakem ring wawengkon kabupatén bo...`
296
+ 2. `pranala jaba situs resmi pamréntahan propinsi kalimantan tengah badan pusat statistik propinsi kalim...`
297
+ 3. `pustaka pranala jaba situs resmi pamrentahan propinsi jawa tengah badan pusat statistik propinsi daé...`
298
 
299
 
300
  ### Generated Text Samples (Subword-based)
 
303
 
304
  **Context Size 1:**
305
 
306
+ 1. `akraning_pa_dang`
307
+ 2. `_pawewen,_ako_in`
308
+ 3. `ngkang_l_parasih`
309
 
310
  **Context Size 2:**
311
 
312
+ 1. `an_punisi_ka_ma_i`
313
+ 2. `ng_doh_for,_namas`
314
+ 3. `a_matasur_sur_jaj`
315
 
316
  **Context Size 3:**
317
 
318
+ 1. `ng_pamréntahan_kaa`
319
+ 2. `an_sumelaya,_propi`
320
+ 3. `ing_richoir,_jani_`
321
 
322
  **Context Size 4:**
323
 
324
+ 1. `ing_lis._gresik_pun`
325
+ 2. `ring_radeship_himse`
326
+ 3. `_ring_soroh_jaya_be`
327
 
328
 
329
  ### Key Findings
330
 
331
  - **Best Predictability:** Context-4 (word) with 97.1% predictability
332
  - **Branching Factor:** Decreases with context size (more deterministic)
333
+ - **Memory Trade-off:** Larger contexts require more storage (389,827 contexts)
334
  - **Recommendation:** Context-3 or Context-4 for text generation
335
 
336
  ---
 
346
 
347
  | Metric | Value |
348
  |--------|-------|
349
+ | Vocabulary Size | 98,403 |
350
+ | Total Tokens | 3,677,636 |
351
+ | Mean Frequency | 37.37 |
352
  | Median Frequency | 3 |
353
+ | Frequency Std Dev | 767.63 |
354
 
355
  ### Most Common Words
356
 
357
  | Rank | Word | Frequency |
358
  |------|------|-----------|
359
+ | 1 | ring | 133,161 |
360
+ | 2 | kabupatén | 61,962 |
361
+ | 3 | punika | 52,592 |
362
+ | 4 | situs | 47,934 |
363
+ | 5 | sané | 47,011 |
364
+ | 6 | resmi | 44,807 |
365
+ | 7 | inggih | 39,587 |
366
+ | 8 | saking | 39,350 |
367
+ | 9 | url | 35,045 |
368
+ | 10 | propinsi | 33,485 |
369
 
370
  ### Least Common Words (from vocabulary)
371
 
372
  | Rank | Word | Frequency |
373
  |------|------|-----------|
374
+ | 1 | ᬧᬳᬗᬿ | 2 |
375
+ | 2 | ᬧᬓᬓ᭄ | 2 |
376
+ | 3 | ᬮᬸᬦᬸᬓ᭄ | 2 |
377
+ | 4 | ᬫᭂᬭᬜ᭄ᬘᬂ | 2 |
378
+ | 5 | patonangi | 2 |
379
+ | 6 | ᬩᬩᬭᬶᬲ᭄ | 2 |
380
+ | 7 | ᬢᬢᬓᬦ᭄ | 2 |
381
+ | 8 | ᬳᬮᬢ᭄ | 2 |
382
+ | 9 | ᬩᬤᭁᬦ᭄ | 2 |
383
+ | 10 | ᬩᬮᬸᬓᬸᬂ | 2 |
384
 
385
  ### Zipf's Law Analysis
386
 
387
  | Metric | Value |
388
  |--------|-------|
389
+ | Zipf Coefficient | 1.1326 |
390
+ | R² (Goodness of Fit) | 0.997911 |
391
  | Adherence Quality | **excellent** |
392
 
393
  ### Coverage Analysis
394
 
395
  | Top N Words | Coverage |
396
  |-------------|----------|
397
+ | Top 100 | 45.3% |
398
+ | Top 1,000 | 69.2% |
399
+ | Top 5,000 | 83.1% |
400
+ | Top 10,000 | 88.0% |
401
 
402
  ### Key Findings
403
 
404
+ - **Zipf Compliance:** R²=0.9979 indicates excellent adherence to Zipf's law
405
+ - **High Frequency Dominance:** Top 100 words cover 45.3% of corpus
406
+ - **Long Tail:** 88,403 words needed for remaining 12.0% coverage
407
 
408
  ---
409
  ## 5. Word Embeddings Evaluation
 
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.8561 🏆 | 0.3559 | N/A | N/A |
432
+ | **mono_64d** | 64 | 0.8453 | 0.2824 | N/A | N/A |
433
+ | **mono_128d** | 128 | 0.8108 | 0.2152 | N/A | N/A |
434
+ | **aligned_32d** | 32 | 0.8561 | 0.3499 | 0.0500 | 0.3000 |
435
+ | **aligned_64d** | 64 | 0.8453 | 0.2791 | 0.1160 | 0.4180 |
436
+ | **aligned_128d** | 128 | 0.8108 | 0.2217 | 0.1860 | 0.5760 |
437
 
438
  ### Key Findings
439
 
440
+ - **Best Isotropy:** mono_32d with 0.8561 (more uniform distribution)
441
+ - **Semantic Density:** Average pairwise similarity of 0.2840. Lower values indicate better semantic separation.
442
+ - **Alignment Quality:** Aligned models achieve up to 18.6% 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.148** | Low formulaic content | - |
456
 
457
  ### 6.2 Affix Inventory (Productive Units)
458
 
 
461
  #### Productive Prefixes
462
  | Prefix | Examples |
463
  |--------|----------|
464
+ | `-ka` | kaumahné, kambilo, karangdinoyo |
465
+ | `-ma` | maseosan, matogu, manufaktur |
466
+ | `-pa` | papadun, palmerah, pacing |
 
467
 
468
  #### Productive Suffixes
469
  | Suffix | Examples |
470
  |--------|----------|
471
+ | `-n` | alien, gejeran, hughenden |
472
+ | `-an` | gejeran, maseosan, matangnyan |
473
+ | `-ng` | wyoming, siung, yèning |
474
+ | `-ang` | nelebang, renang, hilirundang |
 
475
 
476
  ### 6.3 Bound Stems (Lexical Roots)
477
 
 
479
 
480
  | Stem | Cohesion | Substitutability | Examples |
481
  |------|----------|------------------|----------|
482
+ | `anga` | 1.63x | 366 contexts | angar, ranga, manga |
483
+ | `nten` | 1.91x | 86 contexts | inten, enten, wnten |
484
+ | `atan` | 1.68x | 151 contexts | batan, vatan, patan |
485
+ | `ngan` | 1.50x | 185 contexts | ingan, angan, ringan |
486
+ | `akin` | 1.95x | 42 contexts | makin, dakin, yakin |
487
+ | `ungg` | 1.47x | 120 contexts | tungg, ungga, unggak |
488
+ | `nggi` | 1.58x | 77 contexts | anggi, nggih, ninggi |
489
+ | `taha` | 1.86x | 33 contexts | tahan, tahai, tahar |
490
+ | `ados` | 2.09x | 21 contexts | dados, sados, padosa |
491
+ | `ggih` | 1.99x | 22 contexts | nggih, inggih, lnggih |
492
+ | `stat` | 1.88x | 20 contexts | state, stats, istat |
493
+ | `isti` | 1.56x | 37 contexts | sistim, bistik, mistik |
494
 
495
  ### 6.4 Affix Compatibility (Co-occurrence)
496
 
 
498
 
499
  | Prefix | Suffix | Frequency | Examples |
500
  |--------|--------|-----------|----------|
501
+ | `-ka` | `-n` | 119 words | kapribadian, kaanyarin |
502
+ | `-pa` | `-n` | 117 words | palimanan, pawedaran |
503
+ | `-pa` | `-an` | 104 words | palimanan, pawedaran |
504
+ | `-ka` | `-ng` | 90 words | kagampilang, kalaliang |
505
+ | `-ka` | `-ang` | 75 words | kagampilang, kalaliang |
506
+ | `-ka` | `-an` | 68 words | kapribadian, kalanguan |
507
+ | `-ma` | `-n` | 45 words | malun, maroon |
508
+ | `-ma` | `-an` | 36 words | madénan, mabinaan |
509
+ | `-ma` | `-ng` | 34 words | mamantang, mahondang |
510
+ | `-ma` | `-ang` | 20 words | mamantang, mahondang |
511
 
512
  ### 6.5 Recursive Morpheme Segmentation
513
 
 
515
 
516
  | Word | Suggested Split | Confidence | Stem |
517
  |------|-----------------|------------|------|
518
+ | patarungan | **`pa-taru-ng-an`** | 7.5 | `taru` |
519
+ | kalédangan | **`ka-léda-ng-an`** | 7.5 | `léda` |
520
+ | malimongan | **`ma-limo-ng-an`** | 7.5 | `limo` |
521
+ | kasemaran | **`ka-semar-an`** | 6.0 | `semar` |
522
+ | kaasosiasiang | **`ka-asosiasi-ang`** | 6.0 | `asosiasi` |
523
+ | kadaftarang | **`ka-daftar-ang`** | 6.0 | `daftar` |
524
+ | malaibang | **`ma-laib-ang`** | 6.0 | `laib` |
525
+ | kasunanan | **`ka-sunan-an`** | 6.0 | `sunan` |
526
+ | kawarisang | **`ka-waris-ang`** | 6.0 | `waris` |
527
+ | pangabdian | **`pa-ngabdi-an`** | 6.0 | `ngabdi` |
528
+ | palaibang | **`pa-laib-ang`** | 6.0 | `laib` |
529
+ | kabudayaan | **`ka-budaya-an`** | 6.0 | `budaya` |
530
+ | mapangangge | **`ma-pa-ngangge`** | 6.0 | `ngangge` |
531
+ | mapontang | **`ma-pont-ang`** | 6.0 | `pont` |
532
+ | kajegegan | **`ka-jegeg-an`** | 6.0 | `jegeg` |
533
 
534
  ### 6.6 Linguistic Interpretation
535
 
536
  > **Automated Insight:**
537
+ The language Balinese shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
538
 
539
  ---
540
  ## 7. Summary & Recommendations
 
546
  | Component | Recommended | Rationale |
547
  |-----------|-------------|-----------|
548
  | Tokenizer | **64k BPE** | Best compression (5.08x) |
549
+ | N-gram | **2-gram** | Lowest perplexity (223) |
550
  | Markov | **Context-4** | Highest predictability (97.1%) |
551
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
552
 
 
761
  ---
762
  *Generated by Wikilangs Models Pipeline*
763
 
764
+ *Report Date: 2026-01-03 18:39:33*
models/embeddings/aligned/ban_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa7015dba1b32c26d14135f707769a38af9822fb21669e7e91ac54d8bb06d204
3
+ size 1070163526
models/embeddings/aligned/ban_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ban", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/ban_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bb3bf0c6d4d0d945a8bfec3bc7023135a84d2c295c5ec74f3b31430a0885d79
3
+ size 65664
models/embeddings/aligned/ban_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ban",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 14715,
7
+ "vocab_size": 44349
8
+ }
models/embeddings/aligned/ban_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63e94f2703c400ae51ea4776cafae9113ef451be47680e796e6b68a8b15e7c62
3
+ size 268103494
models/embeddings/aligned/ban_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ban", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/ban_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4609b2ed15b00f8a3811474e5c9d953a1d951b9e23a7a6be7c50a6742e4c8ca8
3
+ size 4224
models/embeddings/aligned/ban_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ban",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 14715,
7
+ "vocab_size": 44349
8
+ }
models/embeddings/aligned/ban_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0723c484eafe35591778bd74c72acce587929b986611dbef45b5f40e3625f00f
3
+ size 535456838
models/embeddings/aligned/ban_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ban", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/ban_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09a4bb28588585c56283e814869b4c1ddee25abce34e1e5aad4b39ed3d864aa3
3
+ size 16512
models/embeddings/aligned/ban_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ban",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 14715,
7
+ "vocab_size": 44349
8
+ }
models/embeddings/monolingual/ban_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bdf8bd41f143ec229b2b83e523def59ca3894f5e32c88dc9ad1d5777bb3cdbc1
3
- size 1069224476
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa7015dba1b32c26d14135f707769a38af9822fb21669e7e91ac54d8bb06d204
3
+ size 1070163526
models/embeddings/monolingual/ban_128d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
- "vocab_size": 43447
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
+ "vocab_size": 44349
15
  }
models/embeddings/monolingual/ban_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c7b5b04af24d58eb2352605fd5a6a3884aa17bd5211923840f1d2399995b3dc
3
- size 267857180
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63e94f2703c400ae51ea4776cafae9113ef451be47680e796e6b68a8b15e7c62
3
+ size 268103494
models/embeddings/monolingual/ban_32d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
- "vocab_size": 43447
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
+ "vocab_size": 44349
15
  }
models/embeddings/monolingual/ban_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:45be3ee34bd2a796319b97a63a3801529c7d2b0804d891a90aa7697ac777fcda
3
- size 534979612
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0723c484eafe35591778bd74c72acce587929b986611dbef45b5f40e3625f00f
3
+ size 535456838
models/embeddings/monolingual/ban_64d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
- "vocab_size": 43447
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
+ "vocab_size": 44349
15
  }
models/subword_markov/ban_markov_ctx1_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b557a43cbf89ec6e5b8fe521107f375a803257117295fa8f2f26d54017e944ef
3
- size 238064
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:718eb39c64f6851b45cb95f99bbf810ec96f2cc076e64f33264f4d1cf13335c0
3
+ size 242588
models/subword_markov/ban_markov_ctx1_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_contexts": 4633,
6
- "total_transitions": 26072638
7
  }
 
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_contexts": 4719,
6
+ "total_transitions": 27076397
7
  }
models/subword_markov/ban_markov_ctx2_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bc162e729fc9f1b78bdc516d217698eb4c1e8af546cf0d4b64801623d1296b5e
3
- size 1052622
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3e9a8e2a0e7dde391cd98d4038c21d582c6dbf7a9646e0b5464a19d6ed97b0a
3
+ size 1066241
models/subword_markov/ban_markov_ctx2_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_contexts": 32560,
6
- "total_transitions": 26039719
7
  }
 
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_contexts": 33296,
6
+ "total_transitions": 27042034
7
  }
models/subword_markov/ban_markov_ctx3_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:62c18ce24bb55f6d1333346623229b9025cc0f78b411f131da48dbb5f6b5bfaf
3
- size 3150588
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ecac46deaa421d98934c44e71c7594b179c4b50ff14dcea186802238def94c0
3
+ size 3262707
models/subword_markov/ban_markov_ctx3_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_contexts": 115474,
6
- "total_transitions": 26006800
7
  }
 
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_contexts": 118157,
6
+ "total_transitions": 27007671
7
  }
models/subword_markov/ban_markov_ctx4_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:beb82bbbccc1e498763133c2ca43a33d34399701a3feadc33b33d7e28db10c2d
3
- size 9163427
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a596bdbeb821323250ec0d52fb8ba1f6ad34bb3ea2159a62adf907a7b29ed02a
3
+ size 9319931
models/subword_markov/ban_markov_ctx4_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_contexts": 383801,
6
- "total_transitions": 25973881
7
  }
 
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_contexts": 389827,
6
+ "total_transitions": 26973308
7
  }
models/subword_ngram/ban_2gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8d06b7f0eea6caff12eb48816bcfb2e270b3b2491f26727e3f0514ff35fc746
3
- size 106802
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fcbc05f1272c5b1332f43cff8a211618970272f4a7a82ab81d4dcd7b6c5e1e8
3
+ size 109826
models/subword_ngram/ban_2gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_ngrams": 7788,
6
- "total_ngrams": 26072638
7
  }
 
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_ngrams": 8004,
6
+ "total_ngrams": 27076397
7
  }
models/subword_ngram/ban_3gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9343f458518ed0d1f0a407a342e9b5cecbee42b529784e0dcb0b72918b79d1d3
3
- size 564805
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb4d89ef3e14a34a16aa3d600715a522ff2d826f7146a7c998bbe3d7c1c67c9f
3
+ size 584367
models/subword_ngram/ban_3gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_ngrams": 42522,
6
- "total_ngrams": 26039719
7
  }
 
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_ngrams": 43230,
6
+ "total_ngrams": 27042034
7
  }
models/subword_ngram/ban_4gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b5c1474de28fe82c885eb32b731cad7f32987a3ef6b82a9ab47b3b48c9e2ce1a
3
- size 2348974
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b15b80930e90d5cbcb46b4cf6f091b611cfcfa749c7466d6db49385f7012264
3
+ size 2381813
models/subword_ngram/ban_4gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ban",
5
- "unique_ngrams": 208144,
6
- "total_ngrams": 26006800
7
  }
 
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ban",
5
+ "unique_ngrams": 210661,
6
+ "total_ngrams": 27007671
7
  }
models/subword_ngram/ban_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df02a3767b920d1e2f47e25adb9c269988bbba584f47676d81c99c80df21c3fb
3
+ size 6441439
models/subword_ngram/ban_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "ban",
5
+ "unique_ngrams": 563270,
6
+ "total_ngrams": 26973308
7
+ }
models/tokenizer/ban_tokenizer_16k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0194959437d4a8b04b5d3f37d4b95caf926ecb7c4136e157e06f185417710348
3
- size 507366
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88b097bec96c86be17dda7b0ac3181adb2c854d9d5411be044f3b3f6b70daeb1
3
+ size 507335
models/tokenizer/ban_tokenizer_16k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ban_tokenizer_32k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d9e73114a8bfb09cc05cf62d77156539332a4b993d735d59704b21d2055bd5b
3
- size 785247
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a46272b91e6d11d1d893a911a66a497ebce18277c2e91cf14bc371de57238bea
3
+ size 784420
models/tokenizer/ban_tokenizer_32k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ban_tokenizer_64k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0c4163cfc92fedee34979f21e46b3960651c5a1aea63e481f06e935586c4982c
3
- size 1355653
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b04a538e67cae4d48d961ecdd8a0a02657476f42538b1a28741d9cf63ad0c1c
3
+ size 1360288
models/tokenizer/ban_tokenizer_64k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ban_tokenizer_8k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:79dc41677c1fda74a9243a5e8e6b256d3a8d6e89e202f72fe68235e2c50ce0df
3
- size 372914
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6f6acca047a065b29e4e6406c18bd7d49a7637ab851303ea7a466119f4f94a4
3
+ size 372967
models/tokenizer/ban_tokenizer_8k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/ban_vocabulary.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e4e8f2a999ef9ad888861be852297181f3f88c4f902b2c2d3a001b3f88a5eeb
3
- size 1669252
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8bfcfa84a48dadb625735b3a0c274277d625a336e6309d08a4092de0a5f31862
3
+ size 1701426
models/vocabulary/ban_vocabulary_metadata.json CHANGED
@@ -1,17 +1,17 @@
1
  {
2
  "language": "ban",
3
- "vocabulary_size": 96177,
4
  "variant": "full",
5
  "statistics": {
6
- "type_token_ratio": 0.06865216883420294,
7
  "coverage": {
8
- "top_100": 0.4271482296290528,
9
- "top_1000": 0.6597757616661908,
10
- "top_5000": 0.7939794084053682,
11
- "top_10000": 0.8415540715935934
12
  },
13
- "hapax_count": 157713,
14
- "hapax_ratio": 0.6211863405411793,
15
- "total_documents": 32919
16
  }
17
  }
 
1
  {
2
  "language": "ban",
3
+ "vocabulary_size": 98403,
4
  "variant": "full",
5
  "statistics": {
6
+ "type_token_ratio": 0.06744349463678129,
7
  "coverage": {
8
+ "top_100": 0.43393023659963936,
9
+ "top_1000": 0.6627173901998574,
10
+ "top_5000": 0.7959204676704827,
11
+ "top_10000": 0.8428477520181278
12
  },
13
+ "hapax_count": 160451,
14
+ "hapax_ratio": 0.6198513447735017,
15
+ "total_documents": 34363
16
  }
17
  }
models/word_markov/ban_markov_ctx1_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b32e21376297d35ef6bbd5d4573db01b79bce03f68060112590a5eccf22d3f2
3
- size 12122512
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58bd88c2ff7b6fedad91fc291fddfc0eb362aff36cbd25ce91ac0f5e68afd618
3
+ size 12427971
models/word_markov/ban_markov_ctx1_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ban",
5
- "unique_contexts": 253714,
6
- "total_transitions": 3665289
7
  }
 
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ban",
5
+ "unique_contexts": 258667,
6
+ "total_transitions": 3803724
7
  }
models/word_markov/ban_markov_ctx2_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c0cc40598890a3afe8525cbf4abca4b849a1276159d24aed089a152527e3bc5a
3
- size 26358283
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aaef8ba53b9b5f49bb321f3ae6c3e7f0a609ebeb34d6e66e1bfed960a4837c3a
3
+ size 27002495
models/word_markov/ban_markov_ctx2_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ban",
5
- "unique_contexts": 1298868,
6
- "total_transitions": 3632370
7
  }
 
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ban",
5
+ "unique_contexts": 1327861,
6
+ "total_transitions": 3769361
7
  }