omarkamali commited on
Commit
ecc905c
·
verified ·
1 Parent(s): 6d2b184

Upload all models and assets for an (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 +224 -189
  3. models/embeddings/aligned/an_128d.bin +3 -0
  4. models/embeddings/aligned/an_128d.meta.json +1 -0
  5. models/embeddings/aligned/an_128d.projection.npy +3 -0
  6. models/embeddings/aligned/an_128d_metadata.json +8 -0
  7. models/embeddings/aligned/an_32d.bin +3 -0
  8. models/embeddings/aligned/an_32d.meta.json +1 -0
  9. models/embeddings/aligned/an_32d.projection.npy +3 -0
  10. models/embeddings/aligned/an_32d_metadata.json +8 -0
  11. models/embeddings/aligned/an_64d.bin +3 -0
  12. models/embeddings/aligned/an_64d.meta.json +1 -0
  13. models/embeddings/aligned/an_64d.projection.npy +3 -0
  14. models/embeddings/aligned/an_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/an_128d.bin +2 -2
  16. models/embeddings/monolingual/an_128d_metadata.json +1 -1
  17. models/embeddings/monolingual/an_32d.bin +2 -2
  18. models/embeddings/monolingual/an_32d_metadata.json +1 -1
  19. models/embeddings/monolingual/an_64d.bin +2 -2
  20. models/embeddings/monolingual/an_64d_metadata.json +1 -1
  21. models/subword_markov/an_markov_ctx1_subword.parquet +2 -2
  22. models/subword_markov/an_markov_ctx1_subword_metadata.json +2 -2
  23. models/subword_markov/an_markov_ctx2_subword.parquet +2 -2
  24. models/subword_markov/an_markov_ctx2_subword_metadata.json +2 -2
  25. models/subword_markov/an_markov_ctx3_subword.parquet +2 -2
  26. models/subword_markov/an_markov_ctx3_subword_metadata.json +2 -2
  27. models/subword_markov/an_markov_ctx4_subword.parquet +2 -2
  28. models/subword_markov/an_markov_ctx4_subword_metadata.json +2 -2
  29. models/subword_ngram/an_2gram_subword.parquet +2 -2
  30. models/subword_ngram/an_2gram_subword_metadata.json +1 -1
  31. models/subword_ngram/an_3gram_subword.parquet +2 -2
  32. models/subword_ngram/an_3gram_subword_metadata.json +2 -2
  33. models/subword_ngram/an_4gram_subword.parquet +2 -2
  34. models/subword_ngram/an_4gram_subword_metadata.json +2 -2
  35. models/subword_ngram/an_5gram_subword.parquet +3 -0
  36. models/subword_ngram/an_5gram_subword_metadata.json +7 -0
  37. models/tokenizer/an_tokenizer_16k.model +2 -2
  38. models/tokenizer/an_tokenizer_16k.vocab +0 -0
  39. models/tokenizer/an_tokenizer_32k.model +2 -2
  40. models/tokenizer/an_tokenizer_32k.vocab +0 -0
  41. models/tokenizer/an_tokenizer_64k.model +2 -2
  42. models/tokenizer/an_tokenizer_64k.vocab +0 -0
  43. models/tokenizer/an_tokenizer_8k.model +2 -2
  44. models/tokenizer/an_tokenizer_8k.vocab +0 -0
  45. models/vocabulary/an_vocabulary.parquet +2 -2
  46. models/vocabulary/an_vocabulary_metadata.json +9 -9
  47. models/word_markov/an_markov_ctx1_word.parquet +2 -2
  48. models/word_markov/an_markov_ctx1_word_metadata.json +2 -2
  49. models/word_markov/an_markov_ctx2_word.parquet +2 -2
  50. models/word_markov/an_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: an
3
- language_name: AN
4
  language_family: romance_iberian
5
  tags:
6
  - wikilangs
@@ -10,11 +10,21 @@ tags:
10
  - n-gram
11
  - markov
12
  - wikipedia
 
 
 
 
 
 
 
 
 
 
13
  - monolingual
14
  - family-romance_iberian
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: 4.267
27
  - name: best_isotropy
28
  type: isotropy
29
- value: 0.8193
30
  - name: vocabulary_size
31
  type: vocab
32
  value: 0
33
  generated: 2026-01-03
34
  ---
35
 
36
- # AN - Wikilangs Models
37
  ## Comprehensive Research Report & Full Ablation Study
38
 
39
- This repository contains NLP models trained and evaluated by Wikilangs, specifically on **AN** 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** | 3.551x | 3.55 | 0.1259% | 1,215,405 |
84
- | **16k** | 3.845x | 3.85 | 0.1363% | 1,122,403 |
85
- | **32k** | 4.084x | 4.08 | 0.1448% | 1,056,930 |
86
- | **64k** | 4.267x 🏆 | 4.27 | 0.1513% | 1,011,533 |
87
 
88
  ### Tokenization Examples
89
 
90
  Below are sample sentences tokenized with each vocabulary size:
91
 
92
- **Sample 1:** `Anyos: - - Decenios: Anyos - Anyos - Anyos Sieglos: Sieglo X - Sieglo XI - Siegl...`
93
 
94
  | Vocab | Tokens | Count |
95
  |-------|--------|-------|
96
- | 8k | `▁anyos : ▁- ▁- decenios : ▁anyos ▁-anyos ▁- ... (+15 more)` | 25 |
97
- | 16k | `▁anyos : ▁- ▁- decenios : ▁anyos ▁-anyos ▁- ... (+15 more)` | 25 |
98
- | 32k | `▁anyos : ▁- ▁- decenios : ▁anyos ▁-anyos ▁- ... (+15 more)` | 25 |
99
- | 64k | `▁anyos : ▁- ▁- decenios : ▁anyos ▁-anyos ▁- ... (+15 more)` | 25 |
100
 
101
- **Sample 2:** `Lo Buçon (en francés Aubusson) ye una localidat y comuna francesa situada en o d...`
102
 
103
  | Vocab | Tokens | Count |
104
  |-------|--------|-------|
105
- | 8k | `▁lobu ç on ( en ▁francésa ub us ... (+28 more)` | 38 |
106
- | 16k | `▁lobu çon( enfrancésa ub us son ... (+25 more)` | 35 |
107
- | 32k | `▁lobu çon( enfrancésaub us son ) ... (+24 more)` | 34 |
108
- | 64k | `▁lobu çon( enfrancésaub us son ) ... (+22 more)` | 32 |
109
 
110
- **Sample 3:** `Holzmann ye un lugar d'o municipio de Chieming en o sud-este de Bavera, Alemanya...`
111
 
112
  | Vocab | Tokens | Count |
113
  |-------|--------|-------|
114
- | 8k | `▁hol z mann ▁ye ▁un ▁lugar ▁d ' o ▁municipio ... (+28 more)` | 38 |
115
- | 16k | `▁hol z mann ▁ye ▁un ▁lugar ▁d ' o ▁municipio ... (+28 more)` | 38 |
116
- | 32k | `▁holz mann ▁ye ▁un ▁lugar ▁d ' o ▁municipio ▁de ... (+26 more)` | 36 |
117
- | 64k | `▁holz mann ▁ye ▁un ▁lugar ▁d ' o ▁municipio ▁de ... (+26 more)` | 36 |
118
 
119
 
120
  ### Key Findings
121
 
122
- - **Best Compression:** 64k achieves 4.267x compression
123
- - **Lowest UNK Rate:** 8k with 0.1259% 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 | 25,531 | 14.64 | 231,538 | 16.8% | 37.4% |
141
- | **2-gram** | Subword | 258 🏆 | 8.01 | 7,000 | 68.7% | 99.3% |
142
- | **3-gram** | Word | 86,752 | 16.40 | 456,958 | 8.4% | 23.0% |
143
- | **3-gram** | Subword | 2,153 | 11.07 | 52,839 | 25.8% | 73.4% |
144
- | **4-gram** | Word | 208,198 | 17.67 | 890,645 | 6.8% | 17.2% |
145
- | **4-gram** | Subword | 12,189 | 13.57 | 289,840 | 12.6% | 39.7% |
 
 
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 | `d a` | 106,922 |
154
- | 2 | `d o` | 105,903 |
155
- | 3 | `en a` | 60,539 |
156
- | 4 | `en o` | 45,891 |
157
- | 5 | `de l` | 37,271 |
158
 
159
  **3-grams (Word):**
160
 
161
  | Rank | N-gram | Count |
162
  |------|--------|-------|
163
- | 1 | `a provincia de` | 17,407 |
164
- | 2 | `d a provincia` | 13,389 |
165
- | 3 | `una superficie de` | 12,709 |
166
- | 4 | `suya población ye` | 12,409 |
167
- | 5 | `población ye de` | 12,354 |
168
 
169
  **4-grams (Word):**
170
 
171
  | Rank | N-gram | Count |
172
  |------|--------|-------|
173
- | 1 | `suya población ye de` | 12,288 |
174
- | 2 | `en una superficie de` | 12,121 |
175
- | 3 | `d a provincia de` | 12,081 |
176
- | 4 | `habitants en una superficie` | 11,267 |
177
  | 5 | `a suya población ye` | 11,250 |
178
 
 
 
 
 
 
 
 
 
 
 
179
  **2-grams (Subword):**
180
 
181
  | Rank | N-gram | Count |
182
  |------|--------|-------|
183
- | 1 | `a _` | 1,856,533 |
184
- | 2 | `_ d` | 1,594,808 |
185
- | 3 | `e _` | 1,531,455 |
186
- | 4 | `s _` | 1,293,859 |
187
- | 5 | `n _` | 1,201,430 |
188
 
189
  **3-grams (Subword):**
190
 
191
  | Rank | N-gram | Count |
192
  |------|--------|-------|
193
- | 1 | `_ d e` | 886,389 |
194
- | 2 | `d e _` | 768,800 |
195
- | 3 | `_ d '` | 488,988 |
196
- | 4 | `e n _` | 472,591 |
197
- | 5 | `_ e n` | 449,047 |
198
 
199
  **4-grams (Subword):**
200
 
201
  | Rank | N-gram | Count |
202
  |------|--------|-------|
203
- | 1 | `_ d e _` | 734,534 |
204
- | 2 | `_ e n _` | 392,856 |
205
- | 3 | `_ d ' a` | 233,826 |
206
- | 4 | `a _ d e` | 183,991 |
207
- | 5 | `_ c o n` | 176,849 |
 
 
 
 
 
 
 
 
 
 
208
 
209
 
210
  ### Key Findings
211
 
212
- - **Best Perplexity:** 2-gram (subword) with 258
213
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
214
- - **Coverage:** Top-1000 patterns cover ~40% 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.9747 | 1.965 | 7.58 | 367,064 | 2.5% |
231
- | **1** | Subword | 0.7827 | 1.720 | 5.89 | 3,499 | 21.7% |
232
- | **2** | Word | 0.3412 | 1.267 | 2.01 | 2,775,765 | 65.9% |
233
- | **2** | Subword | 0.8316 | 1.780 | 5.33 | 20,583 | 16.8% |
234
- | **3** | Word | 0.1546 | 1.113 | 1.33 | 5,573,548 | 84.5% |
235
- | **3** | Subword | 0.7758 | 1.712 | 4.33 | 109,746 | 22.4% |
236
- | **4** | Word | 0.0738 🏆 | 1.052 | 1.14 | 7,417,165 | 92.6% |
237
- | **4** | Subword | 0.7143 | 1.641 | 3.37 | 474,426 | 28.6% |
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. `de barcelona cuan obtiene un municipio espanyol o suyo segundo punto alchido d o brien moore`
246
- 2. `d a z vs üü alto penedés información de chunio de argañán a camera a population`
247
- 3. `a risilleta a suya identidat y bi ha una economía como dancing in europe bbc d`
248
 
249
  **Context Size 2:**
250
 
251
- 1. `d a provincia de barcelona iste matrimonio naixoron 2 fillas a on a hansa montó as suyas`
252
- 2. `d o far west anexionando muitos territorios que componeban a corona d aragón que explicitament denom...`
253
- 3. `en a suya población ye de 643 habitants en una superficie de 16 01 491 teruel torralba`
254
 
255
  **Context Size 3:**
256
 
257
- 1. `a provincia de uesca d as penyas de riglos solano n 42 27 29 21 e 0 27`
258
- 2. `d a provincia de zaragoza en la suya part d o conchunto d o sud con a huerta`
259
- 3. `una superficie de 88 4 km y una densidat de población de 10 44 hab km cifras oficiales`
260
 
261
  **Context Size 4:**
262
 
263
- 1. `suya población ye de en una superficie de 20 1 km y una densidat de población de 5 24`
264
- 2. `en una superficie de 82 09 km con una densidat d hab km cheografía a localidat de gonnosnò ye`
265
- 3. `d a provincia de chirona y partiu chudicial de teruel catálogo de pueblos y municipios de aragón est...`
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. `_ptonena_le_a_ev`
275
- 2. `atarro_d'a_erra.`
276
- 3. `e_ula_coril._qus`
277
 
278
  **Context Size 2:**
279
 
280
- 1. `a_forangacia_ingà`
281
- 2. `_de_le_d'isten_co`
282
- 3. `e_ye_suff_una_fes`
283
 
284
  **Context Size 3:**
285
 
286
- 1. `_de_barrisor_intas`
287
- 2. `de_a_prencias)._th`
288
- 3. `_d'a_latín_a_lo_si`
289
 
290
  **Context Size 4:**
291
 
292
- 1. `_de_l'animent_y_pol`
293
- 2. `_en_tiembre_de_davi`
294
- 3. `_d'a_por_o_nuesta_y`
295
 
296
 
297
  ### Key Findings
298
 
299
  - **Best Predictability:** Context-4 (word) with 92.6% predictability
300
  - **Branching Factor:** Decreases with context size (more deterministic)
301
- - **Memory Trade-off:** Larger contexts require more storage (474,426 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 | 182,961 |
318
- | Total Tokens | 11,551,476 |
319
- | Mean Frequency | 63.14 |
320
  | Median Frequency | 4 |
321
- | Frequency Std Dev | 2812.87 |
322
 
323
  ### Most Common Words
324
 
325
  | Rank | Word | Frequency |
326
  |------|------|-----------|
327
- | 1 | de | 738,428 |
328
- | 2 | d | 494,628 |
329
- | 3 | a | 437,762 |
330
- | 4 | en | 406,259 |
331
- | 5 | o | 301,745 |
332
- | 6 | y | 244,743 |
333
- | 7 | que | 126,444 |
334
- | 8 | l | 109,014 |
335
- | 9 | ye | 108,632 |
336
- | 10 | una | 104,144 |
337
 
338
  ### Least Common Words (from vocabulary)
339
 
340
  | Rank | Word | Frequency |
341
  |------|------|-----------|
342
- | 1 | koftinoff | 2 |
343
- | 2 | landlocked | 2 |
344
- | 3 | hamidi | 2 |
345
- | 4 | tangy | 2 |
346
- | 5 | sélignac | 2 |
347
- | 6 | cômene | 2 |
348
- | 7 | varneton | 2 |
349
- | 8 | mackelway | 2 |
350
- | 9 | wigutow | 2 |
351
- | 10 | críspulo | 2 |
352
 
353
  ### Zipf's Law Analysis
354
 
355
  | Metric | Value |
356
  |--------|-------|
357
- | Zipf Coefficient | 1.0685 |
358
- | R² (Goodness of Fit) | 0.998276 |
359
  | Adherence Quality | **excellent** |
360
 
361
  ### Coverage Analysis
362
 
363
  | Top N Words | Coverage |
364
  |-------------|----------|
365
- | Top 100 | 44.9% |
366
- | Top 1,000 | 66.9% |
367
  | Top 5,000 | 80.7% |
368
  | Top 10,000 | 85.9% |
369
 
370
  ### Key Findings
371
 
372
  - **Zipf Compliance:** R²=0.9983 indicates excellent adherence to Zipf's law
373
- - **High Frequency Dominance:** Top 100 words cover 44.9% of corpus
374
- - **Long Tail:** 172,961 words needed for remaining 14.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.8177 | 0.3514 | N/A | N/A |
398
- | **mono_64d** | 64 | 0.8193 🏆 | 0.2716 | N/A | N/A |
399
- | **mono_128d** | 128 | 0.8061 | 0.2141 | N/A | N/A |
 
 
 
400
 
401
  ### Key Findings
402
 
403
- - **Best Isotropy:** mono_64d with 0.8193 (more uniform distribution)
404
- - **Semantic Density:** Average pairwise similarity of 0.2790. 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,19 @@ These are the most productive prefixes and suffixes identified by sampling the v
426
  #### Productive Prefixes
427
  | Prefix | Examples |
428
  |--------|----------|
429
- | `-co` | colleges, consagratos, consumible |
430
- | `-ca` | camelot, caldero, cabellera |
431
- | `-ma` | mardy, manaba, maeztu |
 
432
 
433
  #### Productive Suffixes
434
  | Suffix | Examples |
435
  |--------|----------|
436
- | `-s` | peraleios, noveciercos, engueradas |
437
- | `-a` | gina, pátria, aquileya |
438
- | `-as` | engueradas, febas, alimentadas |
439
- | `-os` | peraleios, noveciercos, consagratos |
440
- | `-an` | reflectan, goodman, recolectan |
441
- | `-es` | detalles, colleges, valses |
442
 
443
  ### 6.3 Bound Stems (Lexical Roots)
444
 
@@ -446,18 +481,18 @@ Bound stems are high-frequency subword units that are semantically cohesive but
446
 
447
  | Stem | Cohesion | Substitutability | Examples |
448
  |------|----------|------------------|----------|
449
- | `ento` | 1.86x | 126 contexts | lento, rento, vento |
450
- | `cion` | 1.91x | 110 contexts | scion, nacion, accion |
451
- | `ient` | 1.67x | 177 contexts | aient, dient, oient |
452
- | `rago` | 2.01x | 59 contexts | ragot, drago, crago |
453
- | `ranc` | 1.63x | 140 contexts | ranch, rancó, rance |
454
- | `enci` | 1.55x | 164 contexts | encia, renci, venciu |
455
- | `laci` | 2.02x | 49 contexts | lacio, glacio, placid |
456
- | `nter` | 1.55x | 144 contexts | anter, unter, enter |
457
- | `obla` | 1.85x | 56 contexts | pobla, dobla, robla |
458
- | `renc` | 1.66x | 81 contexts | arenc, renci, rencor |
459
- | `ació` | 1.87x | 47 contexts | ación, nació, fació |
460
- | `mbre` | 1.66x | 75 contexts | ambre, ombre, mbret |
461
 
462
  ### 6.4 Affix Compatibility (Co-occurrence)
463
 
@@ -465,16 +500,16 @@ This table shows which prefixes and suffixes most frequently co-occur on the sam
465
 
466
  | Prefix | Suffix | Frequency | Examples |
467
  |--------|--------|-----------|----------|
468
- | `-co` | `-s` | 61 words | conformes, columbus |
469
- | `-co` | `-a` | 58 words | comunicaba, conservata |
470
- | `-ca` | `-s` | 54 words | caseilles, cavalls |
471
- | `-ca` | `-a` | 46 words | carezza, carabaza |
472
- | `-ma` | `-a` | 38 words | maquinista, mavumengwana |
473
- | `-ma` | `-s` | 31 words | mamuts, mads |
474
- | `-ca` | `-as` | 17 words | carpaticas, castanyas |
475
- | `-co` | `-as` | 16 words | conillas, coladas |
476
- | `-ca` | `-os` | 12 words | carpos, capuzamientos |
477
- | `-co` | `-es` | 11 words | conformes, contimparables |
478
 
479
  ### 6.5 Recursive Morpheme Segmentation
480
 
@@ -482,26 +517,26 @@ Using **Recursive Hierarchical Substitutability**, we decompose complex words in
482
 
483
  | Word | Suggested Split | Confidence | Stem |
484
  |------|-----------------|------------|------|
485
- | roncaleses | **`roncal-es-es`** | 6.0 | `roncal` |
486
- | coinciden | **`co-inciden`** | 4.5 | `inciden` |
487
- | processos | **`process-os`** | 4.5 | `process` |
488
- | productoras | **`productor-as`** | 4.5 | `productor` |
489
- | cobianchi | **`co-bianchi`** | 4.5 | `bianchi` |
490
- | elefantes | **`elefant-es`** | 4.5 | `elefant` |
491
- | musicales | **`musical-es`** | 4.5 | `musical` |
492
- | capelleta | **`ca-pelleta`** | 4.5 | `pelleta` |
493
- | lumerosas | **`lumer-os-as`** | 3.0 | `lumer` |
494
- | cantalojas | **`ca-ntaloj-as`** | 3.0 | `ntaloj` |
495
- | confiscatos | **`co-nfiscat-os`** | 3.0 | `nfiscat` |
496
- | concentraban | **`co-ncentrab-an`** | 3.0 | `ncentrab` |
497
- | cavanilles | **`ca-vanill-es`** | 3.0 | `vanill` |
498
- | aldeyanos | **`aldey-an-os`** | 3.0 | `aldey` |
499
- | cascavillos | **`ca-scavill-os`** | 3.0 | `scavill` |
500
 
501
  ### 6.6 Linguistic Interpretation
502
 
503
  > **Automated Insight:**
504
- The language AN 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
@@ -512,8 +547,8 @@ The language AN appears to be more isolating or has a highly fixed vocabulary. W
512
 
513
  | Component | Recommended | Rationale |
514
  |-----------|-------------|-----------|
515
- | Tokenizer | **64k BPE** | Best compression (4.27x) |
516
- | N-gram | **2-gram** | Lowest perplexity (258) |
517
  | Markov | **Context-4** | Highest predictability (92.6%) |
518
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
519
 
@@ -728,4 +763,4 @@ MIT License - Free for academic and commercial use.
728
  ---
729
  *Generated by Wikilangs Models Pipeline*
730
 
731
- *Report Date: 2026-01-03 05:38:36*
 
1
  ---
2
  language: an
3
+ language_name: Aragonese
4
  language_family: romance_iberian
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-romance_iberian
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: 4.275
37
  - name: best_isotropy
38
  type: isotropy
39
+ value: 0.8230
40
  - name: vocabulary_size
41
  type: vocab
42
  value: 0
43
  generated: 2026-01-03
44
  ---
45
 
46
+ # Aragonese - Wikilangs Models
47
  ## Comprehensive Research Report & Full Ablation Study
48
 
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Aragonese** 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** | 3.559x | 3.56 | 0.1247% | 1,207,427 |
94
+ | **16k** | 3.854x | 3.85 | 0.1351% | 1,114,964 |
95
+ | **32k** | 4.092x | 4.09 | 0.1434% | 1,050,138 |
96
+ | **64k** | 4.275x 🏆 | 4.28 | 0.1498% | 1,005,070 |
97
 
98
  ### Tokenization Examples
99
 
100
  Below are sample sentences tokenized with each vocabulary size:
101
 
102
+ **Sample 1:** `CA Monzón puet estar: O Centro Atlético Monzón. O Club de Fútbol Atlético de Mon...`
103
 
104
  | Vocab | Tokens | Count |
105
  |-------|--------|-------|
106
+ | 8k | `▁ca ▁monzón ▁puetestar : ▁o ▁centroat lético ▁monzón ... (+10 more)` | 20 |
107
+ | 16k | `▁ca ▁monzón ▁puetestar : ▁o ▁centroatlético ▁monzón . ... (+8 more)` | 18 |
108
+ | 32k | `▁ca ▁monzón ▁puetestar : ▁o ▁centroatlético ▁monzón . ... (+8 more)` | 18 |
109
+ | 64k | `▁ca ▁monzón ▁puetestar : ▁o ▁centroatlético ▁monzón . ... (+8 more)` | 18 |
110
 
111
+ **Sample 2:** `En ista lista s'incluyen toz os presidents d'o Real Zaragoza dica hue: María Gay...`
112
 
113
  | Vocab | Tokens | Count |
114
  |-------|--------|-------|
115
+ | 8k | `▁enista ▁listas ' incluy en ▁tozos ▁presid ... (+24 more)` | 34 |
116
+ | 16k | `▁enista ▁listas ' incluyen tozos ▁presidents ▁d ... (+22 more)` | 32 |
117
+ | 32k | `▁enista ▁listas ' incluyen tozos ▁presidents ▁d ... (+22 more)` | 32 |
118
+ | 64k | `▁enista ▁listas ' incluyen tozos ▁presidents ▁d ... (+22 more)` | 32 |
119
 
120
+ **Sample 3:** `Roitwalchen ye un lugar d'o municipio de Traunstein en o sud-este de Bavera, Ale...`
121
 
122
  | Vocab | Tokens | Count |
123
  |-------|--------|-------|
124
+ | 8k | `▁ro it wal chen ▁ye ▁un ▁lugar ▁d ' o ... (+28 more)` | 38 |
125
+ | 16k | `▁ro it wal chen ▁ye ▁un ▁lugar ▁d ' o ... (+28 more)` | 38 |
126
+ | 32k | `▁ro it wal chen ▁ye ▁un ▁lugar ▁d ' o ... (+28 more)` | 38 |
127
+ | 64k | `▁ro it walchen ▁ye ▁un ▁lugar ▁d ' o ▁municipio ... (+27 more)` | 37 |
128
 
129
 
130
  ### Key Findings
131
 
132
+ - **Best Compression:** 64k achieves 4.275x compression
133
+ - **Lowest UNK Rate:** 8k with 0.1247% 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 | 25,712 | 14.65 | 233,669 | 16.7% | 37.4% |
151
+ | **2-gram** | Subword | 257 🏆 | 8.01 | 7,000 | 68.7% | 99.3% |
152
+ | **3-gram** | Word | 87,357 | 16.41 | 461,562 | 8.3% | 23.0% |
153
+ | **3-gram** | Subword | 2,151 | 11.07 | 52,727 | 25.8% | 73.4% |
154
+ | **4-gram** | Word | 209,676 | 17.68 | 900,576 | 6.8% | 17.2% |
155
+ | **4-gram** | Subword | 12,170 | 13.57 | 289,768 | 12.6% | 39.7% |
156
+ | **5-gram** | Word | 208,007 | 17.67 | 773,213 | 6.3% | 16.4% |
157
+ | **5-gram** | Subword | 46,669 | 15.51 | 901,225 | 7.3% | 25.5% |
158
 
159
  ### Top 5 N-grams by Size
160
 
 
162
 
163
  | Rank | N-gram | Count |
164
  |------|--------|-------|
165
+ | 1 | `d a` | 107,208 |
166
+ | 2 | `d o` | 106,261 |
167
+ | 3 | `en a` | 60,798 |
168
+ | 4 | `en o` | 45,519 |
169
+ | 5 | `de l` | 37,458 |
170
 
171
  **3-grams (Word):**
172
 
173
  | Rank | N-gram | Count |
174
  |------|--------|-------|
175
+ | 1 | `a provincia de` | 17,480 |
176
+ | 2 | `d a provincia` | 13,447 |
177
+ | 3 | `una superficie de` | 12,736 |
178
+ | 4 | `suya población ye` | 12,405 |
179
+ | 5 | `en una superficie` | 12,352 |
180
 
181
  **4-grams (Word):**
182
 
183
  | Rank | N-gram | Count |
184
  |------|--------|-------|
185
+ | 1 | `suya población ye de` | 12,284 |
186
+ | 2 | `en una superficie de` | 12,148 |
187
+ | 3 | `d a provincia de` | 12,141 |
188
+ | 4 | `habitants en una superficie` | 11,275 |
189
  | 5 | `a suya población ye` | 11,250 |
190
 
191
+ **5-grams (Word):**
192
+
193
+ | Rank | N-gram | Count |
194
+ |------|--------|-------|
195
+ | 1 | `a suya población ye de` | 11,136 |
196
+ | 2 | `habitants en una superficie de` | 11,095 |
197
+ | 3 | `una densidat de población de` | 10,633 |
198
+ | 4 | `km con una densidat de` | 7,736 |
199
+ | 5 | `con una densidat de población` | 7,674 |
200
+
201
  **2-grams (Subword):**
202
 
203
  | Rank | N-gram | Count |
204
  |------|--------|-------|
205
+ | 1 | `a _` | 1,873,392 |
206
+ | 2 | `_ d` | 1,605,638 |
207
+ | 3 | `e _` | 1,544,207 |
208
+ | 4 | `s _` | 1,309,585 |
209
+ | 5 | `n _` | 1,215,896 |
210
 
211
  **3-grams (Subword):**
212
 
213
  | Rank | N-gram | Count |
214
  |------|--------|-------|
215
+ | 1 | `_ d e` | 891,253 |
216
+ | 2 | `d e _` | 772,067 |
217
+ | 3 | `_ d '` | 491,537 |
218
+ | 4 | `e n _` | 478,088 |
219
+ | 5 | `_ e n` | 454,282 |
220
 
221
  **4-grams (Subword):**
222
 
223
  | Rank | N-gram | Count |
224
  |------|--------|-------|
225
+ | 1 | `_ d e _` | 737,370 |
226
+ | 2 | `_ e n _` | 397,348 |
227
+ | 3 | `_ d ' a` | 234,868 |
228
+ | 4 | `a _ d e` | 184,900 |
229
+ | 5 | `_ c o n` | 179,093 |
230
+
231
+ **5-grams (Subword):**
232
+
233
+ | Rank | N-gram | Count |
234
+ |------|--------|-------|
235
+ | 1 | `a _ d e _` | 147,074 |
236
+ | 2 | `_ q u e _` | 125,472 |
237
+ | 3 | `c i ó n _` | 124,436 |
238
+ | 4 | `o _ d e _` | 123,146 |
239
+ | 5 | `_ d ' a _` | 106,742 |
240
 
241
 
242
  ### Key Findings
243
 
244
+ - **Best Perplexity:** 2-gram (subword) with 257
245
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
246
+ - **Coverage:** Top-1000 patterns cover ~25% 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.9753 | 1.966 | 7.59 | 368,549 | 2.5% |
263
+ | **1** | Subword | 0.7834 | 1.721 | 5.75 | 3,672 | 21.7% |
264
+ | **2** | Word | 0.3415 | 1.267 | 2.01 | 2,791,626 | 65.9% |
265
+ | **2** | Subword | 0.8176 | 1.763 | 5.23 | 21,123 | 18.2% |
266
+ | **3** | Word | 0.1548 | 1.113 | 1.33 | 5,610,004 | 84.5% |
267
+ | **3** | Subword | 0.7695 | 1.705 | 4.30 | 110,486 | 23.0% |
268
+ | **4** | Word | 0.0739 🏆 | 1.053 | 1.14 | 7,469,366 | 92.6% |
269
+ | **4** | Subword | 0.7129 | 1.639 | 3.37 | 474,961 | 28.7% |
270
 
271
  ### Generated Text Samples (Word-based)
272
 
 
274
 
275
  **Context Size 1:**
276
 
277
+ 1. `de gúdar s j simpson cyril cusack georgi parvanov con a comarca d o mesmo significau`
278
+ 2. `d a fundación d o comité d abril linear 8 d ixe paisache pocino de marzo`
279
+ 3. `a circuscripción de linkedin pachina web autualment no la provincia de bixuteria fina cappa producti...`
280
 
281
  **Context Size 2:**
282
 
283
+ 1. `d a provincia de beneviento 2 071 m o río xalón y provincia de zaragoza y atros`
284
+ 2. `d o poro nucleyar afi komˈple k so di ˈi ˈpoɾo nuˈkliar ye per propio cualsiquier craba`
285
+ 3. `en a pachina web oficial la procedencia d os mes aptos os caracters comuns con atras posesions`
286
 
287
  **Context Size 3:**
288
 
289
+ 1. `a provincia de teruel comarca d a chacetania ye una d as prencipals actrices d o teatro y`
290
+ 2. `d a provincia de castellón de la plana alta la suya población ye de 651 habitants en germany`
291
+ 3. `una superficie de 62 99 km con una densidat de población de 8 hab km en ista localidat`
292
 
293
  **Context Size 4:**
294
 
295
+ 1. `suya población ye de 100 habitants en una superficie de 9 77 km con una densidat de población de`
296
+ 2. `en una superficie de 13 70 km con una densidat de población de 29 15 hab km cheografía a`
297
+ 3. `d a provincia de cordoba ta atros usos se veiga o caire desambigación o caire u simplamnet caire الق...`
298
 
299
 
300
  ### Generated Text Samples (Subword-based)
 
303
 
304
  **Context Size 1:**
305
 
306
+ 1. `_e_ra_ce_aren_pi`
307
+ 2. `al._iargo_rennye`
308
+ 3. `ebalobalo,_opo_c`
309
 
310
  **Context Size 2:**
311
 
312
+ 1. `a_cominelde_al_de`
313
+ 2. `_d'a_s'esmarroixe`
314
+ 3. `e_au_gottorioními`
315
 
316
  **Context Size 3:**
317
 
318
+ 1. `_de_papezina_creye`
319
+ 2. `de_heyemios_poblac`
320
+ 3. `_d'africa_de_mayo»`
321
 
322
  **Context Size 4:**
323
 
324
+ 1. `_de_l'anyos._ye_reg`
325
+ 2. `_en_la_menclaude._v`
326
+ 3. `_d'africantón_de_se`
327
 
328
 
329
  ### Key Findings
330
 
331
  - **Best Predictability:** Context-4 (word) with 92.6% predictability
332
  - **Branching Factor:** Decreases with context size (more deterministic)
333
+ - **Memory Trade-off:** Larger contexts require more storage (474,961 contexts)
334
  - **Recommendation:** Context-3 or Context-4 for text generation
335
 
336
  ---
 
346
 
347
  | Metric | Value |
348
  |--------|-------|
349
+ | Vocabulary Size | 183,928 |
350
+ | Total Tokens | 11,661,736 |
351
+ | Mean Frequency | 63.40 |
352
  | Median Frequency | 4 |
353
+ | Frequency Std Dev | 2823.00 |
354
 
355
  ### Most Common Words
356
 
357
  | Rank | Word | Frequency |
358
  |------|------|-----------|
359
+ | 1 | de | 741,521 |
360
+ | 2 | d | 497,145 |
361
+ | 3 | a | 440,622 |
362
+ | 4 | en | 410,893 |
363
+ | 5 | o | 301,627 |
364
+ | 6 | y | 247,568 |
365
+ | 7 | que | 127,976 |
366
+ | 8 | l | 109,848 |
367
+ | 9 | ye | 109,774 |
368
+ | 10 | una | 105,502 |
369
 
370
  ### Least Common Words (from vocabulary)
371
 
372
  | Rank | Word | Frequency |
373
  |------|------|-----------|
374
+ | 1 | beljakova | 2 |
375
+ | 2 | méchaly | 2 |
376
+ | 3 | wiedemann | 2 |
377
+ | 4 | limotte | 2 |
378
+ | 5 | wlodkowski | 2 |
379
+ | 6 | taos | 2 |
380
+ | 7 | slovis | 2 |
381
+ | 8 | samaha | 2 |
382
+ | 9 | seros | 2 |
383
+ | 10 | cookeville | 2 |
384
 
385
  ### Zipf's Law Analysis
386
 
387
  | Metric | Value |
388
  |--------|-------|
389
+ | Zipf Coefficient | 1.0690 |
390
+ | R² (Goodness of Fit) | 0.998251 |
391
  | Adherence Quality | **excellent** |
392
 
393
  ### Coverage Analysis
394
 
395
  | Top N Words | Coverage |
396
  |-------------|----------|
397
+ | Top 100 | 44.8% |
398
+ | Top 1,000 | 66.8% |
399
  | Top 5,000 | 80.7% |
400
  | Top 10,000 | 85.9% |
401
 
402
  ### Key Findings
403
 
404
  - **Zipf Compliance:** R²=0.9983 indicates excellent adherence to Zipf's law
405
+ - **High Frequency Dominance:** Top 100 words cover 44.8% of corpus
406
+ - **Long Tail:** 173,928 words needed for remaining 14.1% 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.8202 | 0.3403 | N/A | N/A |
432
+ | **mono_64d** | 64 | 0.8230 🏆 | 0.2693 | N/A | N/A |
433
+ | **mono_128d** | 128 | 0.8049 | 0.2129 | N/A | N/A |
434
+ | **aligned_32d** | 32 | 0.8202 | 0.3495 | 0.1580 | 0.5000 |
435
+ | **aligned_64d** | 64 | 0.8230 | 0.2690 | 0.2540 | 0.6280 |
436
+ | **aligned_128d** | 128 | 0.8049 | 0.2090 | 0.3720 | 0.7380 |
437
 
438
  ### Key Findings
439
 
440
+ - **Best Isotropy:** mono_64d with 0.8230 (more uniform distribution)
441
+ - **Semantic Density:** Average pairwise similarity of 0.2750. Lower values indicate better semantic separation.
442
+ - **Alignment Quality:** Aligned models achieve up to 37.2% 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.358** | Low formulaic content | - |
456
 
457
  ### 6.2 Affix Inventory (Productive Units)
458
 
 
461
  #### Productive Prefixes
462
  | Prefix | Examples |
463
  |--------|----------|
464
+ | `-co` | comuni, concebitas, complices |
465
+ | `-ca` | cassovia, cazadors, castieillo |
466
+ | `-ma` | macromutacions, mariahilfkirche, maree |
467
+ | `-re` | restauro, reumert, recomendable |
468
 
469
  #### Productive Suffixes
470
  | Suffix | Examples |
471
  |--------|----------|
472
+ | `-s` | viescas, tomus, biggs |
473
+ | `-a` | abaurrepea, telangana, actuaba |
474
+ | `-as` | viescas, medas, rallatas |
475
+ | `-os` | vientos, rasos, tecnolochicos |
476
+ | `-es` | phoenicopteriformes, gabes, bolcheviques |
 
477
 
478
  ### 6.3 Bound Stems (Lexical Roots)
479
 
 
481
 
482
  | Stem | Cohesion | Substitutability | Examples |
483
  |------|----------|------------------|----------|
484
+ | `ento` | 1.72x | 126 contexts | rento, gento, sento |
485
+ | `rago` | 2.03x | 58 contexts | crago, drago, ragot |
486
+ | `ranc` | 1.60x | 141 contexts | rancó, ranch, rance |
487
+ | `enci` | 1.55x | 164 contexts | renci, encia, encies |
488
+ | `obla` | 1.95x | 56 contexts | nobla, robla, pobla |
489
+ | `renc` | 1.77x | 82 contexts | renci, arenc, wrench |
490
+ | `ació` | 2.02x | 47 contexts | nació, fació, ación |
491
+ | `ient` | 1.50x | 176 contexts | oient, cient, aient |
492
+ | `nter` | 1.55x | 146 contexts | anter, enter, unter |
493
+ | `cion` | 1.56x | 110 contexts | scion, accion, nacion |
494
+ | `ncia` | 1.69x | 61 contexts | encia, uncia, oencia |
495
+ | `mbre` | 1.55x | 75 contexts | mbret, ambre, umbre |
496
 
497
  ### 6.4 Affix Compatibility (Co-occurrence)
498
 
 
500
 
501
  | Prefix | Suffix | Frequency | Examples |
502
  |--------|--------|-----------|----------|
503
+ | `-ca` | `-s` | 64 words | cavens, cabaixos |
504
+ | `-co` | `-s` | 62 words | conejares, concordias |
505
+ | `-co` | `-a` | 57 words | condeixa, cogota |
506
+ | `-ma` | `-s` | 52 words | manganés, manus |
507
+ | `-ca` | `-a` | 44 words | camberra, carola |
508
+ | `-re` | `-s` | 33 words | relationships, refusadas |
509
+ | `-re` | `-a` | 26 words | representa, relacionada |
510
+ | `-ma` | `-a` | 23 words | maganza, magalona |
511
+ | `-co` | `-as` | 19 words | concordias, contadas |
512
+ | `-ca` | `-os` | 16 words | cabaixos, calibos |
513
 
514
  ### 6.5 Recursive Morpheme Segmentation
515
 
 
517
 
518
  | Word | Suggested Split | Confidence | Stem |
519
  |------|-----------------|------------|------|
520
+ | lombardes | **`lombard-es`** | 4.5 | `lombard` |
521
+ | fanaticos | **`fanatic-os`** | 4.5 | `fanatic` |
522
+ | retransmite | **`re-transmite`** | 4.5 | `transmite` |
523
+ | dimitrios | **`dimitri-os`** | 4.5 | `dimitri` |
524
+ | terroristas | **`terrorist-as`** | 4.5 | `terrorist` |
525
+ | normandas | **`normand-as`** | 4.5 | `normand` |
526
+ | castellan | **`ca-stellan`** | 4.5 | `stellan` |
527
+ | coorganización | **`co-organización`** | 4.5 | `organización` |
528
+ | tortosinas | **`tortosin-as`** | 4.5 | `tortosin` |
529
+ | reportaje | **`re-portaje`** | 4.5 | `portaje` |
530
+ | requiestas | **`re-quiest-as`** | 3.0 | `quiest` |
531
+ | consumitos | **`co-nsumit-os`** | 3.0 | `nsumit` |
532
+ | califatos | **`ca-lifat-os`** | 3.0 | `lifat` |
533
+ | conservamos | **`co-nservam-os`** | 3.0 | `nservam` |
534
+ | colonizatos | **`co-lonizat-os`** | 3.0 | `lonizat` |
535
 
536
  ### 6.6 Linguistic Interpretation
537
 
538
  > **Automated Insight:**
539
+ The language Aragonese shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
540
 
541
  ---
542
  ## 7. Summary & Recommendations
 
547
 
548
  | Component | Recommended | Rationale |
549
  |-----------|-------------|-----------|
550
+ | Tokenizer | **64k BPE** | Best compression (4.28x) |
551
+ | N-gram | **2-gram** | Lowest perplexity (257) |
552
  | Markov | **Context-4** | Highest predictability (92.6%) |
553
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
554
 
 
763
  ---
764
  *Generated by Wikilangs Models Pipeline*
765
 
766
+ *Report Date: 2026-01-03 14:50:06*
models/embeddings/aligned/an_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fd4098fa2ab7a020113c01a17200837ba8ac73638e61c8edb659c85aaef93fc
3
+ size 1149568062
models/embeddings/aligned/an_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "an", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/an_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd99fd2982f86d44f39d6905f1bab4d510cd2a435654c9497853d449b81da158
3
+ size 65664
models/embeddings/aligned/an_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "an",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 46611,
7
+ "vocab_size": 120553
8
+ }
models/embeddings/aligned/an_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8162f33f0e10366ed7d3fdfb8fa216d05dbd6d4a16b2198859372aa289d98b14
3
+ size 288983358
models/embeddings/aligned/an_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "an", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/an_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:353d511257321af48a3269657d78455f93120c5fcf17d70f5f3b6de72a95f856
3
+ size 4224
models/embeddings/aligned/an_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "an",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 46611,
7
+ "vocab_size": 120553
8
+ }
models/embeddings/aligned/an_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95a4be660051d6fcd8c79a595fd6237cd7f54790bfab31f65b7a8f9c2533a8e2
3
+ size 575844926
models/embeddings/aligned/an_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "an", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/an_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a69faaf2fde42a4fb0c85609a8ab9ff29cffe1093a3932f0aa3d238f32d74f9
3
+ size 16512
models/embeddings/aligned/an_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "an",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 46611,
7
+ "vocab_size": 120553
8
+ }
models/embeddings/monolingual/an_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3b8c8d2f8e8ebd6d647e7092d20c2a5ed3abae1a07a6be40fc84c516534b000d
3
- size 1148906690
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fd4098fa2ab7a020113c01a17200837ba8ac73638e61c8edb659c85aaef93fc
3
+ size 1149568062
models/embeddings/monolingual/an_128d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
- "vocab_size": 119918
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 128
13
  },
14
+ "vocab_size": 120553
15
  }
models/embeddings/monolingual/an_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:227c09966b020164fd97d17f0e971bef21897af0662c9891e19c26eef18f815d
3
- size 288809666
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8162f33f0e10366ed7d3fdfb8fa216d05dbd6d4a16b2198859372aa289d98b14
3
+ size 288983358
models/embeddings/monolingual/an_32d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
- "vocab_size": 119918
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 32
13
  },
14
+ "vocab_size": 120553
15
  }
models/embeddings/monolingual/an_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:168f92e58a097a484a5136a652e39c7b532d3e83d40af551f9b434d64c32dcf2
3
- size 575508674
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95a4be660051d6fcd8c79a595fd6237cd7f54790bfab31f65b7a8f9c2533a8e2
3
+ size 575844926
models/embeddings/monolingual/an_64d_metadata.json CHANGED
@@ -11,5 +11,5 @@
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
- "vocab_size": 119918
15
  }
 
11
  "encoding_method": "rope",
12
  "dim": 64
13
  },
14
+ "vocab_size": 120553
15
  }
models/subword_markov/an_markov_ctx1_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d40de84446df679c4cebd27cec50dd996c043fbace52eee0439eb6badc7bd7c
3
- size 168642
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82737fda9661e7c5ecf12fa0a67a2d2bcc18af9b5e9e30a7b0158eef5c952909
3
+ size 176131
models/subword_markov/an_markov_ctx1_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_contexts": 3499,
6
- "total_transitions": 69109076
7
  }
 
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_contexts": 3672,
6
+ "total_transitions": 69810476
7
  }
models/subword_markov/an_markov_ctx2_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:49319842d520d6479015d48b0398bc41858ef988fef862a150994662fcc06982
3
- size 916009
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0fc7fa0b6576fa1c527465494c2d88de956a333230c36d23818149db6ffd093
3
+ size 938570
models/subword_markov/an_markov_ctx2_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_contexts": 20583,
6
- "total_transitions": 69059397
7
  }
 
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_contexts": 21123,
6
+ "total_transitions": 69760181
7
  }
models/subword_markov/an_markov_ctx3_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:706cb13def2cb1c8316e030700d89c8a6b8edcdaa283466b09d5fe99ab709294
3
- size 3807898
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:002be2f1eb632f8e6574678f853e93f4bbca357d8fe282182dc11766db2955b4
3
+ size 3816590
models/subword_markov/an_markov_ctx3_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_contexts": 109746,
6
- "total_transitions": 69009718
7
  }
 
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_contexts": 110486,
6
+ "total_transitions": 69709886
7
  }
models/subword_markov/an_markov_ctx4_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5eba517deec4e418e88d7689e4203c7c287c5ff4a05060f0fbb2342c404dccc8
3
- size 13264812
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a8a70c3406dca6ea2afc3bd1a4133f81559c04cc64ebb35b40bd88bf0512e2e
3
+ size 13281906
models/subword_markov/an_markov_ctx4_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_contexts": 474426,
6
- "total_transitions": 68960039
7
  }
 
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_contexts": 474961,
6
+ "total_transitions": 69659591
7
  }
models/subword_ngram/an_2gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:555bb0a9950d43d338c420105f45d6e40844826ad59879138e4521a5e4f7bc0c
3
- size 93665
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6ff5966a58dcbf3f78684a10d07bc43305bed96d2231b9a562c78ffe158f5e
3
+ size 93856
models/subword_ngram/an_2gram_subword_metadata.json CHANGED
@@ -3,5 +3,5 @@
3
  "variant": "subword",
4
  "language": "an",
5
  "unique_ngrams": 7000,
6
- "total_ngrams": 69109076
7
  }
 
3
  "variant": "subword",
4
  "language": "an",
5
  "unique_ngrams": 7000,
6
+ "total_ngrams": 69810476
7
  }
models/subword_ngram/an_3gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f78a3129dc57d3cdb79e700b2f8fd170e91b6a063ad7ecc8c3970aa700eb2eba
3
- size 691123
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b9410a959938ec2ee19d3d785fdbe7c03b9888b017ac84c0907cc567cc67382
3
+ size 690365
models/subword_ngram/an_3gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_ngrams": 52839,
6
- "total_ngrams": 69059397
7
  }
 
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_ngrams": 52727,
6
+ "total_ngrams": 69760181
7
  }
models/subword_ngram/an_4gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2c2ad5d14d9c914207a8289e32db63c141e19a1ca414e8a0d26bb2bd2d7c2251
3
- size 3358033
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54766951ed2a769fc5227d30241529307ad56476f75a1c6ded8dfd17cfd005c6
3
+ size 3361576
models/subword_ngram/an_4gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "an",
5
- "unique_ngrams": 289840,
6
- "total_ngrams": 69009718
7
  }
 
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "an",
5
+ "unique_ngrams": 289768,
6
+ "total_ngrams": 69709886
7
  }
models/subword_ngram/an_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2d2a42c46ff9f023d7a1e77f90126884ff7127984bdea7beb92f1a4ea9ba286
3
+ size 10691226
models/subword_ngram/an_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "an",
5
+ "unique_ngrams": 901225,
6
+ "total_ngrams": 69659591
7
+ }
models/tokenizer/an_tokenizer_16k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e6718ee086df807a9b8e62706d7c765c76896efe91b3e0c87de4d756afbca43
3
- size 511370
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be4e4495dd91b35e24a5508fe0c746604c258fa5e24d680caa9984c3edca42a6
3
+ size 511374
models/tokenizer/an_tokenizer_16k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/an_tokenizer_32k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3a3ebce2687e88197aaa7a091e4f04cb995c75343de7c69b2a452444c0e4ec12
3
- size 791243
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fa703683fed7866aee835ffdc13a44b7a714de834a38b62b70558897787c1fb
3
+ size 791864
models/tokenizer/an_tokenizer_32k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/an_tokenizer_64k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7137d416046b5467fc533de58fb10d2dfc01761285b5489a24416366e18446ce
3
- size 1364521
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1989e3ff85462c98efc25880434afda45544dd0dff0bda857ccfabf9d8725dc
3
+ size 1363420
models/tokenizer/an_tokenizer_64k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/an_tokenizer_8k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b6b38bd103587bec698ef8bfa6fc1eca198cf371a05427efd0b9100615abdbd5
3
- size 374587
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24cd47460a4e12244cf3b7f7de3902be403e0466c77da2537d5c747ecd2e8c4d
3
+ size 374577
models/tokenizer/an_tokenizer_8k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/an_vocabulary.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:899ce817bf3d0cd63c52370382d0c8f7e06c5beb0c78ed09f131cf1aafd3d182
3
- size 2932502
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6edbfc40a426299cd59549a074009433199230abdf905b5190070b6c0275b690
3
+ size 2944293
models/vocabulary/an_vocabulary_metadata.json CHANGED
@@ -1,17 +1,17 @@
1
  {
2
  "language": "an",
3
- "vocabulary_size": 182961,
4
  "variant": "full",
5
  "statistics": {
6
- "type_token_ratio": 0.03129810058501218,
7
  "coverage": {
8
- "top_100": 0.4415954090654393,
9
- "top_1000": 0.6581393006575422,
10
- "top_5000": 0.793948937884549,
11
- "top_10000": 0.8454613838789675
12
  },
13
- "hapax_count": 184348,
14
- "hapax_ratio": 0.50188805610535,
15
- "total_documents": 49679
16
  }
17
  }
 
1
  {
2
  "language": "an",
3
+ "vocabulary_size": 183928,
4
  "variant": "full",
5
  "statistics": {
6
+ "type_token_ratio": 0.031130701540467178,
7
  "coverage": {
8
+ "top_100": 0.4412633632212311,
9
+ "top_1000": 0.6580607382657693,
10
+ "top_5000": 0.7940228593838857,
11
+ "top_10000": 0.8455141690008805
12
  },
13
+ "hapax_count": 184865,
14
+ "hapax_ratio": 0.5012703603376419,
15
+ "total_documents": 50295
16
  }
17
  }
models/word_markov/an_markov_ctx1_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:24ca3e38b9546b9a06f5df3b46ba1a09d874251e2d187e8bdb92e634b9a97756
3
- size 23502911
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b2b7d443bdb24601458b682628e19a693091fcc060312b8c29b8d0aeca42d42
3
+ size 23695943
models/word_markov/an_markov_ctx1_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "an",
5
- "unique_contexts": 367064,
6
- "total_transitions": 11686145
7
  }
 
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "an",
5
+ "unique_contexts": 368549,
6
+ "total_transitions": 11796306
7
  }
models/word_markov/an_markov_ctx2_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c73b675412ec88a37c27f3ed414e5087949843a731d927309077f06614513901
3
- size 65110098
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8a94e65ec2e1cbb3239d99357349f5de3f99c8f328da97ec36993f6bcaf9b2c
3
+ size 65492964
models/word_markov/an_markov_ctx2_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "an",
5
- "unique_contexts": 2775765,
6
- "total_transitions": 11636466
7
  }
 
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "an",
5
+ "unique_contexts": 2791626,
6
+ "total_transitions": 11746011
7
  }