omarkamali commited on
Commit
aa20cbb
·
verified ·
1 Parent(s): 5f9544e

Upload all models and assets for btm (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 +226 -191
  3. models/embeddings/aligned/btm_128d.bin +3 -0
  4. models/embeddings/aligned/btm_128d.meta.json +1 -0
  5. models/embeddings/aligned/btm_128d.projection.npy +3 -0
  6. models/embeddings/aligned/btm_128d_metadata.json +8 -0
  7. models/embeddings/aligned/btm_32d.bin +3 -0
  8. models/embeddings/aligned/btm_32d.meta.json +1 -0
  9. models/embeddings/aligned/btm_32d.projection.npy +3 -0
  10. models/embeddings/aligned/btm_32d_metadata.json +8 -0
  11. models/embeddings/aligned/btm_64d.bin +3 -0
  12. models/embeddings/aligned/btm_64d.meta.json +1 -0
  13. models/embeddings/aligned/btm_64d.projection.npy +3 -0
  14. models/embeddings/aligned/btm_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/btm_128d.bin +2 -2
  16. models/embeddings/monolingual/btm_128d_metadata.json +1 -1
  17. models/embeddings/monolingual/btm_32d.bin +2 -2
  18. models/embeddings/monolingual/btm_32d_metadata.json +1 -1
  19. models/embeddings/monolingual/btm_64d.bin +2 -2
  20. models/embeddings/monolingual/btm_64d_metadata.json +1 -1
  21. models/subword_markov/btm_markov_ctx1_subword.parquet +2 -2
  22. models/subword_markov/btm_markov_ctx1_subword_metadata.json +1 -1
  23. models/subword_markov/btm_markov_ctx2_subword.parquet +2 -2
  24. models/subword_markov/btm_markov_ctx2_subword_metadata.json +2 -2
  25. models/subword_markov/btm_markov_ctx3_subword.parquet +2 -2
  26. models/subword_markov/btm_markov_ctx3_subword_metadata.json +2 -2
  27. models/subword_markov/btm_markov_ctx4_subword.parquet +2 -2
  28. models/subword_markov/btm_markov_ctx4_subword_metadata.json +2 -2
  29. models/subword_ngram/btm_2gram_subword.parquet +2 -2
  30. models/subword_ngram/btm_2gram_subword_metadata.json +1 -1
  31. models/subword_ngram/btm_3gram_subword.parquet +2 -2
  32. models/subword_ngram/btm_3gram_subword_metadata.json +2 -2
  33. models/subword_ngram/btm_4gram_subword.parquet +2 -2
  34. models/subword_ngram/btm_4gram_subword_metadata.json +2 -2
  35. models/subword_ngram/btm_5gram_subword.parquet +3 -0
  36. models/subword_ngram/btm_5gram_subword_metadata.json +7 -0
  37. models/tokenizer/btm_tokenizer_16k.model +2 -2
  38. models/tokenizer/btm_tokenizer_16k.vocab +0 -0
  39. models/tokenizer/btm_tokenizer_32k.model +2 -2
  40. models/tokenizer/btm_tokenizer_32k.vocab +0 -0
  41. models/tokenizer/btm_tokenizer_64k.model +2 -2
  42. models/tokenizer/btm_tokenizer_64k.vocab +0 -0
  43. models/tokenizer/btm_tokenizer_8k.model +2 -2
  44. models/tokenizer/btm_tokenizer_8k.vocab +0 -0
  45. models/vocabulary/btm_vocabulary.parquet +2 -2
  46. models/vocabulary/btm_vocabulary_metadata.json +9 -9
  47. models/word_markov/btm_markov_ctx1_word.parquet +2 -2
  48. models/word_markov/btm_markov_ctx1_word_metadata.json +2 -2
  49. models/word_markov/btm_markov_ctx2_word.parquet +2 -2
  50. models/word_markov/btm_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: btm
3
- language_name: BTM
4
  language_family: austronesian_batak
5
  tags:
6
  - wikilangs
@@ -10,11 +10,21 @@ tags:
10
  - n-gram
11
  - markov
12
  - wikipedia
 
 
 
 
 
 
 
 
 
 
13
  - monolingual
14
  - family-austronesian_batak
15
  license: mit
16
  library_name: wikilangs
17
- pipeline_tag: feature-extraction
18
  datasets:
19
  - omarkamali/wikipedia-monthly
20
  dataset_info:
@@ -26,17 +36,17 @@ metrics:
26
  value: 5.210
27
  - name: best_isotropy
28
  type: isotropy
29
- value: 0.3926
30
  - name: vocabulary_size
31
  type: vocab
32
  value: 0
33
  generated: 2026-01-03
34
  ---
35
 
36
- # BTM - Wikilangs Models
37
  ## Comprehensive Research Report & Full Ablation Study
38
 
39
- This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BTM** 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.162x | 4.17 | 0.0869% | 217,411 |
84
- | **16k** | 4.607x | 4.61 | 0.0962% | 196,367 |
85
- | **32k** | 5.005x | 5.01 | 0.1045% | 180,776 |
86
- | **64k** | 5.210x 🏆 | 5.22 | 0.1088% | 173,672 |
87
 
88
  ### Tokenization Examples
89
 
90
  Below are sample sentences tokenized with each vocabulary size:
91
 
92
- **Sample 1:** `Natal ima sada kecamatan di Kabupaten Mandailing Natal, Sumatera Utara, Indonesi...`
93
 
94
  | Vocab | Tokens | Count |
95
  |-------|--------|-------|
96
- | 8k | `▁natalimasadakecamatandikabupatenmandailingnatal , sumatera ... (+4 more)` | 14 |
97
- | 16k | `▁natal ▁ima ▁sadakecamatandikabupatenmandailingnatal , sumatera ... (+4 more)` | 14 |
98
- | 32k | `▁natal ▁ima ▁sadakecamatandikabupatenmandailingnatal , sumatera ... (+4 more)` | 14 |
99
- | 64k | `▁natal ▁ima ▁sadakecamatandikabupatenmandailingnatal , sumatera ... (+4 more)` | 14 |
100
 
101
- **Sample 2:** `Luak Kakuasoan ima luak karejo perangkat pamarentah pusat na mandalankon karejo ...`
102
 
103
  | Vocab | Tokens | Count |
104
  |-------|--------|-------|
105
- | 8k | `▁luakkakuasoan ▁ima ▁luakkarejoperangkatpamarentahpusatna ▁mandalankon ... (+9 more)` | 19 |
106
- | 16k | `▁luakkakuasoan ▁ima ▁luakkarejoperangkatpamarentahpusatnamandalankon ... (+9 more)` | 19 |
107
- | 32k | `▁luakkakuasoan ▁ima ▁luakkarejoperangkatpamarentahpusatnamandalankon ... (+9 more)` | 19 |
108
- | 64k | `▁luakkakuasoan ▁ima ▁luakkarejoperangkatpamarentahpusatnamandalankon ... (+9 more)` | 19 |
109
 
110
- **Sample 3:** `17 Juni' ima ari pa-169 (ari pa-170 i taon kabisat) i kalender Gregorian.`
111
 
112
  | Vocab | Tokens | Count |
113
  |-------|--------|-------|
114
- | 8k | `▁ 1 7juni ' ▁ima ▁ari ▁pa - 1 ... (+17 more)` | 27 |
115
- | 16k | `▁ 1 7juni ' ▁ima ▁ari ▁pa - 1 ... (+17 more)` | 27 |
116
- | 32k | `▁ 1 7juni ' ▁ima ▁ari ▁pa - 1 ... (+17 more)` | 27 |
117
- | 64k | `▁ 1 7juni ' ▁ima ▁ari ▁pa - 1 ... (+17 more)` | 27 |
118
 
119
 
120
  ### Key Findings
121
 
122
  - **Best Compression:** 64k achieves 5.210x compression
123
- - **Lowest UNK Rate:** 8k with 0.0869% 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 | 2,126 | 11.05 | 3,791 | 25.0% | 62.5% |
141
- | **2-gram** | Subword | 193 🏆 | 7.60 | 1,424 | 75.4% | 99.7% |
142
- | **3-gram** | Word | 1,572 | 10.62 | 2,726 | 28.6% | 65.6% |
143
- | **3-gram** | Subword | 1,481 | 10.53 | 9,264 | 32.5% | 79.4% |
144
- | **4-gram** | Word | 1,863 | 10.86 | 3,343 | 28.5% | 56.4% |
145
- | **4-gram** | Subword | 7,317 | 12.84 | 38,756 | 16.0% | 47.2% |
 
 
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 | `ima sada` | 613 |
154
- | 2 | `on pe` | 485 |
155
- | 3 | `na adong` | 408 |
156
- | 4 | `sian on` | 359 |
157
- | 5 | `i taon` | 350 |
158
 
159
  **3-grams (Word):**
160
 
161
  | Rank | N-gram | Count |
162
  |------|--------|-------|
163
- | 1 | `na adong i` | 259 |
164
- | 2 | `kabupaten mandailing natal` | 176 |
165
- | 3 | `i kalender gregorian` | 169 |
166
- | 4 | `ima ari pa` | 156 |
167
- | 5 | `sumatera utara indonesia` | 156 |
168
 
169
  **4-grams (Word):**
170
 
171
  | Rank | N-gram | Count |
172
  |------|--------|-------|
173
- | 1 | `provinsi sumatera utara indonesia` | 130 |
174
- | 2 | `kabupaten mandailing natal provinsi` | 127 |
175
- | 3 | `natal provinsi sumatera utara` | 126 |
176
- | 4 | `mandailing natal provinsi sumatera` | 126 |
177
- | 5 | `taon kabisat i kalender` | 125 |
 
 
 
 
 
 
 
 
 
 
178
 
179
  **2-grams (Subword):**
180
 
181
  | Rank | N-gram | Count |
182
  |------|--------|-------|
183
- | 1 | `a n` | 41,122 |
184
- | 2 | `a _` | 36,766 |
185
- | 3 | `n _` | 28,003 |
186
- | 4 | `m a` | 25,432 |
187
- | 5 | `i _` | 24,703 |
188
 
189
  **3-grams (Subword):**
190
 
191
  | Rank | N-gram | Count |
192
  |------|--------|-------|
193
- | 1 | `_ m a` | 15,316 |
194
- | 2 | `a n _` | 13,300 |
195
- | 3 | `a n g` | 11,520 |
196
- | 4 | `_ n a` | 11,505 |
197
- | 5 | `n a _` | 10,547 |
198
 
199
  **4-grams (Subword):**
200
 
201
  | Rank | N-gram | Count |
202
  |------|--------|-------|
203
- | 1 | `_ n a _` | 6,885 |
204
- | 2 | `_ m a n` | 5,972 |
205
- | 3 | `a _ m a` | 4,367 |
206
- | 4 | `i m a _` | 4,073 |
207
- | 5 | `_ i m a` | 4,072 |
 
 
 
 
 
 
 
 
 
 
208
 
209
 
210
  ### Key Findings
211
 
212
  - **Best Perplexity:** 2-gram (subword) with 193
213
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
214
- - **Coverage:** Top-1000 patterns cover ~47% 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.8051 | 1.747 | 4.52 | 26,321 | 19.5% |
231
- | **1** | Subword | 0.8855 | 1.847 | 5.45 | 845 | 11.4% |
232
- | **2** | Word | 0.2150 | 1.161 | 1.41 | 118,363 | 78.5% |
233
- | **2** | Subword | 0.7881 | 1.727 | 4.37 | 4,600 | 21.2% |
234
- | **3** | Word | 0.0511 | 1.036 | 1.07 | 165,958 | 94.9% |
235
- | **3** | Subword | 0.7696 | 1.705 | 3.50 | 20,094 | 23.0% |
236
- | **4** | Word | 0.0119 🏆 | 1.008 | 1.01 | 176,808 | 98.8% |
237
- | **4** | Subword | 0.5810 | 1.496 | 2.41 | 70,348 | 41.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. `i etika deskriptif tanpa jejak ni ibana pautan luar angkasa internasional dot filsafat tarbonggal im...`
246
- 2. `na ma tu kadiua pengantin adaboru i kota nagodangna ima kalimat frasa arab ا alif alif`
247
- 3. `ima simfoni dagdanak carito na adong i kamajuan sosial yang ditunjukkan dalam menjelaskan proses pal...`
248
 
249
  **Context Size 2:**
250
 
251
- 1. `ima sada pamikir paling ponting ison ima bagain ni alak etika 24 25 manjadi cabang ni elmu`
252
- 2. `on pe i artion ima panasehat mara boru na tobang tingon saro perancis partongaan dot pangujung abad`
253
- 3. `na adong i harana suden aon bisa di turuti dungi anggon na idalani satiop get manyuan anso`
254
 
255
  **Context Size 3:**
256
 
257
- 1. `na adong i mandailing ima ibagain jolo ni bagas on samuloi on toru sampe tu ginjang i jepang`
258
- 2. `kabupaten mandailing natal sumatera utara indonesia baru koordinat nai ima na adong tingon simatoban...`
259
- 3. `ima ari pa 105 ari pa 106 i taon kabisat i kalender gregorian dohot 361 ari sanga 362`
260
 
261
  **Context Size 4:**
262
 
263
  1. `kabupaten mandailing natal provinsi sumatera utara indonesia sumberna`
264
- 2. `natal provinsi sumatera utara indonesia huta on pe adong na ima sacara alami do on inda na ibaen bae...`
265
- 3. `mandailing natal provinsi sumatera utara indonesia i batahan`
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_hur:_ig_bumani`
275
- 2. `_i_a_0_a_u_agong`
276
- 3. `numayalleri_dusi`
277
 
278
  **Context Size 2:**
279
 
280
- 1. `ang_rovskithe_tin`
281
- 2. `a_tikabindot_puna`
282
- 3. `n_nak,_ina_dohorc`
283
 
284
  **Context Size 3:**
285
 
286
- 1. `_man_baru_najo._am`
287
- 2. `an_reicht_ditasali`
288
- 3. `ang_i_the_pada_raj`
289
 
290
  **Context Size 4:**
291
 
292
- 1. `_na_mander_gregoria`
293
- 2. `_manurutnia_iangir_`
294
- 3. `a_mang,_31_taon_ima`
295
 
296
 
297
  ### Key Findings
298
 
299
  - **Best Predictability:** Context-4 (word) with 98.8% predictability
300
  - **Branching Factor:** Decreases with context size (more deterministic)
301
- - **Memory Trade-off:** Larger contexts require more storage (70,348 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 | 11,024 |
318
- | Total Tokens | 173,772 |
319
- | Mean Frequency | 15.76 |
320
  | Median Frequency | 4 |
321
- | Frequency Std Dev | 129.04 |
322
 
323
  ### Most Common Words
324
 
325
  | Rank | Word | Frequency |
326
  |------|------|-----------|
327
- | 1 | i | 7,102 |
328
- | 2 | na | 6,996 |
329
- | 3 | ima | 3,950 |
330
- | 4 | on | 3,907 |
331
- | 5 | dohot | 2,932 |
332
- | 6 | ni | 2,627 |
333
- | 7 | dot | 2,463 |
334
- | 8 | sada | 1,805 |
335
- | 9 | tu | 1,679 |
336
- | 10 | ma | 1,474 |
337
 
338
  ### Least Common Words (from vocabulary)
339
 
340
  | Rank | Word | Frequency |
341
  |------|------|-----------|
342
- | 1 | harvard | 2 |
343
- | 2 | syahadat | 2 |
344
- | 3 | dans | 2 |
345
- | 4 | philosophie | 2 |
346
- | 5 | évasion | 2 |
347
- | 6 | bénézé | 2 |
348
- | 7 | infini | 2 |
349
- | 8 | delà | 2 |
350
- | 9 | telos | 2 |
351
- | 10 | apganistan | 2 |
352
 
353
  ### Zipf's Law Analysis
354
 
355
  | Metric | Value |
356
  |--------|-------|
357
- | Zipf Coefficient | 1.0692 |
358
- | R² (Goodness of Fit) | 0.988968 |
359
  | Adherence Quality | **excellent** |
360
 
361
  ### Coverage Analysis
362
 
363
  | Top N Words | Coverage |
364
  |-------------|----------|
365
- | Top 100 | 41.7% |
366
  | Top 1,000 | 71.1% |
367
- | Top 5,000 | 91.5% |
368
- | Top 10,000 | 98.8% |
369
 
370
  ### Key Findings
371
 
372
- - **Zipf Compliance:** R²=0.9890 indicates excellent adherence to Zipf's law
373
- - **High Frequency Dominance:** Top 100 words cover 41.7% of corpus
374
- - **Long Tail:** 1,024 words needed for remaining 1.2% 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.3926 🏆 | 0.4276 | N/A | N/A |
398
- | **mono_64d** | 64 | 0.1169 | 0.4242 | N/A | N/A |
399
- | **mono_128d** | 128 | 0.0230 | 0.4239 | N/A | N/A |
 
 
 
400
 
401
  ### Key Findings
402
 
403
- - **Best Isotropy:** mono_32d with 0.3926 (more uniform distribution)
404
- - **Semantic Density:** Average pairwise similarity of 0.4252. 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,25 +461,23 @@ These are the most productive prefixes and suffixes identified by sampling the v
426
  #### Productive Prefixes
427
  | Prefix | Examples |
428
  |--------|----------|
429
- | `-ma` | marmangan, manjadion, manembak |
430
- | `-pa` | palo, pasiap, panyalahgunaan |
431
- | `-man` | manjadion, manembak, mangargai |
432
- | `-mar` | marmangan, mardikir, markombang |
433
- | `-sa` | salama, samo, sasabagas |
434
- | `-ta` | tagalog, tas, targinjang |
435
- | `-ka` | karang, kadua, kamis |
436
 
437
  #### Productive Suffixes
438
  | Suffix | Examples |
439
  |--------|----------|
440
- | `-n` | asisten, tolongan, proclamation |
441
- | `-an` | tolongan, panyalahgunaan, marmangan |
442
- | `-a` | tionghua, natarida, moskwa |
443
- | `-ng` | karang, gedung, targinjang |
444
- | `-on` | proclamation, idasorkon, manjadion |
445
- | `-na` | pascasarjana, nalainna, paduana |
446
- | `-ang` | karang, targinjang, uwang |
447
- | `-kon` | idasorkon, ilaporkon, namangobankon |
448
 
449
  ### 6.3 Bound Stems (Lexical Roots)
450
 
@@ -452,18 +485,18 @@ Bound stems are high-frequency subword units that are semantically cohesive but
452
 
453
  | Stem | Cohesion | Substitutability | Examples |
454
  |------|----------|------------------|----------|
455
- | `anga` | 1.50x | 76 contexts | nanga, angan, sanga |
456
- | `angk` | 1.52x | 58 contexts | angke, angka, angko |
457
- | `mang` | 1.68x | 31 contexts | amang, mango, tamang |
458
- | `anda` | 1.40x | 53 contexts | tanda, banda, ganda |
459
- | `dang` | 1.48x | 41 contexts | udang, undang, sedang |
460
- | `amba` | 1.48x | 39 contexts | hamba, tamba, gambar |
461
- | `aran` | 1.38x | 47 contexts | arani, arang, arana |
462
- | `ngka` | 1.41x | 39 contexts | angka, dangka, angkat |
463
- | `ngan` | 1.32x | 43 contexts | angan, tangan, lengan |
464
- | `anja` | 1.38x | 33 contexts | hanja, banjar, anjadi |
465
- | `angg` | 1.31x | 39 contexts | anggi, anggo, anggap |
466
- | `tang` | 1.35x | 29 contexts | utang, otang, tangan |
467
 
468
  ### 6.4 Affix Compatibility (Co-occurrence)
469
 
@@ -471,16 +504,16 @@ This table shows which prefixes and suffixes most frequently co-occur on the sam
471
 
472
  | Prefix | Suffix | Frequency | Examples |
473
  |--------|--------|-----------|----------|
474
- | `-pa` | `-n` | 297 words | parsiajaran, paridian |
475
- | `-pa` | `-an` | 266 words | parsiajaran, paridian |
476
- | `-ma` | `-n` | 232 words | malainkon, malahirkon |
477
- | `-ma` | `-on` | 148 words | malainkon, malahirkon |
478
- | `-ka` | `-n` | 111 words | kabupaten, kahangatan |
479
- | `-ka` | `-an` | 108 words | kahangatan, kapastian |
480
- | `-ma` | `-kon` | 96 words | malainkon, malahirkon |
481
- | `-ma` | `-a` | 96 words | marga, maninggalnaia |
482
- | `-ma` | `-ng` | 67 words | markombang, margelombang |
483
- | `-ma` | `-an` | 60 words | marsegaan, masakan |
484
 
485
  ### 6.5 Recursive Morpheme Segmentation
486
 
@@ -488,26 +521,28 @@ Using **Recursive Hierarchical Substitutability**, we decompose complex words in
488
 
489
  | Word | Suggested Split | Confidence | Stem |
490
  |------|-----------------|------------|------|
491
- | markalanjutan | **`mar-ka-lanjut-an`** | 7.5 | `lanjut` |
492
- | malambangkon | **`ma-lamb-ang-kon`** | 7.5 | `lamb` |
493
- | kabolakangan | **`ka-bolak-ang-an`** | 7.5 | `bolak` |
494
- | kamanusiaan | **`ka-man-usia-an`** | 7.5 | `usia` |
495
- | kakuasoanna | **`ka-kuaso-an-na`** | 7.5 | `kuaso` |
496
- | markabangsoan | **`mar-ka-bangso-an`** | 7.5 | `bangso` |
497
- | sakaturunan | **`sa-ka-turun-an`** | 7.5 | `turun` |
498
- | pamabangan | **`pa-ma-bang-an`** | 7.5 | `bang` |
499
  | paporangan | **`pa-pora-ng-an`** | 7.5 | `pora` |
500
- | kaputusan | **`ka-putus-an`** | 6.0 | `putus` |
501
- | martibalna | **`mar-tibal-na`** | 6.0 | `tibal` |
502
- | mandapatkon | **`man-dapat-kon`** | 6.0 | `dapat` |
503
- | kaseharian | **`ka-sehari-an`** | 6.0 | `sehari` |
504
- | malahirkon | **`ma-lahir-kon`** | 6.0 | `lahir` |
505
- | kayakinan | **`ka-yakin-an`** | 6.0 | `yakin` |
 
 
 
 
 
 
 
 
506
 
507
  ### 6.6 Linguistic Interpretation
508
 
509
  > **Automated Insight:**
510
- The language BTM 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.
 
 
511
 
512
  ---
513
  ## 7. Summary & Recommendations
@@ -734,4 +769,4 @@ MIT License - Free for academic and commercial use.
734
  ---
735
  *Generated by Wikilangs Models Pipeline*
736
 
737
- *Report Date: 2026-01-03 08:51:39*
 
1
  ---
2
  language: btm
3
+ language_name: Batak Mandailing
4
  language_family: austronesian_batak
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_batak
25
  license: mit
26
  library_name: wikilangs
27
+ pipeline_tag: text-generation
28
  datasets:
29
  - omarkamali/wikipedia-monthly
30
  dataset_info:
 
36
  value: 5.210
37
  - name: best_isotropy
38
  type: isotropy
39
+ value: 0.4518
40
  - name: vocabulary_size
41
  type: vocab
42
  value: 0
43
  generated: 2026-01-03
44
  ---
45
 
46
+ # Batak Mandailing - Wikilangs Models
47
  ## Comprehensive Research Report & Full Ablation Study
48
 
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Batak Mandailing** 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.164x | 4.17 | 0.0881% | 216,736 |
94
+ | **16k** | 4.609x | 4.61 | 0.0975% | 195,810 |
95
+ | **32k** | 5.005x | 5.01 | 0.1059% | 180,321 |
96
+ | **64k** | 5.210x 🏆 | 5.22 | 0.1103% | 173,224 |
97
 
98
  ### Tokenization Examples
99
 
100
  Below are sample sentences tokenized with each vocabulary size:
101
 
102
+ **Sample 1:** `Kumpulan Setia ima sala sada huta na adong i kecamatan Huta Bargot, kabupaten Ma...`
103
 
104
  | Vocab | Tokens | Count |
105
  |-------|--------|-------|
106
+ | 8k | `▁kumpulanset ia imasalasadahutanaadongi ... (+14 more)` | 24 |
107
+ | 16k | `▁kumpulansetia ▁ima ▁salasadahutanaadongikecamatan ... (+13 more)` | 23 |
108
+ | 32k | `▁kumpulansetia ▁ima ▁salasadahutanaadongikecamatan ... (+13 more)` | 23 |
109
+ | 64k | `▁kumpulansetia ▁ima ▁salasadahutanaadongikecamatan ... (+13 more)` | 23 |
110
 
111
+ **Sample 2:** `Muara Soma ima sala sada huta na ading i kecamatan Batang Natal, kabupaten Manda...`
112
 
113
  | Vocab | Tokens | Count |
114
  |-------|--------|-------|
115
+ | 8k | `▁muaraso ma ▁ima ▁salasadahutanaadingi ... (+14 more)` | 24 |
116
+ | 16k | `▁muarasoma ▁ima ▁salasadahutanaadingikecamatan ... (+13 more)` | 23 |
117
+ | 32k | `▁muarasoma ▁ima ▁salasadahutanaadingikecamatan ... (+13 more)` | 23 |
118
+ | 64k | `▁muarasoma ▁ima ▁salasadahutanaadingikecamatan ... (+13 more)` | 23 |
119
 
120
+ **Sample 3:** `24 Januari ima ari pa-24 i kalender Gregorian dohot 361 ari (sanga 362 ari i tao...`
121
 
122
  | Vocab | Tokens | Count |
123
  |-------|--------|-------|
124
+ | 8k | `▁ 2 4januari ▁ima ▁ari ▁pa - 2 4 ... (+24 more)` | 34 |
125
+ | 16k | `▁ 2 4januari ▁ima ▁ari ▁pa - 2 4 ... (+24 more)` | 34 |
126
+ | 32k | `▁ 2 4januari ▁ima ▁ari ▁pa - 2 4 ... (+24 more)` | 34 |
127
+ | 64k | `▁ 2 4januari ▁ima ▁ari ▁pa - 2 4 ... (+24 more)` | 34 |
128
 
129
 
130
  ### Key Findings
131
 
132
  - **Best Compression:** 64k achieves 5.210x compression
133
+ - **Lowest UNK Rate:** 8k with 0.0881% 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 | 2,149 | 11.07 | 3,846 | 24.9% | 62.3% |
151
+ | **2-gram** | Subword | 193 🏆 | 7.59 | 1,424 | 75.5% | 99.7% |
152
+ | **3-gram** | Word | 1,623 | 10.66 | 2,810 | 28.2% | 64.8% |
153
+ | **3-gram** | Subword | 1,481 | 10.53 | 9,326 | 32.5% | 79.4% |
154
+ | **4-gram** | Word | 1,998 | 10.96 | 3,539 | 27.5% | 54.8% |
155
+ | **4-gram** | Subword | 7,322 | 12.84 | 39,044 | 16.0% | 47.2% |
156
+ | **5-gram** | Word | 980 | 9.94 | 1,944 | 37.4% | 71.2% |
157
+ | **5-gram** | Subword | 20,669 | 14.34 | 80,096 | 9.7% | 30.8% |
158
 
159
  ### Top 5 N-grams by Size
160
 
 
162
 
163
  | Rank | N-gram | Count |
164
  |------|--------|-------|
165
+ | 1 | `ima sada` | 626 |
166
+ | 2 | `on pe` | 512 |
167
+ | 3 | `na adong` | 416 |
168
+ | 4 | `sian on` | 373 |
169
+ | 5 | `i taon` | 359 |
170
 
171
  **3-grams (Word):**
172
 
173
  | Rank | N-gram | Count |
174
  |------|--------|-------|
175
+ | 1 | `na adong i` | 265 |
176
+ | 2 | `kabupaten mandailing natal` | 178 |
177
+ | 3 | `i kalender gregorian` | 170 |
178
+ | 4 | `sumatera utara indonesia` | 160 |
179
+ | 5 | `ima ari pa` | 157 |
180
 
181
  **4-grams (Word):**
182
 
183
  | Rank | N-gram | Count |
184
  |------|--------|-------|
185
+ | 1 | `provinsi sumatera utara indonesia` | 133 |
186
+ | 2 | `kabupaten mandailing natal provinsi` | 130 |
187
+ | 3 | `mandailing natal provinsi sumatera` | 129 |
188
+ | 4 | `natal provinsi sumatera utara` | 129 |
189
+ | 5 | `taon kabisat i kalender` | 126 |
190
+
191
+ **5-grams (Word):**
192
+
193
+ | Rank | N-gram | Count |
194
+ |------|--------|-------|
195
+ | 1 | `kabupaten mandailing natal provinsi sumatera` | 129 |
196
+ | 2 | `mandailing natal provinsi sumatera utara` | 129 |
197
+ | 3 | `natal provinsi sumatera utara indonesia` | 128 |
198
+ | 4 | `taon kabisat i kalender gregorian` | 126 |
199
+ | 5 | `huta na adong i kecamatan` | 112 |
200
 
201
  **2-grams (Subword):**
202
 
203
  | Rank | N-gram | Count |
204
  |------|--------|-------|
205
+ | 1 | `a n` | 41,734 |
206
+ | 2 | `a _` | 37,272 |
207
+ | 3 | `n _` | 28,447 |
208
+ | 4 | `m a` | 25,826 |
209
+ | 5 | `i _` | 25,144 |
210
 
211
  **3-grams (Subword):**
212
 
213
  | Rank | N-gram | Count |
214
  |------|--------|-------|
215
+ | 1 | `_ m a` | 15,579 |
216
+ | 2 | `a n _` | 13,475 |
217
+ | 3 | `_ n a` | 11,682 |
218
+ | 4 | `a n g` | 11,673 |
219
+ | 5 | `n a _` | 10,767 |
220
 
221
  **4-grams (Subword):**
222
 
223
  | Rank | N-gram | Count |
224
  |------|--------|-------|
225
+ | 1 | `_ n a _` | 7,012 |
226
+ | 2 | `_ m a n` | 6,102 |
227
+ | 3 | `a _ m a` | 4,445 |
228
+ | 4 | `_ i m a` | 4,125 |
229
+ | 5 | `i m a _` | 4,121 |
230
+
231
+ **5-grams (Subword):**
232
+
233
+ | Rank | N-gram | Count |
234
+ |------|--------|-------|
235
+ | 1 | `_ i m a _` | 3,948 |
236
+ | 2 | `d o h o t` | 3,004 |
237
+ | 3 | `o h o t _` | 3,001 |
238
+ | 4 | `_ d o h o` | 2,997 |
239
+ | 5 | `_ d o t _` | 2,471 |
240
 
241
 
242
  ### Key Findings
243
 
244
  - **Best Perplexity:** 2-gram (subword) with 193
245
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
246
+ - **Coverage:** Top-1000 patterns cover ~31% 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.8033 | 1.745 | 4.52 | 26,637 | 19.7% |
263
+ | **1** | Subword | 0.8859 | 1.848 | 5.46 | 845 | 11.4% |
264
+ | **2** | Word | 0.2155 | 1.161 | 1.41 | 119,766 | 78.4% |
265
+ | **2** | Subword | 0.7876 | 1.726 | 4.38 | 4,613 | 21.2% |
266
+ | **3** | Word | 0.0517 | 1.037 | 1.07 | 168,163 | 94.8% |
267
+ | **3** | Subword | 0.7693 | 1.704 | 3.51 | 20,191 | 23.1% |
268
+ | **4** | Word | 0.0122 🏆 | 1.008 | 1.02 | 179,311 | 98.8% |
269
+ | **4** | Subword | 0.5814 | 1.496 | 2.41 | 70,850 | 41.9% |
270
 
271
  ### Generated Text Samples (Word-based)
272
 
 
274
 
275
  **Context Size 1:**
276
 
277
+ 1. `i kota di kotu isa rupana kahanggi namar sisolkot ni eme ni awak dot mamakena pala`
278
+ 2. `na mandung manjadi aliran eksistensialisme sartre ima al qur an sm 180 an sm 70 an`
279
+ 3. `ima sada provinsi sumatera utara aek sasataon rodang momo tarida do anggina si baroar dibaon na`
280
 
281
  **Context Size 2:**
282
 
283
+ 1. `ima sada sunni mazhab hanafi vasilij vladimirovič bartold art by barbara brend p 130 tai ulama na`
284
+ 2. `on pe mandung dewasa pakean nai gunaon pakean adat belitong tai i instrospeksi eksperimental sudena ...`
285
+ 3. `na adong juo alak sunni dot 10 huruf ngolu vokal sapetona hangeul adongdope 3 konsonannai dot 1`
286
 
287
  **Context Size 3:**
288
 
289
+ 1. `na adong i ruang woktu i sakitar lubang nalomlom adong parmukoan na i dokon horizon peristiwa objek ...`
290
+ 2. `kabupaten mandailing natal provinsi sumatera utara indonesia i botung adong luak parmayaman na deges...`
291
+ 3. `ima ari pa 103 ari pa 104 i taon kabisat i kalender gregorian dohot 363 ari sanga 364`
292
 
293
  **Context Size 4:**
294
 
295
  1. `kabupaten mandailing natal provinsi sumatera utara indonesia sumberna`
296
+ 2. `natal provinsi sumatera utara indonesia pula sian on panyabungan tu kecamatan on`
297
+ 3. `mandailing natal provinsi sumatera utara indonesia sumberna`
298
 
299
 
300
  ### Generated Text Samples (Subword-based)
 
303
 
304
  **Context Size 1:**
305
 
306
+ 1. `alan_a_rian_ruse`
307
+ 2. `_ana_ontuon._tan`
308
+ 3. `nang_akeon_asapa`
309
 
310
  **Context Size 2:**
311
 
312
+ 1. `an_niviusi,_hamel`
313
+ 2. `a_ida_lak_nai_jun`
314
+ 3. `n_sentat_dokon_ng`
315
 
316
  **Context Size 3:**
317
 
318
+ 1. `_mambaen_dohot_par`
319
+ 2. `an_ibad_oktu_piga_`
320
+ 3. `_nagoda_marcoundur`
321
 
322
  **Context Size 4:**
323
 
324
+ 1. `_na_ibaen_herito_la`
325
+ 2. `_manjadi_i_ruar_tu_`
326
+ 3. `a_marisi.dw:_menek_`
327
 
328
 
329
  ### Key Findings
330
 
331
  - **Best Predictability:** Context-4 (word) with 98.8% predictability
332
  - **Branching Factor:** Decreases with context size (more deterministic)
333
+ - **Memory Trade-off:** Larger contexts require more storage (70,850 contexts)
334
  - **Recommendation:** Context-3 or Context-4 for text generation
335
 
336
  ---
 
346
 
347
  | Metric | Value |
348
  |--------|-------|
349
+ | Vocabulary Size | 11,148 |
350
+ | Total Tokens | 176,428 |
351
+ | Mean Frequency | 15.83 |
352
  | Median Frequency | 4 |
353
+ | Frequency Std Dev | 130.57 |
354
 
355
  ### Most Common Words
356
 
357
  | Rank | Word | Frequency |
358
  |------|------|-----------|
359
+ | 1 | i | 7,229 |
360
+ | 2 | na | 7,125 |
361
+ | 3 | on | 3,997 |
362
+ | 4 | ima | 3,996 |
363
+ | 5 | dohot | 2,990 |
364
+ | 6 | ni | 2,685 |
365
+ | 7 | dot | 2,484 |
366
+ | 8 | sada | 1,834 |
367
+ | 9 | tu | 1,711 |
368
+ | 10 | ma | 1,485 |
369
 
370
  ### Least Common Words (from vocabulary)
371
 
372
  | Rank | Word | Frequency |
373
  |------|------|-----------|
374
+ | 1 | lil | 2 |
375
+ | 2 | imah | 2 |
376
+ | 3 | nasida | 2 |
377
+ | 4 | sunusi | 2 |
378
+ | 5 | nunga | 2 |
379
+ | 6 | majmu | 2 |
380
+ | 7 | fatawa | 2 |
381
+ | 8 | fiqhi | 2 |
382
+ | 9 | panjalakian | 2 |
383
+ | 10 | martoba | 2 |
384
 
385
  ### Zipf's Law Analysis
386
 
387
  | Metric | Value |
388
  |--------|-------|
389
+ | Zipf Coefficient | 1.0705 |
390
+ | R² (Goodness of Fit) | 0.989075 |
391
  | Adherence Quality | **excellent** |
392
 
393
  ### Coverage Analysis
394
 
395
  | Top N Words | Coverage |
396
  |-------------|----------|
397
+ | Top 100 | 41.8% |
398
  | Top 1,000 | 71.1% |
399
+ | Top 5,000 | 91.4% |
400
+ | Top 10,000 | 98.7% |
401
 
402
  ### Key Findings
403
 
404
+ - **Zipf Compliance:** R²=0.9891 indicates excellent adherence to Zipf's law
405
+ - **High Frequency Dominance:** Top 100 words cover 41.8% of corpus
406
+ - **Long Tail:** 1,148 words needed for remaining 1.3% 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.4518 🏆 | 0.4274 | N/A | N/A |
432
+ | **mono_64d** | 64 | 0.1211 | 0.4252 | N/A | N/A |
433
+ | **mono_128d** | 128 | 0.0249 | 0.4089 | N/A | N/A |
434
+ | **aligned_32d** | 32 | 0.4518 | 0.4145 | 0.0140 | 0.1240 |
435
+ | **aligned_64d** | 64 | 0.1211 | 0.4363 | 0.0200 | 0.1760 |
436
+ | **aligned_128d** | 128 | 0.0249 | 0.4097 | 0.0540 | 0.2300 |
437
 
438
  ### Key Findings
439
 
440
+ - **Best Isotropy:** mono_32d with 0.4518 (more uniform distribution)
441
+ - **Semantic Density:** Average pairwise similarity of 0.4203. Lower values indicate better semantic separation.
442
+ - **Alignment Quality:** Aligned models achieve up to 5.4% R@1 in cross-lingual retrieval.
443
  - **Recommendation:** 128d aligned for best cross-lingual performance
444
 
445
  ---
446
  ## 6. Morphological Analysis (Experimental)
447
 
 
 
448
  This section presents an automated morphological analysis derived from the statistical divergence between word-level and subword-level models. By analyzing where subword predictability spikes and where word-level coverage fails, we can infer linguistic structures without supervised data.
449
 
450
  ### 6.1 Productivity & Complexity
451
 
452
  | Metric | Value | Interpretation | Recommendation |
453
  |--------|-------|----------------|----------------|
454
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
455
+ | Idiomaticity Gap | **1.311** | High formulaic/idiomatic content | - |
456
 
457
  ### 6.2 Affix Inventory (Productive Units)
458
 
 
461
  #### Productive Prefixes
462
  | Prefix | Examples |
463
  |--------|----------|
464
+ | `-ma` | marmasak, mamuloi, maligina |
465
+ | `-pa` | paderi, parkumpulan, pangajaran |
466
+ | `-man` | manakik, manyorang, mangajari |
467
+ | `-mar` | marmasak, marwujud, mariner |
468
+ | `-sa` | samananjung, sati, sakral |
469
+ | `-ta` | tarpusat, takar, tajikistan |
 
470
 
471
  #### Productive Suffixes
472
  | Suffix | Examples |
473
  |--------|----------|
474
+ | `-n` | tubagasan, ringkasan, disusun |
475
+ | `-a` | nikola, studia, katua |
476
+ | `-an` | tubagasan, ringkasan, parkumpulan |
477
+ | `-ng` | samananjung, pedagang, kacang |
478
+ | `-on` | bandingkon, dibandingkon, pelestarion |
479
+ | `-na` | maligina, umurna, ajayaanna |
480
+ | `-ang` | pedagang, kacang, sumbayang |
 
481
 
482
  ### 6.3 Bound Stems (Lexical Roots)
483
 
 
485
 
486
  | Stem | Cohesion | Substitutability | Examples |
487
  |------|----------|------------------|----------|
488
+ | `anga` | 1.46x | 77 contexts | nanga, angan, sanga |
489
+ | `angk` | 1.47x | 58 contexts | angko, angke, angka |
490
+ | `anda` | 1.43x | 54 contexts | ganda, tanda, banda |
491
+ | `mang` | 1.59x | 31 contexts | mango, amang, lomang |
492
+ | `amba` | 1.49x | 39 contexts | hamba, tamba, sambal |
493
+ | `ngan` | 1.40x | 43 contexts | angan, lengan, sangan |
494
+ | `dang` | 1.40x | 42 contexts | udang, ndang, dangka |
495
+ | `aran` | 1.35x | 48 contexts | arana, arang, saran |
496
+ | `angg` | 1.32x | 39 contexts | anggi, anggo, nangge |
497
+ | `anja` | 1.36x | 34 contexts | hanja, banjar, anjadi |
498
+ | `ngga` | 1.37x | 30 contexts | hingga, rongga, mangga |
499
+ | `ting` | 1.34x | 32 contexts | tingo, uting, tingon |
500
 
501
  ### 6.4 Affix Compatibility (Co-occurrence)
502
 
 
504
 
505
  | Prefix | Suffix | Frequency | Examples |
506
  |--------|--------|-----------|----------|
507
+ | `-pa` | `-n` | 307 words | panjalakan, pambaenan |
508
+ | `-pa` | `-an` | 271 words | panjalakan, pambaenan |
509
+ | `-ma` | `-n` | 241 words | mangombangkon, maximilian |
510
+ | `-ma` | `-on` | 157 words | mangombangkon, manyesuaion |
511
+ | `-ma` | `-a` | 98 words | maringana, manurutnia |
512
+ | `-ma` | `-ng` | 69 words | malang, marancang |
513
+ | `-ma` | `-an` | 61 words | maximilian, marhalangan |
514
+ | `-pa` | `-a` | 57 words | pasca, pasadana |
515
+ | `-sa` | `-a` | 40 words | samentara, sangapiga |
516
+ | `-ma` | `-ang` | 38 words | malang, marancang |
517
 
518
  ### 6.5 Recursive Morpheme Segmentation
519
 
 
521
 
522
  | Word | Suggested Split | Confidence | Stem |
523
  |------|-----------------|------------|------|
 
 
 
 
 
 
 
 
524
  | paporangan | **`pa-pora-ng-an`** | 7.5 | `pora` |
525
+ | marpandangan | **`mar-pa-ndang-an`** | 7.5 | `ndang` |
526
+ | bagasanna | **`bagas-an-na`** | 6.0 | `bagas` |
527
+ | pasabolas | **`pa-sa-bolas`** | 6.0 | `bolas` |
528
+ | mandurung | **`man-duru-ng`** | 6.0 | `duru` |
529
+ | sasabagas | **`sa-sa-bagas`** | 6.0 | `bagas` |
530
+ | sabalikna | **`sa-balik-na`** | 6.0 | `balik` |
531
+ | marlainan | **`mar-lain-an`** | 6.0 | `lain` |
532
+ | panilaian | **`pa-nilai-an`** | 6.0 | `nilai` |
533
+ | mardongan | **`mar-dong-an`** | 6.0 | `dong` |
534
+ | margontian | **`mar-gonti-an`** | 6.0 | `gonti` |
535
+ | mandefinision | **`man-definisi-on`** | 6.0 | `definisi` |
536
+ | pemerintahan | **`pemerintah-an`** | 4.5 | `pemerintah` |
537
+ | margandak | **`mar-gandak`** | 4.5 | `gandak` |
538
+ | habitatna | **`habitat-na`** | 4.5 | `habitat` |
539
 
540
  ### 6.6 Linguistic Interpretation
541
 
542
  > **Automated Insight:**
543
+ The language Batak Mandailing shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
544
+
545
+ > **Note on Idiomaticity:** The high Idiomaticity Gap suggests a large number of frequent multi-word expressions or formulaic sequences that are statistically distinct from their component parts.
546
 
547
  ---
548
  ## 7. Summary & Recommendations
 
769
  ---
770
  *Generated by Wikilangs Models Pipeline*
771
 
772
+ *Report Date: 2026-01-03 19:44:07*
models/embeddings/aligned/btm_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7e3fef86fa21d06d0ce4b31e1fa7d94c30d5ae1821449e0030b3ff6872dc30b
3
+ size 1028713761
models/embeddings/aligned/btm_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "btm", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/btm_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06d6fdcb59ad3528d2f3dad8b44ad23ecaaca8606a93fbc996126606d739ec9d
3
+ size 65664
models/embeddings/aligned/btm_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "btm",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1376,
7
+ "vocab_size": 4531
8
+ }
models/embeddings/aligned/btm_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f3c3ec079508e79445feac4bc2fcddf0e842bf5419162533c21370ee7149a46
3
+ size 257233953
models/embeddings/aligned/btm_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "btm", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/btm_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3c44b4bec5ed198762493c46960bd6b7a54fc97208b663f55266513562c9995
3
+ size 4224
models/embeddings/aligned/btm_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "btm",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1376,
7
+ "vocab_size": 4531
8
+ }
models/embeddings/aligned/btm_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc52d868e9411740247d4dd6f170e2856ac55de2677659f501a05727c06ce113
3
+ size 514393889
models/embeddings/aligned/btm_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "btm", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/btm_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c4628ab8e46fcb3dd663797d8a49949b168e697caa63f8542c4d151c0bcab06
3
+ size 16512
models/embeddings/aligned/btm_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "btm",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1376,
7
+ "vocab_size": 4531
8
+ }
models/embeddings/monolingual/btm_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:eab8193f169ed951260bc5e2a8335421cc96bdc9afa7a4fbc2e5f19107d9f18c
3
- size 1028667993
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7e3fef86fa21d06d0ce4b31e1fa7d94c30d5ae1821449e0030b3ff6872dc30b
3
+ size 1028713761
models/embeddings/monolingual/btm_128d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
- "vocab_size": 4487
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
+ "vocab_size": 4531
15
  }
models/embeddings/monolingual/btm_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c0f87796e30b250180cd4e0a21e5c53df57dbf3ac48c6ece59a24ce9ea2a2f9
3
- size 257221977
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f3c3ec079508e79445feac4bc2fcddf0e842bf5419162533c21370ee7149a46
3
+ size 257233953
models/embeddings/monolingual/btm_32d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
- "vocab_size": 4487
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
+ "vocab_size": 4531
15
  }
models/embeddings/monolingual/btm_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:06a10d115cb9f5acc6300b8c1370ad70ca5bbbf741198c826bb6b2380bd77f72
3
- size 514370649
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc52d868e9411740247d4dd6f170e2856ac55de2677659f501a05727c06ce113
3
+ size 514393889
models/embeddings/monolingual/btm_64d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
- "vocab_size": 4487
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
+ "vocab_size": 4531
15
  }
models/subword_markov/btm_markov_ctx1_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4a5a6ceefeddffa92ade2020283b0670a56c9de4e981d4c37d567af5d7edf00c
3
- size 40549
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ca0b5561b51295ee9176d57fc0e034e7a9025e7d704682ec8b1c69163c201ca
3
+ size 40526
models/subword_markov/btm_markov_ctx1_subword_metadata.json CHANGED
@@ -3,5 +3,5 @@
3
  "variant": "subword",
4
  "language": "btm",
5
  "unique_contexts": 845,
6
- "total_transitions": 1194771
7
  }
 
3
  "variant": "subword",
4
  "language": "btm",
5
  "unique_contexts": 845,
6
+ "total_transitions": 1212124
7
  }
models/subword_markov/btm_markov_ctx2_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f8e63c72b397369614152fea75601c14782ddf5f412d72b019eb11cd857384b5
3
- size 173900
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a41892dc03807b9211991f8cbd56b67ea22d11eca3fbb7a1fb84a184dfdbd050
3
+ size 174290
models/subword_markov/btm_markov_ctx2_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "btm",
5
- "unique_contexts": 4600,
6
- "total_transitions": 1193471
7
  }
 
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "btm",
5
+ "unique_contexts": 4613,
6
+ "total_transitions": 1210807
7
  }
models/subword_markov/btm_markov_ctx3_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b7597ab768a07a1247aa2becf4d6d80afbba74e537d60f41be994856978e37bc
3
- size 548580
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3548eb74171bd17f30e9b9daed8167a9366cbfaf6040d4b9856fe5adfe305353
3
+ size 554127
models/subword_markov/btm_markov_ctx3_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "btm",
5
- "unique_contexts": 20094,
6
- "total_transitions": 1192171
7
  }
 
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "btm",
5
+ "unique_contexts": 20191,
6
+ "total_transitions": 1209490
7
  }
models/subword_markov/btm_markov_ctx4_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4520c606c01af7c8dd7bdc888cc9cc1db3d4aa76abe56123d646a75bf737e6d
3
- size 1327069
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc7cda5e3c90773acfe7a97989454135215708f07d6d99bf279499d5ee0cab02
3
+ size 1338222
models/subword_markov/btm_markov_ctx4_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "btm",
5
- "unique_contexts": 70348,
6
- "total_transitions": 1190871
7
  }
 
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "btm",
5
+ "unique_contexts": 70850,
6
+ "total_transitions": 1208173
7
  }
models/subword_ngram/btm_2gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2df596ff923d644e93e8a0534100541ef70c30a47243fc6d946a28b41b0b391f
3
- size 19810
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0fdd1191205a4def7e66cf30101a732f47b5dac125c03d75624e856c019c312
3
+ size 19955
models/subword_ngram/btm_2gram_subword_metadata.json CHANGED
@@ -3,5 +3,5 @@
3
  "variant": "subword",
4
  "language": "btm",
5
  "unique_ngrams": 1424,
6
- "total_ngrams": 1194771
7
  }
 
3
  "variant": "subword",
4
  "language": "btm",
5
  "unique_ngrams": 1424,
6
+ "total_ngrams": 1212124
7
  }
models/subword_ngram/btm_3gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c67b8a177fdee1d2cae2461ece233e72cc6271f2ec127adb17efbab362cb96f
3
- size 106854
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a1a537d3cc81d4e143b205d0e87fbd2fdd549393281217db048fc77e59892d0
3
+ size 107259
models/subword_ngram/btm_3gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "btm",
5
- "unique_ngrams": 9264,
6
- "total_ngrams": 1193471
7
  }
 
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "btm",
5
+ "unique_ngrams": 9326,
6
+ "total_ngrams": 1210807
7
  }
models/subword_ngram/btm_4gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:685a19fd481b30cfe583384638a09926eca754668b4379cc350384ca3d6ec64d
3
- size 469711
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80779bbebe1289cb03ff754cced84699a85f992607839a4d892da17b75f17e57
3
+ size 475626
models/subword_ngram/btm_4gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "btm",
5
- "unique_ngrams": 38756,
6
- "total_ngrams": 1192171
7
  }
 
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "btm",
5
+ "unique_ngrams": 39044,
6
+ "total_ngrams": 1209490
7
  }
models/subword_ngram/btm_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:639a83c77f836f4b29fd645fc41318b2d1ea5d6c7226276f867be054f14e6bbe
3
+ size 937142
models/subword_ngram/btm_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "btm",
5
+ "unique_ngrams": 80096,
6
+ "total_ngrams": 1208173
7
+ }
models/tokenizer/btm_tokenizer_16k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c56b4bf3a440a54cda19a21cb12647b4eda168f5ed41c73de87c5dab1bb403c
3
- size 504094
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e461e5ef3a1cc4c62b47db593915a7f606a17f2e1f1327e3fce0974e4fb5226f
3
+ size 504243
models/tokenizer/btm_tokenizer_16k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/btm_tokenizer_32k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f9e24ab010b800e8b37dbe7ba7c3683db68cd1f831fc7c1773820eddf148959
3
- size 792383
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e66cabc6e1fdba0f68828481107910af32adda8afad30aed4f5608a81fb4a97b
3
+ size 792574
models/tokenizer/btm_tokenizer_32k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/btm_tokenizer_64k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e66c10c510f5dcaba827e3e9710ee5e2bf9168b1de095a4d7f971bdd4106bdae
3
- size 1307068
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03a65a40f671f902121336bf18af8dbea088e84ffb9b86f2a163be3f189d9fac
3
+ size 1307737
models/tokenizer/btm_tokenizer_64k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/btm_tokenizer_8k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d9a7e75986934266a99f2c51f3d64b3ab75a0c504b45e45c89b6718cdc0aa876
3
- size 372323
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eef49f14a8d30d9a231e33e3b610ca71c7e55b5b5c49383865879ce21bca5462
3
+ size 372365
models/tokenizer/btm_tokenizer_8k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/btm_vocabulary.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbd9b813ffcb4592d15089be87b44c35ccb530113e5f1cdc05f8deb485295f2d
3
- size 177391
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89d8c3b3f96ce2dfaed27e33f252f3bb19087fa67c088e6a39840417eb43b019
3
+ size 179833
models/vocabulary/btm_vocabulary_metadata.json CHANGED
@@ -1,17 +1,17 @@
1
  {
2
  "language": "btm",
3
- "vocabulary_size": 11024,
4
  "variant": "full",
5
  "statistics": {
6
- "type_token_ratio": 0.1393775944581053,
7
  "coverage": {
8
- "top_100": 0.3835752624203485,
9
- "top_1000": 0.6533618888977023,
10
- "top_5000": 0.8406599508209724,
11
- "top_10000": 0.9080880992041458
12
  },
13
- "hapax_count": 15333,
14
- "hapax_ratio": 0.5817429904769131,
15
- "total_documents": 1300
16
  }
17
  }
 
1
  {
2
  "language": "btm",
3
+ "vocabulary_size": 11148,
4
  "variant": "full",
5
  "statistics": {
6
+ "type_token_ratio": 0.1389514045177961,
7
  "coverage": {
8
+ "top_100": 0.3839449445694757,
9
+ "top_1000": 0.6534237726098191,
10
+ "top_5000": 0.8400589730766025,
11
+ "top_10000": 0.9071642910727682
12
  },
13
+ "hapax_count": 15524,
14
+ "hapax_ratio": 0.5820335932813437,
15
+ "total_documents": 1317
16
  }
17
  }
models/word_markov/btm_markov_ctx1_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d7836709a62d3e6d6f77608b52ac844f6dc543e833b71cee1fecb9081e7920a1
3
- size 896043
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c9e61f4eac88266a14896004b747b93aea2b8270214b2b9f82d2cbdf767d220
3
+ size 906482
models/word_markov/btm_markov_ctx1_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "btm",
5
- "unique_contexts": 26321,
6
- "total_transitions": 187805
7
  }
 
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "btm",
5
+ "unique_contexts": 26637,
6
+ "total_transitions": 190635
7
  }
models/word_markov/btm_markov_ctx2_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e923879187734024aa16a8259d19e5aa01d660c5479ca45138d2389819ed17a8
3
- size 2002914
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f05642bdaa511b298f96adf1f87dde7a273920e3f61de6e9260250e0957c3ba3
3
+ size 2027650
models/word_markov/btm_markov_ctx2_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "btm",
5
- "unique_contexts": 118363,
6
- "total_transitions": 186505
7
  }
 
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "btm",
5
+ "unique_contexts": 119766,
6
+ "total_transitions": 189318
7
  }