omarkamali commited on
Commit
b7c9fa4
·
verified ·
1 Parent(s): f085801

Upload all models and assets for ast (20251001)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +313 -153
  2. models/embeddings/monolingual/ast_128d.bin +2 -2
  3. models/embeddings/monolingual/ast_128d_metadata.json +5 -3
  4. models/embeddings/monolingual/ast_32d.bin +2 -2
  5. models/embeddings/monolingual/ast_32d_metadata.json +5 -3
  6. models/embeddings/monolingual/ast_64d.bin +2 -2
  7. models/embeddings/monolingual/ast_64d_metadata.json +5 -3
  8. models/subword_markov/ast_markov_ctx1_subword.parquet +2 -2
  9. models/subword_markov/ast_markov_ctx1_subword_metadata.json +2 -2
  10. models/subword_markov/ast_markov_ctx2_subword.parquet +2 -2
  11. models/subword_markov/ast_markov_ctx2_subword_metadata.json +2 -2
  12. models/subword_markov/ast_markov_ctx3_subword.parquet +2 -2
  13. models/subword_markov/ast_markov_ctx3_subword_metadata.json +2 -2
  14. models/subword_markov/ast_markov_ctx4_subword.parquet +2 -2
  15. models/subword_markov/ast_markov_ctx4_subword_metadata.json +2 -2
  16. models/subword_ngram/ast_2gram_subword.parquet +2 -2
  17. models/subword_ngram/ast_2gram_subword_metadata.json +2 -2
  18. models/subword_ngram/ast_3gram_subword.parquet +2 -2
  19. models/subword_ngram/ast_3gram_subword_metadata.json +2 -2
  20. models/subword_ngram/ast_4gram_subword.parquet +2 -2
  21. models/subword_ngram/ast_4gram_subword_metadata.json +2 -2
  22. models/tokenizer/ast_tokenizer_16k.model +2 -2
  23. models/tokenizer/ast_tokenizer_16k.vocab +0 -0
  24. models/tokenizer/ast_tokenizer_32k.model +2 -2
  25. models/tokenizer/ast_tokenizer_32k.vocab +0 -0
  26. models/tokenizer/ast_tokenizer_64k.model +2 -2
  27. models/tokenizer/ast_tokenizer_64k.vocab +0 -0
  28. models/tokenizer/ast_tokenizer_8k.model +2 -2
  29. models/tokenizer/ast_tokenizer_8k.vocab +0 -0
  30. models/vocabulary/ast_vocabulary.parquet +2 -2
  31. models/vocabulary/ast_vocabulary_metadata.json +10 -9
  32. models/word_markov/ast_markov_ctx1_word.parquet +2 -2
  33. models/word_markov/ast_markov_ctx1_word_metadata.json +2 -2
  34. models/word_markov/ast_markov_ctx2_word.parquet +2 -2
  35. models/word_markov/ast_markov_ctx2_word_metadata.json +2 -2
  36. models/word_markov/ast_markov_ctx3_word.parquet +2 -2
  37. models/word_markov/ast_markov_ctx3_word_metadata.json +2 -2
  38. models/word_markov/ast_markov_ctx4_word.parquet +2 -2
  39. models/word_markov/ast_markov_ctx4_word_metadata.json +2 -2
  40. models/word_ngram/ast_2gram_word.parquet +2 -2
  41. models/word_ngram/ast_2gram_word_metadata.json +2 -2
  42. models/word_ngram/ast_3gram_word.parquet +2 -2
  43. models/word_ngram/ast_3gram_word_metadata.json +2 -2
  44. models/word_ngram/ast_4gram_word.parquet +2 -2
  45. models/word_ngram/ast_4gram_word_metadata.json +2 -2
  46. visualizations/embedding_isotropy.png +0 -0
  47. visualizations/embedding_norms.png +0 -0
  48. visualizations/embedding_similarity.png +2 -2
  49. visualizations/markov_branching.png +0 -0
  50. visualizations/markov_contexts.png +0 -0
README.md CHANGED
@@ -23,14 +23,14 @@ dataset_info:
23
  metrics:
24
  - name: best_compression_ratio
25
  type: compression
26
- value: 3.924
27
  - name: best_isotropy
28
  type: isotropy
29
- value: 0.7692
30
  - name: vocabulary_size
31
  type: vocab
32
- value: 654549
33
- generated: 2025-12-27
34
  ---
35
 
36
  # AST - Wikilangs Models
@@ -44,12 +44,13 @@ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and
44
  ### Models & Assets
45
 
46
  - Tokenizers (8k, 16k, 32k, 64k)
47
- - N-gram models (2, 3, 4-gram)
48
- - Markov chains (context of 1, 2, 3 and 4)
49
  - Subword N-gram and Markov chains
50
- - Embeddings in various sizes and dimensions
51
  - Language Vocabulary
52
  - Language Statistics
 
53
  ![Performance Dashboard](visualizations/performance_dashboard.png)
54
 
55
  ### Analysis and Evaluation
@@ -59,7 +60,8 @@ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and
59
  - [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
60
  - [4. Vocabulary Analysis](#4-vocabulary-analysis)
61
  - [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
62
- - [6. Summary & Recommendations](#6-summary--recommendations)
 
63
  - [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
64
  - [Visualizations Index](#visualizations-index)
65
 
@@ -68,71 +70,57 @@ We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and
68
 
69
  ![Tokenizer Compression](visualizations/tokenizer_compression.png)
70
 
 
 
 
 
 
 
71
  ### Results
72
 
73
  | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
74
  |------------|-------------|---------------|----------|--------------|
75
- | **8k** | 3.259x | 3.22 | 0.0290% | 1,033,064 |
76
- | **16k** | 3.531x | 3.48 | 0.0315% | 953,475 |
77
- | **32k** | 3.753x | 3.70 | 0.0334% | 897,137 |
78
- | **64k** | 3.924x 🏆 | 3.87 | 0.0350% | 858,173 |
79
 
80
  ### Tokenization Examples
81
 
82
  Below are sample sentences tokenized with each vocabulary size:
83
 
84
- **Sample 1:** `Fechos
85
-
86
- Personaxes importantes
87
-
88
- Referencies
89
-
90
- Enllaces esternos
91
-
92
- Categoría...`
93
 
94
  | Vocab | Tokens | Count |
95
  |-------|--------|-------|
96
- | 8k | `▁fechos ▁personaxesimportantes ▁referencies ▁enllacesesternoscategoría : sieglu viii ... (+4 more)` | 14 |
97
- | 16k | `▁fechos ▁personaxesimportantes ▁referencies ▁enllacesesternoscategoría : sieglu viii ... (+4 more)` | 14 |
98
- | 32k | `▁fechospersonaxes ▁importantesreferenciesenllacesesternoscategoría : sieglu viii ... (+4 more)` | 14 |
99
- | 64k | `▁fechospersonaxesimportantesreferenciesenllacesesternoscategoría : sieglu viii ... (+4 more)` | 14 |
100
 
101
- **Sample 2:** `Armental ye un llugar de la parroquia de Talarén nel conceyu asturianu de Navia....`
102
 
103
  | Vocab | Tokens | Count |
104
  |-------|--------|-------|
105
- | 8k | `▁ar mental ▁yeunllugarde ▁laparroquiadetal ... (+18 more)` | 28 |
106
- | 16k | `▁ar mentalyeunllugar ▁delaparroquiade ▁tal ... (+18 more)` | 28 |
107
- | 32k | `▁ar mentalyeunllugar ▁delaparroquiade ▁tal ... (+16 more)` | 26 |
108
- | 64k | `▁ar mentalyeunllugar ▁delaparroquiade ▁tal ... (+16 more)` | 26 |
109
-
110
- **Sample 3:** `Fechos
111
- -
112
-
113
- Nacencies
114
- -
115
-
116
- Muertes
117
- -
118
-
119
- Referencies
120
 
121
- Enllaces esternos
122
- ...`
123
 
124
  | Vocab | Tokens | Count |
125
  |-------|--------|-------|
126
- | 8k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁- ▁referencies ▁enllacesesternoscategoría ... (+7 more)` | 17 |
127
- | 16k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁- ▁referenciesenllacesesternoscategoría ... (+7 more)` | 17 |
128
- | 32k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁-referenciesenllacesesternoscategoría ... (+7 more)` | 17 |
129
- | 64k | `▁fechos ▁- ▁nacencies ▁-muertes ▁- referenciesenllacesesternoscategoría ... (+7 more)` | 17 |
130
 
131
 
132
  ### Key Findings
133
 
134
- - **Best Compression:** 64k achieves 3.924x compression
135
- - **Lowest UNK Rate:** 8k with 0.0290% unknown tokens
136
  - **Trade-off:** Larger vocabularies improve compression but increase model size
137
  - **Recommendation:** 32k vocabulary provides optimal balance for production use
138
 
@@ -141,57 +129,89 @@ Categoría...`
141
 
142
  ![N-gram Perplexity](visualizations/ngram_perplexity.png)
143
 
 
 
144
  ![N-gram Coverage](visualizations/ngram_coverage.png)
145
 
146
  ### Results
147
 
148
- | N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
149
- |--------|------------|---------|----------------|------------------|-------------------|
150
- | **2-gram** | 95,540 🏆 | 16.54 | 1,568,799 | 13.6% | 26.9% |
151
- | **2-gram** | 311 🏆 | 8.28 | 23,389 | 65.5% | 98.4% |
152
- | **3-gram** | 573,984 | 19.13 | 3,974,147 | 5.1% | 13.4% |
153
- | **3-gram** | 2,766 | 11.43 | 195,082 | 25.8% | 68.5% |
154
- | **4-gram** | 1,609,317 | 20.62 | 7,247,181 | 3.9% | 9.3% |
155
- | **4-gram** | 16,954 | 14.05 | 1,178,742 | 12.7% | 37.0% |
156
 
157
  ### Top 5 N-grams by Size
158
 
159
- **2-grams:**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
  | Rank | N-gram | Count |
162
  |------|--------|-------|
163
- | 1 | `d '` | 1,196,313 |
164
- | 2 | `de la` | 875,667 |
165
- | 3 | `' l` | 534,478 |
166
- | 4 | `| |` | 438,858 |
167
- | 5 | `l '` | 403,691 |
168
 
169
- **3-grams:**
170
 
171
  | Rank | N-gram | Count |
172
  |------|--------|-------|
173
- | 1 | `| - |` | 128,285 |
174
- | 2 | `referencies enllaces esternos` | 104,162 |
175
- | 3 | `- | |` | 89,758 |
176
- | 4 | `- - -` | 81,514 |
177
- | 5 | `d ' un` | 69,529 |
178
 
179
- **4-grams:**
180
 
181
  | Rank | N-gram | Count |
182
  |------|--------|-------|
183
- | 1 | `- - - -` | 69,470 |
184
- | 2 | `enllaces esternos categoría :` | 63,833 |
185
- | 3 | `referencies enllaces esternos categoría` | 60,665 |
186
- | 4 | `. referencies enllaces esternos` | 51,144 |
187
- | 5 | `| linear | -` | 50,481 |
188
 
189
 
190
  ### Key Findings
191
 
192
- - **Best Perplexity:** 2-gram with 311
193
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
194
- - **Coverage:** Top-1000 patterns cover ~37% of corpus
195
  - **Recommendation:** 4-gram or 5-gram for best predictive performance
196
 
197
  ---
@@ -199,55 +219,86 @@ Categoría...`
199
 
200
  ![Markov Entropy](visualizations/markov_entropy.png)
201
 
 
 
202
  ![Markov Branching](visualizations/markov_branching.png)
203
 
204
  ### Results
205
 
206
- | Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
207
- |---------|-------------|------------|------------------|-----------------|----------------|
208
- | **1** | 0.7150 | 1.641 | 8.69 | 1,669,949 | 28.5% |
209
- | **1** | 1.5193 | 2.866 | 10.68 | 8,875 | 0.0% |
210
- | **2** | 0.4611 | 1.377 | 2.90 | 14,499,551 | 53.9% |
211
- | **2** | 0.7271 | 1.655 | 4.90 | 94,766 | 27.3% |
212
- | **3** | 0.2234 | 1.167 | 1.58 | 42,031,886 | 77.7% |
213
- | **3** | 0.8068 | 1.749 | 4.59 | 464,259 | 19.3% |
214
- | **4** | 0.1062 🏆 | 1.076 | 1.22 | 66,322,442 | 89.4% |
215
- | **4** | 0.7182 🏆 | 1.645 | 3.49 | 2,131,889 | 28.2% |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
 
217
- ### Generated Text Samples
218
 
219
- Below are text samples generated from each Markov chain model:
220
 
221
  **Context Size 1:**
222
 
223
- 1. `de gossip girl play ye como xenofonte en dussel , y el 7 d ' amuesa`
224
- 2. `, pero la botánica referencies ver , collaboró en valdivia . mientres la humanidá al chinu`
225
- 3. `. ( 2 ) - ḥḏ horusmuriu blancumennefermenfismit rahina . isbn 0 british lion , yera`
226
 
227
  **Context Size 2:**
228
 
229
- 1. `d ' ellos yera detectáu polos enemigos . shiva prakash ( 1997 ) , nel conceyu sevillanu`
230
- 2. `de la litografía y l ' ala posterior : chronica majora : una « inocente ya inconsciente`
231
- 3. `' l xeneral prats tamién pudo ante fernando verdasco david ferrer por 6 - 2 | ríu`
232
 
233
  **Context Size 3:**
234
 
235
- 1. `| - | 38378 - | | 1997 tb18 | | 4 | align = right | [`
236
- 2. `referencies enllaces esternos categoría : montserrat`
237
- 3. `- | | 2001 sd35 | | 16 | | 592 | | < small > 1911 <`
238
 
239
  **Context Size 4:**
240
 
241
- 1. `- - - - - - - - - - - - - - - - - - -`
242
- 2. `enllaces esternos categoría : pintores de parís categoría : sabios de la torre eiffel , los nacional...`
243
- 3. `referencies enllaces esternos categoría : comuñes de nord`
244
 
245
 
246
  ### Key Findings
247
 
248
- - **Best Predictability:** Context-4 with 89.4% predictability
249
  - **Branching Factor:** Decreases with context size (more deterministic)
250
- - **Memory Trade-off:** Larger contexts require more storage (2,131,889 contexts)
251
  - **Recommendation:** Context-3 or Context-4 for text generation
252
 
253
  ---
@@ -263,64 +314,64 @@ Below are text samples generated from each Markov chain model:
263
 
264
  | Metric | Value |
265
  |--------|-------|
266
- | Vocabulary Size | 654,549 |
267
- | Total Tokens | 80,184,102 |
268
- | Mean Frequency | 122.50 |
269
  | Median Frequency | 4 |
270
- | Frequency Std Dev | 8722.95 |
271
 
272
  ### Most Common Words
273
 
274
  | Rank | Word | Frequency |
275
  |------|------|-----------|
276
- | 1 | de | 5,075,921 |
277
- | 2 | la | 2,521,840 |
278
- | 3 | y | 2,071,360 |
279
- | 4 | d | 1,229,266 |
280
- | 5 | a | 1,176,335 |
281
- | 6 | del | 1,090,980 |
282
- | 7 | en | 1,071,173 |
283
- | 8 | que | 1,020,518 |
284
- | 9 | los | 971,499 |
285
- | 10 | l | 968,352 |
286
 
287
  ### Least Common Words (from vocabulary)
288
 
289
  | Rank | Word | Frequency |
290
  |------|------|-----------|
291
- | 1 | leptafeke | 2 |
292
- | 2 | haua | 2 |
293
- | 3 | küzdoblani | 2 |
294
- | 4 | contrarrellatu | 2 |
295
- | 5 | semilleru | 2 |
296
- | 6 | bisterca | 2 |
297
- | 7 | šafarsko | 2 |
298
- | 8 | vyfalu | 2 |
299
- | 9 | ribich | 2 |
300
- | 10 | lacos | 2 |
301
 
302
  ### Zipf's Law Analysis
303
 
304
  | Metric | Value |
305
  |--------|-------|
306
- | Zipf Coefficient | 1.0077 |
307
- | R² (Goodness of Fit) | 0.995140 |
308
  | Adherence Quality | **excellent** |
309
 
310
  ### Coverage Analysis
311
 
312
  | Top N Words | Coverage |
313
  |-------------|----------|
314
- | Top 100 | 40.0% |
315
- | Top 1,000 | 60.0% |
316
- | Top 5,000 | 76.4% |
317
- | Top 10,000 | 82.7% |
318
 
319
  ### Key Findings
320
 
321
- - **Zipf Compliance:** R²=0.9951 indicates excellent adherence to Zipf's law
322
- - **High Frequency Dominance:** Top 100 words cover 40.0% of corpus
323
- - **Long Tail:** 644,549 words needed for remaining 17.3% coverage
324
 
325
  ---
326
  ## 5. Word Embeddings Evaluation
@@ -333,24 +384,130 @@ Below are text samples generated from each Markov chain model:
333
 
334
  ![t-SNE Sentences](visualizations/tsne_sentences.png)
335
 
336
- ### Model Comparison
337
 
338
- | Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
339
- |-------|------------|-----------|----------|----------|----------|
340
- | **mono_32d** | 510,373 | 32 | 3.008 | 0.935 | 0.7692 🏆 |
341
- | **mono_64d** | 510,373 | 64 | 3.395 | 0.938 | 0.7616 |
342
- | **mono_128d** | 510,373 | 128 | 3.842 | 0.965 | 0.6988 |
343
- | **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
 
 
 
 
 
 
344
 
345
  ### Key Findings
346
 
347
- - **Best Isotropy:** mono_32d with 0.7692 (more uniform distribution)
348
- - **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
349
- - **Vocabulary Coverage:** All models cover 510,373 words
350
- - **Recommendation:** 100d for balanced semantic capture and efficiency
351
 
352
  ---
353
- ## 6. Summary & Recommendations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
354
 
355
  ![Performance Dashboard](visualizations/performance_dashboard.png)
356
 
@@ -358,11 +515,12 @@ Below are text samples generated from each Markov chain model:
358
 
359
  | Component | Recommended | Rationale |
360
  |-----------|-------------|-----------|
361
- | Tokenizer | **32k BPE** | Best compression (3.92x) with low UNK rate |
362
- | N-gram | **5-gram** | Lowest perplexity (311) |
363
- | Markov | **Context-4** | Highest predictability (89.4%) |
364
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
365
 
 
366
  ---
367
  ## Appendix: Metrics Glossary & Interpretation Guide
368
 
@@ -552,7 +710,8 @@ If you use these models in your research, please cite:
552
  author = {Kamali, Omar},
553
  title = {Wikilangs: Open NLP Models for Wikipedia Languages},
554
  year = {2025},
555
- publisher = {HuggingFace},
 
556
  url = {https://huggingface.co/wikilangs}
557
  institution = {Omneity Labs}
558
  }
@@ -568,7 +727,8 @@ MIT License - Free for academic and commercial use.
568
  - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
569
  - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
570
  - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
 
571
  ---
572
  *Generated by Wikilangs Models Pipeline*
573
 
574
- *Report Date: 2025-12-27 20:35:27*
 
23
  metrics:
24
  - name: best_compression_ratio
25
  type: compression
26
+ value: 4.427
27
  - name: best_isotropy
28
  type: isotropy
29
+ value: 0.7909
30
  - name: vocabulary_size
31
  type: vocab
32
+ value: 0
33
+ generated: 2026-01-03
34
  ---
35
 
36
  # AST - Wikilangs Models
 
44
  ### Models & Assets
45
 
46
  - Tokenizers (8k, 16k, 32k, 64k)
47
+ - N-gram models (2, 3, 4, 5-gram)
48
+ - Markov chains (context of 1, 2, 3, 4 and 5)
49
  - Subword N-gram and Markov chains
50
+ - Embeddings in various sizes and dimensions (aligned and unaligned)
51
  - Language Vocabulary
52
  - Language Statistics
53
+
54
  ![Performance Dashboard](visualizations/performance_dashboard.png)
55
 
56
  ### Analysis and Evaluation
 
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)
67
 
 
70
 
71
  ![Tokenizer Compression](visualizations/tokenizer_compression.png)
72
 
73
+ ![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
74
+
75
+ ![Tokenizer OOV](visualizations/tokenizer_oov.png)
76
+
77
+ ![Total Tokens](visualizations/tokenizer_total_tokens.png)
78
+
79
  ### Results
80
 
81
  | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
82
  |------------|-------------|---------------|----------|--------------|
83
+ | **8k** | 3.569x | 3.57 | 0.0259% | 871,221 |
84
+ | **16k** | 3.921x | 3.92 | 0.0285% | 793,006 |
85
+ | **32k** | 4.204x | 4.21 | 0.0306% | 739,567 |
86
+ | **64k** | 4.427x 🏆 | 4.43 | 0.0322% | 702,254 |
87
 
88
  ### Tokenization Examples
89
 
90
  Below are sample sentences tokenized with each vocabulary size:
91
 
92
+ **Sample 1:** `Luiz Diallisson de Souza Alves ye un futbolista brasilanu. Clubes Kuban Referenc...`
 
 
 
 
 
 
 
 
93
 
94
  | Vocab | Tokens | Count |
95
  |-------|--------|-------|
96
+ | 8k | `▁lu izdi all is son desou zaal ... (+14 more)` | 24 |
97
+ | 16k | `▁lu izdi all is son desou zaal ... (+14 more)` | 24 |
98
+ | 32k | `▁luizdi all is son desouzaalvesyeun ... (+11 more)` | 21 |
99
+ | 64k | `▁luizdi all isson desouzaalvesyeunfutbolista ... (+10 more)` | 20 |
100
 
101
+ **Sample 2:** `Vagner da Silva Sarti ye un ex-futbolista brasilanu. Clubes Referencies Enllaces...`
102
 
103
  | Vocab | Tokens | Count |
104
  |-------|--------|-------|
105
+ | 8k | `▁va gn erdasilvasar tiyeunex ... (+10 more)` | 20 |
106
+ | 16k | `▁va gnerdasilvasar tiyeunex - ... (+9 more)` | 19 |
107
+ | 32k | `▁va gnerdasilvasar tiyeunex - ... (+9 more)` | 19 |
108
+ | 64k | `▁va gnerdasilvasar tiyeunex - ... (+9 more)` | 19 |
 
 
 
 
 
 
 
 
 
 
 
109
 
110
+ **Sample 3:** `(MMLXXXII) va ser un añu normal entamáu en xueves nel calendariu gregorianu. Ref...`
 
111
 
112
  | Vocab | Tokens | Count |
113
  |-------|--------|-------|
114
+ | 8k | `▁( m m l xx x ii )vaser ... (+17 more)` | 27 |
115
+ | 16k | `▁( mm l xx x ii )vaserun ... (+14 more)` | 24 |
116
+ | 32k | `▁( mm l xx xii )vaserunañu ... (+12 more)` | 22 |
117
+ | 64k | `▁( mm lxx xii ) vaserunañunormal ... (+11 more)` | 21 |
118
 
119
 
120
  ### Key Findings
121
 
122
+ - **Best Compression:** 64k achieves 4.427x compression
123
+ - **Lowest UNK Rate:** 8k with 0.0259% unknown tokens
124
  - **Trade-off:** Larger vocabularies improve compression but increase model size
125
  - **Recommendation:** 32k vocabulary provides optimal balance for production use
126
 
 
129
 
130
  ![N-gram Perplexity](visualizations/ngram_perplexity.png)
131
 
132
+ ![N-gram Unique](visualizations/ngram_unique.png)
133
+
134
  ![N-gram Coverage](visualizations/ngram_coverage.png)
135
 
136
  ### Results
137
 
138
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
139
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
140
+ | **2-gram** | Word | 133,027 | 17.02 | 1,354,323 | 9.8% | 21.6% |
141
+ | **2-gram** | Subword | 260 🏆 | 8.02 | 19,069 | 69.7% | 99.1% |
142
+ | **3-gram** | Word | 646,899 | 19.30 | 2,908,394 | 4.2% | 10.7% |
143
+ | **3-gram** | Subword | 2,223 | 11.12 | 139,212 | 28.0% | 72.3% |
144
+ | **4-gram** | Word | 1,559,764 | 20.57 | 4,707,856 | 3.3% | 7.5% |
145
+ | **4-gram** | Subword | 13,372 | 13.71 | 791,795 | 13.9% | 39.3% |
146
 
147
  ### Top 5 N-grams by Size
148
 
149
+ **2-grams (Word):**
150
+
151
+ | Rank | N-gram | Count |
152
+ |------|--------|-------|
153
+ | 1 | `de la` | 891,402 |
154
+ | 2 | `de los` | 329,410 |
155
+ | 3 | `la so` | 220,083 |
156
+ | 4 | `a la` | 215,036 |
157
+ | 5 | `de les` | 208,071 |
158
+
159
+ **3-grams (Word):**
160
+
161
+ | Rank | N-gram | Count |
162
+ |------|--------|-------|
163
+ | 1 | `referencies enllaces esternos` | 101,643 |
164
+ | 2 | `de la so` | 48,838 |
165
+ | 3 | `d estaos xuníos` | 34,333 |
166
+ | 4 | `enllaces esternos de` | 33,237 |
167
+ | 5 | `una población de` | 30,269 |
168
+
169
+ **4-grams (Word):**
170
+
171
+ | Rank | N-gram | Count |
172
+ |------|--------|-------|
173
+ | 1 | `referencies enllaces esternos de` | 32,314 |
174
+ | 2 | `tien una población de` | 26,720 |
175
+ | 3 | `una población de y` | 19,598 |
176
+ | 4 | `y una superficie de` | 19,554 |
177
+ | 5 | `una superficie de km` | 19,519 |
178
+
179
+ **2-grams (Subword):**
180
 
181
  | Rank | N-gram | Count |
182
  |------|--------|-------|
183
+ | 1 | `a _` | 12,346,491 |
184
+ | 2 | `e _` | 10,275,492 |
185
+ | 3 | `s _` | 10,054,248 |
186
+ | 4 | `_ d` | 9,863,919 |
187
+ | 5 | `e s` | 9,411,923 |
188
 
189
+ **3-grams (Subword):**
190
 
191
  | Rank | N-gram | Count |
192
  |------|--------|-------|
193
+ | 1 | `_ d e` | 7,215,701 |
194
+ | 2 | `d e _` | 5,349,035 |
195
+ | 3 | `e s _` | 4,769,369 |
196
+ | 4 | `o s _` | 3,909,790 |
197
+ | 5 | `l a _` | 3,068,189 |
198
 
199
+ **4-grams (Subword):**
200
 
201
  | Rank | N-gram | Count |
202
  |------|--------|-------|
203
+ | 1 | `_ d e _` | 4,975,922 |
204
+ | 2 | `_ l a _` | 2,468,941 |
205
+ | 3 | `d e _ l` | 1,667,072 |
206
+ | 4 | `a _ d e` | 1,422,241 |
207
+ | 5 | `s _ d e` | 1,380,334 |
208
 
209
 
210
  ### Key Findings
211
 
212
+ - **Best Perplexity:** 2-gram (subword) with 260
213
  - **Entropy Trend:** Decreases with larger n-grams (more predictable)
214
+ - **Coverage:** Top-1000 patterns cover ~39% of corpus
215
  - **Recommendation:** 4-gram or 5-gram for best predictive performance
216
 
217
  ---
 
219
 
220
  ![Markov Entropy](visualizations/markov_entropy.png)
221
 
222
+ ![Markov Contexts](visualizations/markov_contexts.png)
223
+
224
  ![Markov Branching](visualizations/markov_branching.png)
225
 
226
  ### Results
227
 
228
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
229
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
230
+ | **1** | Word | 1.0381 | 2.054 | 12.99 | 1,204,316 | 0.0% |
231
+ | **1** | Subword | 1.1983 | 2.295 | 7.97 | 10,463 | 0.0% |
232
+ | **2** | Word | 0.4193 | 1.337 | 2.57 | 15,634,564 | 58.1% |
233
+ | **2** | Subword | 0.6558 | 1.576 | 4.28 | 83,437 | 34.4% |
234
+ | **3** | Word | 0.1865 | 1.138 | 1.44 | 40,202,890 | 81.4% |
235
+ | **3** | Subword | 0.6846 | 1.607 | 4.03 | 357,207 | 31.5% |
236
+ | **4** | Word | 0.0789 🏆 | 1.056 | 1.15 | 57,817,277 | 92.1% |
237
+ | **4** | Subword | 0.6846 | 1.607 | 3.51 | 1,439,883 | 31.5% |
238
+
239
+ ### Generated Text Samples (Word-based)
240
+
241
+ Below are text samples generated from each word-based Markov chain model:
242
+
243
+ **Context Size 1:**
244
+
245
+ 1. `de xunu empieza a centros multimodales funciones nel nectariu semilunar o n ucraín y comunicaciones ...`
246
+ 2. `la pieza cornelius coffin fit cuando el algebasó 503 mariña d una solución bonal o nun`
247
+ 3. `y 15 m sobre l uniforme del postreru gran midida china tales from here mirror weekly`
248
+
249
+ **Context Size 2:**
250
+
251
+ 1. `de la provincia dende esti tornéu surdió en y persuadió a eliza dushku en películes d estudiante`
252
+ 2. `de los documentos relativos al mercáu l so antiguu nome dau más tarde l empresariu estremeñu dueñu`
253
+ 3. `la so base na isla parker llogró atrapar la pelota vasca que se llevó a empecipiar una`
254
+
255
+ **Context Size 3:**
256
+
257
+ 1. `referencies enllaces esternos el salín nel suelu y ente vexetación trupa sicasí en marismas y ribere...`
258
+ 2. `de la so agua h havagazı gas o otobüs bus y t troleybüs trolebús magar que los entamos`
259
+ 3. `enllaces esternos de côte d or na rexón de gran este llenda con tien una población de 1`
260
+
261
+ **Context Size 4:**
262
+
263
+ 1. `referencies enllaces esternos de saboya de francia de bretaña de dreux de bretaña`
264
+ 2. `tien una población de 1 690 471 habitantes y un puertu fluvial sobre l paraná amás tien importancia ...`
265
+ 3. `una población de y una superficie de km ver tamién referencies enllaces esternos de xapón de la pref...`
266
+
267
 
268
+ ### Generated Text Samples (Subword-based)
269
 
270
+ Below are text samples generated from each subword-based Markov chain model:
271
 
272
  **Context Size 1:**
273
 
274
+ 1. `_fén_an_yaconyíc`
275
+ 2. `er,_ciesunton_a_`
276
+ 3. `a_tostelociz_ce_`
277
 
278
  **Context Size 2:**
279
 
280
+ 1. `a_gasainel_tabaro`
281
+ 2. `e_es_de_y_chel_má`
282
+ 3. `s_astamudia_de_ll`
283
 
284
  **Context Size 3:**
285
 
286
+ 1. `_de_scharacióse_le`
287
+ 2. `de_tragar_primera_`
288
+ 3. `es_so_títulu_miliz`
289
 
290
  **Context Size 4:**
291
 
292
+ 1. `_de_los_sobres_del_`
293
+ 2. `_la_ermistoria_dife`
294
+ 3. `de_los_xeneia,_cons`
295
 
296
 
297
  ### Key Findings
298
 
299
+ - **Best Predictability:** Context-4 (word) with 92.1% predictability
300
  - **Branching Factor:** Decreases with context size (more deterministic)
301
+ - **Memory Trade-off:** Larger contexts require more storage (1,439,883 contexts)
302
  - **Recommendation:** Context-3 or Context-4 for text generation
303
 
304
  ---
 
314
 
315
  | Metric | Value |
316
  |--------|-------|
317
+ | Vocabulary Size | 555,056 |
318
+ | Total Tokens | 75,071,637 |
319
+ | Mean Frequency | 135.25 |
320
  | Median Frequency | 4 |
321
+ | Frequency Std Dev | 9337.66 |
322
 
323
  ### Most Common Words
324
 
325
  | Rank | Word | Frequency |
326
  |------|------|-----------|
327
+ | 1 | de | 4,994,843 |
328
+ | 2 | la | 2,512,518 |
329
+ | 3 | y | 2,055,358 |
330
+ | 4 | d | 1,181,646 |
331
+ | 5 | a | 1,163,388 |
332
+ | 6 | del | 1,091,464 |
333
+ | 7 | en | 1,070,328 |
334
+ | 8 | que | 1,013,684 |
335
+ | 9 | los | 966,280 |
336
+ | 10 | l | 958,680 |
337
 
338
  ### Least Common Words (from vocabulary)
339
 
340
  | Rank | Word | Frequency |
341
  |------|------|-----------|
342
+ | 1 | sverlo | 2 |
343
+ | 2 | kmca | 2 |
344
+ | 3 | antimaterialistas | 2 |
345
+ | 4 | infectados | 2 |
346
+ | 5 | historietistas | 2 |
347
+ | 6 | curtmetratxe | 2 |
348
+ | 7 | rugna | 2 |
349
+ | 8 | lleáu | 2 |
350
+ | 9 | queña | 2 |
351
+ | 10 | nkoghe | 2 |
352
 
353
  ### Zipf's Law Analysis
354
 
355
  | Metric | Value |
356
  |--------|-------|
357
+ | Zipf Coefficient | 0.9991 |
358
+ | R² (Goodness of Fit) | 0.995555 |
359
  | Adherence Quality | **excellent** |
360
 
361
  ### Coverage Analysis
362
 
363
  | Top N Words | Coverage |
364
  |-------------|----------|
365
+ | Top 100 | 41.7% |
366
+ | Top 1,000 | 60.8% |
367
+ | Top 5,000 | 76.8% |
368
+ | Top 10,000 | 83.1% |
369
 
370
  ### Key Findings
371
 
372
+ - **Zipf Compliance:** R²=0.9956 indicates excellent adherence to Zipf's law
373
+ - **High Frequency Dominance:** Top 100 words cover 41.7% of corpus
374
+ - **Long Tail:** 545,056 words needed for remaining 16.9% coverage
375
 
376
  ---
377
  ## 5. Word Embeddings Evaluation
 
384
 
385
  ![t-SNE Sentences](visualizations/tsne_sentences.png)
386
 
 
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.7909 🏆 | 0.3827 | N/A | N/A |
398
+ | **mono_64d** | 64 | 0.7802 | 0.3065 | N/A | N/A |
399
+ | **mono_128d** | 128 | 0.7192 | 0.2391 | N/A | N/A |
400
 
401
  ### Key Findings
402
 
403
+ - **Best Isotropy:** mono_32d with 0.7909 (more uniform distribution)
404
+ - **Semantic Density:** Average pairwise similarity of 0.3094. 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
+
424
+ These are the most productive prefixes and suffixes identified by sampling the vocabulary for global substitutability patterns. A unit is considered an affix if stripping it leaves a valid stem that appears in other contexts.
425
+
426
+ #### Productive Prefixes
427
+ | Prefix | Examples |
428
+ |--------|----------|
429
+ | `-co` | comíen, compelidos, conciliable |
430
+ | `-ma` | maravíase, maça, matematización |
431
+ | `-re` | reescalada, reprimió, reconociéralu |
432
+ | `-de` | deduz, declaratorio, desfila |
433
+ | `-ca` | caminómetru, castromil, caecilia |
434
+
435
+ #### Productive Suffixes
436
+ | Suffix | Examples |
437
+ |--------|----------|
438
+ | `-s` | phrygilus, anticolinérgicos, friulianos |
439
+ | `-a` | raksasa, estendería, reescalada |
440
+ | `-es` | ibes, distopíes, ziríes |
441
+ | `-os` | anticolinérgicos, friulianos, afogadiegos |
442
+ | `-se` | esmoreciérase, maravíase, cuayábase |
443
+ | `-as` | monarquistas, gorgas, mimeografiadas |
444
+ | `-en` | altshausen, comíen, blegen |
445
+
446
+ ### 6.3 Bound Stems (Lexical Roots)
447
+
448
+ Bound stems are high-frequency subword units that are semantically cohesive but rarely appear as standalone words. These often correspond to the 'core' of a word that requires inflection or derivation to be valid.
449
+
450
+ | Stem | Cohesion | Substitutability | Examples |
451
+ |------|----------|------------------|----------|
452
+ | `iend` | 1.80x | 206 contexts | fiend, iendo, viendi |
453
+ | `renc` | 2.05x | 99 contexts | frenc, wrench, rencor |
454
+ | `ient` | 1.67x | 271 contexts | vient, iente, aient |
455
+ | `enci` | 1.52x | 262 contexts | venci, benci, cenci |
456
+ | `acio` | 1.63x | 166 contexts | nacio, cacio, tacio |
457
+ | `ació` | 1.79x | 94 contexts | lació, xació, ñació |
458
+ | `nter` | 1.38x | 335 contexts | inter, enter, unter |
459
+ | `ontr` | 1.63x | 118 contexts | contr, contra, montra |
460
+ | `ener` | 1.42x | 205 contexts | enerc, tener, enero |
461
+ | `ntos` | 1.79x | 67 contexts | antos, entos, tintos |
462
+ | `ntes` | 1.49x | 144 contexts | antes, entes, fontes |
463
+ | `efer` | 1.61x | 86 contexts | sefer, nefer, refer |
464
+
465
+ ### 6.4 Affix Compatibility (Co-occurrence)
466
+
467
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
468
+
469
+ | Prefix | Suffix | Frequency | Examples |
470
+ |--------|--------|-----------|----------|
471
+ | `-co` | `-s` | 59 words | conversas, concinnus |
472
+ | `-ca` | `-s` | 53 words | cancelaciones, caloiros |
473
+ | `-ca` | `-a` | 49 words | cartajima, campana |
474
+ | `-co` | `-a` | 44 words | comella, copia |
475
+ | `-ma` | `-a` | 38 words | matina, matrioshka |
476
+ | `-re` | `-s` | 34 words | rectos, restaurantes |
477
+ | `-ma` | `-s` | 31 words | maniobres, maderensis |
478
+ | `-de` | `-s` | 31 words | descatados, definitives |
479
+ | `-co` | `-es` | 25 words | cotidales, coleicionables |
480
+ | `-re` | `-a` | 24 words | renombraría, retomara |
481
+
482
+ ### 6.5 Recursive Morpheme Segmentation
483
+
484
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
485
+
486
+ | Word | Suggested Split | Confidence | Stem |
487
+ |------|-----------------|------------|------|
488
+ | retractores | **`re-tractor-es`** | 6.0 | `tractor` |
489
+ | aseguráronse | **`aseguráron-se`** | 4.5 | `aseguráron` |
490
+ | tendiéronse | **`tendiéron-se`** | 4.5 | `tendiéron` |
491
+ | tresversales | **`tresversal-es`** | 4.5 | `tresversal` |
492
+ | redefiniéronse | **`re-de-finiéron-se`** | 4.5 | `finiéron` |
493
+ | redistributivo | **`re-distributivo`** | 4.5 | `distributivo` |
494
+ | prométese | **`prométe-se`** | 4.5 | `prométe` |
495
+ | escaecíen | **`escaecí-en`** | 4.5 | `escaecí` |
496
+ | domadores | **`domador-es`** | 4.5 | `domador` |
497
+ | consérvense | **`co-nsérv-en-se`** | 4.5 | `nsérv` |
498
+ | descripto | **`de-scripto`** | 4.5 | `scripto` |
499
+ | esaxeróse | **`esaxeró-se`** | 4.5 | `esaxeró` |
500
+ | acentores | **`acentor-es`** | 4.5 | `acentor` |
501
+ | detrayendo | **`de-trayendo`** | 4.5 | `trayendo` |
502
+ | renormalización | **`re-normalización`** | 4.5 | `normalización` |
503
+
504
+ ### 6.6 Linguistic Interpretation
505
+
506
+ > **Automated Insight:**
507
+ The language AST 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.
508
+
509
+ ---
510
+ ## 7. Summary & Recommendations
511
 
512
  ![Performance Dashboard](visualizations/performance_dashboard.png)
513
 
 
515
 
516
  | Component | Recommended | Rationale |
517
  |-----------|-------------|-----------|
518
+ | Tokenizer | **64k BPE** | Best compression (4.43x) |
519
+ | N-gram | **2-gram** | Lowest perplexity (260) |
520
+ | Markov | **Context-4** | Highest predictability (92.1%) |
521
  | Embeddings | **100d** | Balanced semantic capture and isotropy |
522
 
523
+
524
  ---
525
  ## Appendix: Metrics Glossary & Interpretation Guide
526
 
 
710
  author = {Kamali, Omar},
711
  title = {Wikilangs: Open NLP Models for Wikipedia Languages},
712
  year = {2025},
713
+ doi = {10.5281/zenodo.18073153},
714
+ publisher = {Zenodo},
715
  url = {https://huggingface.co/wikilangs}
716
  institution = {Omneity Labs}
717
  }
 
727
  - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
728
  - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
729
  - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
730
+ - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
731
  ---
732
  *Generated by Wikilangs Models Pipeline*
733
 
734
+ *Report Date: 2026-01-03 09:38:21*
models/embeddings/monolingual/ast_128d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:39f5f134a23b0ae5b3bba7a4864ecc3599e28dd6a5c44748c538e6eb50542a1b
3
- size 1555994683
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c4500458da720e9717e0be530291de837dfe1937d937d8f59cd5975214f6d01
3
+ size 1526234273
models/embeddings/monolingual/ast_128d_metadata.json CHANGED
@@ -3,11 +3,13 @@
3
  "dimension": 128,
4
  "version": "monolingual",
5
  "training_params": {
6
- "dim": 128,
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
- "epochs": 5
 
 
11
  },
12
- "vocab_size": 510373
13
  }
 
3
  "dimension": 128,
4
  "version": "monolingual",
5
  "training_params": {
6
+ "algorithm": "skipgram",
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 128
13
  },
14
+ "vocab_size": 481846
15
  }
models/embeddings/monolingual/ast_32d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aecd461d0dd299f160b9fefcb4d6bbc47ffe601253410b6bf66aa59353683649
3
- size 396028219
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa3cdba099d3af49ab89043ad5713c1fe468060d520334f5200b000925a5e30e
3
+ size 388176545
models/embeddings/monolingual/ast_32d_metadata.json CHANGED
@@ -3,11 +3,13 @@
3
  "dimension": 32,
4
  "version": "monolingual",
5
  "training_params": {
6
- "dim": 32,
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
- "epochs": 5
 
 
11
  },
12
- "vocab_size": 510373
13
  }
 
3
  "dimension": 32,
4
  "version": "monolingual",
5
  "training_params": {
6
+ "algorithm": "skipgram",
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 32
13
  },
14
+ "vocab_size": 481846
15
  }
models/embeddings/monolingual/ast_64d.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a7552caa3e9f8ef8607c05afb5b9266e4c9a3e70fdba272075a7b9912e995045
3
- size 782683707
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e24d4561e7c9f15e391c915d7d4096c8b8adf794324cd6df9a60e78e6f5fc6a
3
+ size 767529121
models/embeddings/monolingual/ast_64d_metadata.json CHANGED
@@ -3,11 +3,13 @@
3
  "dimension": 64,
4
  "version": "monolingual",
5
  "training_params": {
6
- "dim": 64,
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
- "epochs": 5
 
 
11
  },
12
- "vocab_size": 510373
13
  }
 
3
  "dimension": 64,
4
  "version": "monolingual",
5
  "training_params": {
6
+ "algorithm": "skipgram",
7
  "min_count": 5,
8
  "window": 5,
9
  "negative": 5,
10
+ "epochs": 5,
11
+ "encoding_method": "rope",
12
+ "dim": 64
13
  },
14
+ "vocab_size": 481846
15
  }
models/subword_markov/ast_markov_ctx1_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:797c1dfcb6c516214d2dc02ed941e64e840e49d291e2cc758d5482d86ae04640
3
- size 602821
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b9be5fbc395f6cb378f05193e1ba7234945d9bca4e71b4cdad6aea648215809
3
+ size 555949
models/subword_markov/ast_markov_ctx1_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_contexts": 8875,
6
- "total_transitions": 508763835
7
  }
 
2
  "context_size": 1,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_contexts": 10463,
6
+ "total_transitions": 464881103
7
  }
models/subword_markov/ast_markov_ctx2_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e0ee540fb4354bf9779b55ea96cde4252defd9f562e14d445ac6b6c9b457c3f1
3
- size 3577755
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0a7c5f99ccca8b527cebd7afb3189b4a99a6cc219cd1b861b501d17180c93b0
3
+ size 2891072
models/subword_markov/ast_markov_ctx2_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_contexts": 94766,
6
- "total_transitions": 508625606
7
  }
 
2
  "context_size": 2,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_contexts": 83437,
6
+ "total_transitions": 464744539
7
  }
models/subword_markov/ast_markov_ctx3_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:db3f45e2155b76125f075309cbec6b285d5ee2401fd063d4b596638cb534193e
3
- size 16073938
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c060d1174629162cb8911f78054119018ce6e2fc628936bfdeb36691d35489c
3
+ size 11949355
models/subword_markov/ast_markov_ctx3_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_contexts": 464259,
6
- "total_transitions": 508487377
7
  }
 
2
  "context_size": 3,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_contexts": 357207,
6
+ "total_transitions": 464607975
7
  }
models/subword_markov/ast_markov_ctx4_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dd0b9d4e9db8c19eeb444ba13e49b7a48ec4b84512f949ef315285aff0822a0e
3
- size 57292008
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60988880010bce63ffacea78379f2d4b447c453dc44f6445a08b1d6e123f645c
3
+ size 39925220
models/subword_markov/ast_markov_ctx4_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_contexts": 2131889,
6
- "total_transitions": 508349148
7
  }
 
2
  "context_size": 4,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_contexts": 1439883,
6
+ "total_transitions": 464471411
7
  }
models/subword_ngram/ast_2gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:417e9408d0c904ed21f23501e55082a7494276c2cfce4650855bdde090aa9e15
3
- size 314961
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c50ba055002320ed277521dcbb25feecc7139a7b02e23e72ca8255ada347410
3
+ size 259482
models/subword_ngram/ast_2gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_ngrams": 23389,
6
- "total_ngrams": 508763835
7
  }
 
2
  "n": 2,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_ngrams": 19069,
6
+ "total_ngrams": 464881103
7
  }
models/subword_ngram/ast_3gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:730e803a7b1373e12874f3e3ee787c6229e54c4f714b7b5b45ecbc90e7e1f2ef
3
- size 2302607
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1ee7e63a9f92e3bf668df5f64f593ca6671568eb54bc02ab9e3b50ee2ae7ae4
3
+ size 1721257
models/subword_ngram/ast_3gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_ngrams": 195082,
6
- "total_ngrams": 508625606
7
  }
 
2
  "n": 3,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_ngrams": 139212,
6
+ "total_ngrams": 464744539
7
  }
models/subword_ngram/ast_4gram_subword.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b418657cc08b4f91e0b2c2eda00aef5c4302d754fe9dccc5feb84ff1b24a6291
3
- size 13600667
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:390181c0c7fcc8b118b108e18cb830493109f584b4b87f76850993e3e9dda0be
3
+ size 9353492
models/subword_ngram/ast_4gram_subword_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ast",
5
- "unique_ngrams": 1178742,
6
- "total_ngrams": 508487377
7
  }
 
2
  "n": 4,
3
  "variant": "subword",
4
  "language": "ast",
5
+ "unique_ngrams": 791795,
6
+ "total_ngrams": 464607975
7
  }
models/tokenizer/ast_tokenizer_16k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:907f4bece802b1d3656fdf65b960935cdd809ca5733b7b73b0823ce18af2c113
3
- size 513109
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5014581384d443a91ffa0f71150e3ecc09244a1056ad046785f8b8cbc4ce42c
3
+ size 511145
models/tokenizer/ast_tokenizer_16k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ast_tokenizer_32k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:88d4563db9be715e9225ff77615f89d344e1f2db1b32e1119ffcb1adf873068a
3
- size 795952
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13c458e53178d158dee7ca9d93a562de7bf19975484f7e21af497697c021bb6a
3
+ size 791500
models/tokenizer/ast_tokenizer_32k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ast_tokenizer_64k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bab637cbda657ea59afedbac3a722b8a7d18839ff031e3a67f1d79f914cb1edd
3
- size 1371599
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b619430c9173d8e202e7905a328c5bca3d915f85a3540adb29b3d6230f10d749
3
+ size 1364026
models/tokenizer/ast_tokenizer_64k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ast_tokenizer_8k.model CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:53538ed204ba1e90b9a3ec72f89f3a9639ddf5f7e06a5d91daf2182e1dbacf32
3
- size 374583
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8172313a7a1d41e2c61618ad0fab8a1cbd16688f798c007cba80fce5c693133c
3
+ size 374227
models/tokenizer/ast_tokenizer_8k.vocab CHANGED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/ast_vocabulary.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e95a025d0a2e0d5c5fc9e67b2724543af5eaadf84e83944b5601b9e113deee95
3
- size 9493041
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42abd03dfba1393adae66a9e07842fcb85830c5f2dbcb0e037ab56b27fbc8846
3
+ size 8277795
models/vocabulary/ast_vocabulary_metadata.json CHANGED
@@ -1,16 +1,17 @@
1
  {
2
  "language": "ast",
3
- "vocabulary_size": 654549,
 
4
  "statistics": {
5
- "type_token_ratio": 0.020582308161438793,
6
  "coverage": {
7
- "top_100": 0.39513983436676664,
8
- "top_1000": 0.5923739422740554,
9
- "top_5000": 0.7541024014353347,
10
- "top_10000": 0.8168048946874377
11
  },
12
- "hapax_count": 1016752,
13
- "hapax_ratio": 0.608359595309283,
14
- "total_documents": 138229
15
  }
16
  }
 
1
  {
2
  "language": "ast",
3
+ "vocabulary_size": 555056,
4
+ "variant": "full",
5
  "statistics": {
6
+ "type_token_ratio": 0.015923489955309757,
7
  "coverage": {
8
+ "top_100": 0.4129270164572954,
9
+ "top_1000": 0.6027767233040656,
10
+ "top_5000": 0.7612431178669916,
11
+ "top_10000": 0.8237422388332004
12
  },
13
+ "hapax_count": 650708,
14
+ "hapax_ratio": 0.5396644782892838,
15
+ "total_documents": 136564
16
  }
17
  }
models/word_markov/ast_markov_ctx1_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e50511b1eedd319fddb7babd82679e20996cdc8c40bb7414b7729fa744061d38
3
- size 125168928
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df2720891f77ec4fc87c424807076f856c9ebed7d35e8609e740c581e849ba43
3
+ size 130011519
models/word_markov/ast_markov_ctx1_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_contexts": 1669949,
6
- "total_transitions": 101266716
7
  }
 
2
  "context_size": 1,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_contexts": 1204316,
6
+ "total_transitions": 75585781
7
  }
models/word_markov/ast_markov_ctx2_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e97c5fda98a744b9ecdbc923910e1c4de28e3c699d3c7a3519ea2d5826e515a
3
- size 436569711
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:360e77ba671d9d79ef0176080b3098535eb366bbb657d0a5d965de6cbcaaf01a
3
+ size 443953571
models/word_markov/ast_markov_ctx2_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_contexts": 14499551,
6
- "total_transitions": 101128488
7
  }
 
2
  "context_size": 2,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_contexts": 15634564,
6
+ "total_transitions": 75449217
7
  }
models/word_markov/ast_markov_ctx3_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3d70d8996da08da859f83f17208f24ec5fe8a079a8cdc33b458965bdf29e6a65
3
- size 863814981
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd3378d79db7d6144445a3f22f70dd19d9f2db6b768c7e3368bcecdeffa20cbe
3
+ size 807770212
models/word_markov/ast_markov_ctx3_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 3,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_contexts": 42031886,
6
- "total_transitions": 100990260
7
  }
 
2
  "context_size": 3,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_contexts": 40202890,
6
+ "total_transitions": 75312653
7
  }
models/word_markov/ast_markov_ctx4_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:edd90f355e0db9ed093dd1b20ea832c072fe6c4eb8eda9897b82053102ed9e22
3
- size 1203044127
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9217b205ffd93647009467d670ec677b3039ae8a9d817ec195bc651d54e1f8c6
3
+ size 1060990691
models/word_markov/ast_markov_ctx4_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "context_size": 4,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_contexts": 66322442,
6
- "total_transitions": 100852034
7
  }
 
2
  "context_size": 4,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_contexts": 57817277,
6
+ "total_transitions": 75176089
7
  }
models/word_ngram/ast_2gram_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4498d3f067003db47603a9cd549742083283922e1e3bcfac7e995862e92c13a0
3
- size 22263161
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6de399f50958b26f56a582db88426ccf2fe013228b455ccdf670d96c90d70911
3
+ size 19677216
models/word_ngram/ast_2gram_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 2,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_ngrams": 1568799,
6
- "total_ngrams": 101266716
7
  }
 
2
  "n": 2,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_ngrams": 1354323,
6
+ "total_ngrams": 75585781
7
  }
models/word_ngram/ast_3gram_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77d87442f951bfee562611f31c08d2afebd188296c7dc1f3fc4691abc873c580
3
- size 61024149
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d09ec9dd887391dcc7d6cf6c2c1d8f84dece68e3a9cba2f5b80d23407481818d
3
+ size 46625187
models/word_ngram/ast_3gram_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 3,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_ngrams": 3974147,
6
- "total_ngrams": 101128488
7
  }
 
2
  "n": 3,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_ngrams": 2908394,
6
+ "total_ngrams": 75449217
7
  }
models/word_ngram/ast_4gram_word.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a09cc0505f23b8e2addb0fd5ea158db1477037a7668eedab235820dfbcb3df5
3
- size 117588970
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8515d5c220746ef576b0015d60dd4cc911b9af09f89293da61a12de1b2fbdb6
3
+ size 80492927
models/word_ngram/ast_4gram_word_metadata.json CHANGED
@@ -2,6 +2,6 @@
2
  "n": 4,
3
  "variant": "word",
4
  "language": "ast",
5
- "unique_ngrams": 7247181,
6
- "total_ngrams": 100990260
7
  }
 
2
  "n": 4,
3
  "variant": "word",
4
  "language": "ast",
5
+ "unique_ngrams": 4707856,
6
+ "total_ngrams": 75312653
7
  }
visualizations/embedding_isotropy.png CHANGED
visualizations/embedding_norms.png CHANGED
visualizations/embedding_similarity.png CHANGED

Git LFS Details

  • SHA256: aa80e49c95de6cc654d6e692be5dc9d1039c4f05e8a2176968b67499f7867d39
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB

Git LFS Details

  • SHA256: a83a92e39125633cd256d081c9452fc82985da15208fe3c760b5629b06aab9b0
  • Pointer size: 131 Bytes
  • Size of remote file: 144 kB
visualizations/markov_branching.png CHANGED
visualizations/markov_contexts.png CHANGED