Upload all models and assets for ast (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +574 -0
- models/embeddings/monolingual/ast_128d.bin +3 -0
- models/embeddings/monolingual/ast_128d.meta.json +1 -0
- models/embeddings/monolingual/ast_128d_metadata.json +13 -0
- models/embeddings/monolingual/ast_32d.bin +3 -0
- models/embeddings/monolingual/ast_32d.meta.json +1 -0
- models/embeddings/monolingual/ast_32d_metadata.json +13 -0
- models/embeddings/monolingual/ast_64d.bin +3 -0
- models/embeddings/monolingual/ast_64d.meta.json +1 -0
- models/embeddings/monolingual/ast_64d_metadata.json +13 -0
- models/subword_markov/ast_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ast_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ast_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ast_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ast_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ast_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ast_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ast_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ast_2gram_subword.parquet +3 -0
- models/subword_ngram/ast_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ast_3gram_subword.parquet +3 -0
- models/subword_ngram/ast_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ast_4gram_subword.parquet +3 -0
- models/subword_ngram/ast_4gram_subword_metadata.json +7 -0
- models/tokenizer/ast_tokenizer_16k.model +3 -0
- models/tokenizer/ast_tokenizer_16k.vocab +0 -0
- models/tokenizer/ast_tokenizer_32k.model +3 -0
- models/tokenizer/ast_tokenizer_32k.vocab +0 -0
- models/tokenizer/ast_tokenizer_64k.model +3 -0
- models/tokenizer/ast_tokenizer_64k.vocab +0 -0
- models/tokenizer/ast_tokenizer_8k.model +3 -0
- models/tokenizer/ast_tokenizer_8k.vocab +0 -0
- models/vocabulary/ast_vocabulary.parquet +3 -0
- models/vocabulary/ast_vocabulary_metadata.json +16 -0
- models/word_markov/ast_markov_ctx1_word.parquet +3 -0
- models/word_markov/ast_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ast_markov_ctx2_word.parquet +3 -0
- models/word_markov/ast_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ast_markov_ctx3_word.parquet +3 -0
- models/word_markov/ast_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ast_markov_ctx4_word.parquet +3 -0
- models/word_markov/ast_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/ast_2gram_word.parquet +3 -0
- models/word_ngram/ast_2gram_word_metadata.json +7 -0
- models/word_ngram/ast_3gram_word.parquet +3 -0
- models/word_ngram/ast_3gram_word_metadata.json +7 -0
- models/word_ngram/ast_4gram_word.parquet +3 -0
- models/word_ngram/ast_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/position_encoding_comparison.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_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: ast
|
| 3 |
+
language_name: AST
|
| 4 |
+
language_family: romance_iberian
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 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:
|
| 21 |
+
name: wikipedia-monthly
|
| 22 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 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
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **AST** Wikipedia data.
|
| 40 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 41 |
+
|
| 42 |
+
## 📋 Repository Contents
|
| 43 |
+
|
| 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 |
+

|
| 54 |
+
|
| 55 |
+
### Analysis and Evaluation
|
| 56 |
+
|
| 57 |
+
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
|
| 58 |
+
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
|
| 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 |
+
|
| 66 |
+
---
|
| 67 |
+
## 1. Tokenizer Evaluation
|
| 68 |
+
|
| 69 |
+

|
| 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 ▁personaxes ▁importantes ▁referencies ▁enllaces ▁esternos ▁categoría : sieglu ▁viii ... (+4 more)` | 14 |
|
| 97 |
+
| 16k | `▁fechos ▁personaxes ▁importantes ▁referencies ▁enllaces ▁esternos ▁categoría : sieglu ▁viii ... (+4 more)` | 14 |
|
| 98 |
+
| 32k | `▁fechos ▁personaxes ▁importantes ▁referencies ▁enllaces ▁esternos ▁categoría : sieglu ▁viii ... (+4 more)` | 14 |
|
| 99 |
+
| 64k | `▁fechos ▁personaxes ▁importantes ▁referencies ▁enllaces ▁esternos ▁categorí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 ▁ye ▁un ▁llugar ▁de ▁la ▁parroquia ▁de ▁tal ... (+18 more)` | 28 |
|
| 106 |
+
| 16k | `▁ar mental ▁ye ▁un ▁llugar ▁de ▁la ▁parroquia ▁de ▁tal ... (+18 more)` | 28 |
|
| 107 |
+
| 32k | `▁ar mental ▁ye ▁un ▁llugar ▁de ▁la ▁parroquia ▁de ▁tal ... (+16 more)` | 26 |
|
| 108 |
+
| 64k | `▁ar mental ▁ye ▁un ▁llugar ▁de ▁la ▁parroquia ▁de ▁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 ▁enllaces ▁esternos ▁categoría ... (+7 more)` | 17 |
|
| 127 |
+
| 16k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁- ▁referencies ▁enllaces ▁esternos ▁categoría ... (+7 more)` | 17 |
|
| 128 |
+
| 32k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁- ▁referencies ▁enllaces ▁esternos ▁categoría ... (+7 more)` | 17 |
|
| 129 |
+
| 64k | `▁fechos ▁- ▁nacencies ▁- ▁muertes ▁- ▁referencies ▁enllaces ▁esternos ▁categorí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 |
+
|
| 139 |
+
---
|
| 140 |
+
## 2. N-gram Model Evaluation
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+

|
| 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 |
+
---
|
| 198 |
+
## 3. Markov Chain Evaluation
|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
|
| 202 |
+

|
| 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 |
+
---
|
| 254 |
+
## 4. Vocabulary Analysis
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
|
| 262 |
+
### Statistics
|
| 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
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
|
| 334 |
+

|
| 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 |
+

|
| 356 |
+
|
| 357 |
+
### Production Recommendations
|
| 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 |
+
|
| 369 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 370 |
+
|
| 371 |
+
### Tokenizer Metrics
|
| 372 |
+
|
| 373 |
+
**Compression Ratio**
|
| 374 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 375 |
+
>
|
| 376 |
+
> *Intuition:* Higher compression means fewer tokens needed to represent the same text, reducing sequence lengths for downstream models. A 3x compression means ~3 characters per token on average.
|
| 377 |
+
>
|
| 378 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 379 |
+
|
| 380 |
+
**Average Token Length (Fertility)**
|
| 381 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 382 |
+
>
|
| 383 |
+
> *Intuition:* Reflects the granularity of tokenization. Longer tokens capture more context but may struggle with rare words; shorter tokens are more flexible but increase sequence length.
|
| 384 |
+
>
|
| 385 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 386 |
+
|
| 387 |
+
**Unknown Token Rate (OOV Rate)**
|
| 388 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 389 |
+
>
|
| 390 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 391 |
+
>
|
| 392 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 393 |
+
|
| 394 |
+
### N-gram Model Metrics
|
| 395 |
+
|
| 396 |
+
**Perplexity**
|
| 397 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 398 |
+
>
|
| 399 |
+
> *Intuition:* If perplexity is 100, the model is as uncertain as if choosing uniformly among 100 options at each step. A perplexity of 10 means effectively choosing among 10 equally likely options.
|
| 400 |
+
>
|
| 401 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 402 |
+
|
| 403 |
+
**Entropy**
|
| 404 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 405 |
+
>
|
| 406 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 407 |
+
>
|
| 408 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 409 |
+
|
| 410 |
+
**Coverage (Top-K)**
|
| 411 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 412 |
+
>
|
| 413 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 414 |
+
>
|
| 415 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 416 |
+
|
| 417 |
+
### Markov Chain Metrics
|
| 418 |
+
|
| 419 |
+
**Average Entropy**
|
| 420 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 421 |
+
>
|
| 422 |
+
> *Intuition:* Lower entropy means the model is more confident about what comes next. Context-1 has high entropy (many possible next words); Context-4 has low entropy (few likely continuations).
|
| 423 |
+
>
|
| 424 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 425 |
+
|
| 426 |
+
**Branching Factor**
|
| 427 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 428 |
+
>
|
| 429 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 430 |
+
>
|
| 431 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 432 |
+
|
| 433 |
+
**Predictability**
|
| 434 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 435 |
+
>
|
| 436 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 437 |
+
>
|
| 438 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 439 |
+
|
| 440 |
+
### Vocabulary & Zipf's Law Metrics
|
| 441 |
+
|
| 442 |
+
**Zipf's Coefficient**
|
| 443 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 444 |
+
>
|
| 445 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 446 |
+
>
|
| 447 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 448 |
+
|
| 449 |
+
**R² (Coefficient of Determination)**
|
| 450 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 451 |
+
>
|
| 452 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 453 |
+
>
|
| 454 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 455 |
+
|
| 456 |
+
**Vocabulary Coverage**
|
| 457 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 458 |
+
>
|
| 459 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 460 |
+
>
|
| 461 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 462 |
+
|
| 463 |
+
### Word Embedding Metrics
|
| 464 |
+
|
| 465 |
+
**Isotropy**
|
| 466 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 467 |
+
>
|
| 468 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 469 |
+
>
|
| 470 |
+
> *What to seek:* Higher isotropy generally indicates better-quality embeddings. Values > 0.1 are reasonable; > 0.3 is good. Lower-dimensional embeddings tend to have higher isotropy.
|
| 471 |
+
|
| 472 |
+
**Average Norm**
|
| 473 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 474 |
+
>
|
| 475 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 476 |
+
>
|
| 477 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 478 |
+
|
| 479 |
+
**Cosine Similarity**
|
| 480 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 481 |
+
>
|
| 482 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 483 |
+
>
|
| 484 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 485 |
+
|
| 486 |
+
**t-SNE Visualization**
|
| 487 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 488 |
+
>
|
| 489 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 490 |
+
>
|
| 491 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 492 |
+
|
| 493 |
+
### General Interpretation Guidelines
|
| 494 |
+
|
| 495 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 496 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 497 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 498 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 499 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 500 |
+
|
| 501 |
+
|
| 502 |
+
### Visualizations Index
|
| 503 |
+
|
| 504 |
+
| Visualization | Description |
|
| 505 |
+
|---------------|-------------|
|
| 506 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 507 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 508 |
+
| Tokenizer OOV | Unknown token rates |
|
| 509 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 510 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 511 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 512 |
+
| N-gram Coverage | Top pattern coverage |
|
| 513 |
+
| N-gram Unique | Unique n-gram counts |
|
| 514 |
+
| Markov Entropy | Entropy by context size |
|
| 515 |
+
| Markov Branching | Branching factor by context |
|
| 516 |
+
| Markov Contexts | Unique context counts |
|
| 517 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 518 |
+
| Vocab Frequency | Word frequency distribution |
|
| 519 |
+
| Top 20 Words | Most frequent words |
|
| 520 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 521 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 522 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 523 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 524 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 525 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 526 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 527 |
+
| Position Encoding | Encoding method comparison |
|
| 528 |
+
| Model Sizes | Storage requirements |
|
| 529 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 530 |
+
|
| 531 |
+
---
|
| 532 |
+
## About This Project
|
| 533 |
+
|
| 534 |
+
### Data Source
|
| 535 |
+
|
| 536 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 537 |
+
|
| 538 |
+
### Project
|
| 539 |
+
|
| 540 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 541 |
+
|
| 542 |
+
### Maintainer
|
| 543 |
+
|
| 544 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 545 |
+
|
| 546 |
+
### Citation
|
| 547 |
+
|
| 548 |
+
If you use these models in your research, please cite:
|
| 549 |
+
|
| 550 |
+
```bibtex
|
| 551 |
+
@misc{wikilangs2025,
|
| 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 |
+
}
|
| 559 |
+
```
|
| 560 |
+
|
| 561 |
+
### License
|
| 562 |
+
|
| 563 |
+
MIT License - Free for academic and commercial use.
|
| 564 |
+
|
| 565 |
+
### Links
|
| 566 |
+
|
| 567 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 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*
|
models/embeddings/monolingual/ast_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39f5f134a23b0ae5b3bba7a4864ecc3599e28dd6a5c44748c538e6eb50542a1b
|
| 3 |
+
size 1555994683
|
models/embeddings/monolingual/ast_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ast", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ast_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ast",
|
| 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 |
+
}
|
models/embeddings/monolingual/ast_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aecd461d0dd299f160b9fefcb4d6bbc47ffe601253410b6bf66aa59353683649
|
| 3 |
+
size 396028219
|
models/embeddings/monolingual/ast_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ast", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ast_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ast",
|
| 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 |
+
}
|
models/embeddings/monolingual/ast_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7552caa3e9f8ef8607c05afb5b9266e4c9a3e70fdba272075a7b9912e995045
|
| 3 |
+
size 782683707
|
models/embeddings/monolingual/ast_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ast", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ast_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ast",
|
| 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 |
+
}
|
models/subword_markov/ast_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:797c1dfcb6c516214d2dc02ed941e64e840e49d291e2cc758d5482d86ae04640
|
| 3 |
+
size 602821
|
models/subword_markov/ast_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 8875,
|
| 6 |
+
"total_transitions": 508763835
|
| 7 |
+
}
|
models/subword_markov/ast_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0ee540fb4354bf9779b55ea96cde4252defd9f562e14d445ac6b6c9b457c3f1
|
| 3 |
+
size 3577755
|
models/subword_markov/ast_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 94766,
|
| 6 |
+
"total_transitions": 508625606
|
| 7 |
+
}
|
models/subword_markov/ast_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db3f45e2155b76125f075309cbec6b285d5ee2401fd063d4b596638cb534193e
|
| 3 |
+
size 16073938
|
models/subword_markov/ast_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 464259,
|
| 6 |
+
"total_transitions": 508487377
|
| 7 |
+
}
|
models/subword_markov/ast_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd0b9d4e9db8c19eeb444ba13e49b7a48ec4b84512f949ef315285aff0822a0e
|
| 3 |
+
size 57292008
|
models/subword_markov/ast_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 2131889,
|
| 6 |
+
"total_transitions": 508349148
|
| 7 |
+
}
|
models/subword_ngram/ast_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:417e9408d0c904ed21f23501e55082a7494276c2cfce4650855bdde090aa9e15
|
| 3 |
+
size 314961
|
models/subword_ngram/ast_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 23389,
|
| 6 |
+
"total_ngrams": 508763835
|
| 7 |
+
}
|
models/subword_ngram/ast_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:730e803a7b1373e12874f3e3ee787c6229e54c4f714b7b5b45ecbc90e7e1f2ef
|
| 3 |
+
size 2302607
|
models/subword_ngram/ast_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 195082,
|
| 6 |
+
"total_ngrams": 508625606
|
| 7 |
+
}
|
models/subword_ngram/ast_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b418657cc08b4f91e0b2c2eda00aef5c4302d754fe9dccc5feb84ff1b24a6291
|
| 3 |
+
size 13600667
|
models/subword_ngram/ast_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 1178742,
|
| 6 |
+
"total_ngrams": 508487377
|
| 7 |
+
}
|
models/tokenizer/ast_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:907f4bece802b1d3656fdf65b960935cdd809ca5733b7b73b0823ce18af2c113
|
| 3 |
+
size 513109
|
models/tokenizer/ast_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ast_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88d4563db9be715e9225ff77615f89d344e1f2db1b32e1119ffcb1adf873068a
|
| 3 |
+
size 795952
|
models/tokenizer/ast_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ast_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bab637cbda657ea59afedbac3a722b8a7d18839ff031e3a67f1d79f914cb1edd
|
| 3 |
+
size 1371599
|
models/tokenizer/ast_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ast_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53538ed204ba1e90b9a3ec72f89f3a9639ddf5f7e06a5d91daf2182e1dbacf32
|
| 3 |
+
size 374583
|
models/tokenizer/ast_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ast_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e95a025d0a2e0d5c5fc9e67b2724543af5eaadf84e83944b5601b9e113deee95
|
| 3 |
+
size 9493041
|
models/vocabulary/ast_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
models/word_markov/ast_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e50511b1eedd319fddb7babd82679e20996cdc8c40bb7414b7729fa744061d38
|
| 3 |
+
size 125168928
|
models/word_markov/ast_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 1669949,
|
| 6 |
+
"total_transitions": 101266716
|
| 7 |
+
}
|
models/word_markov/ast_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e97c5fda98a744b9ecdbc923910e1c4de28e3c699d3c7a3519ea2d5826e515a
|
| 3 |
+
size 436569711
|
models/word_markov/ast_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 14499551,
|
| 6 |
+
"total_transitions": 101128488
|
| 7 |
+
}
|
models/word_markov/ast_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d70d8996da08da859f83f17208f24ec5fe8a079a8cdc33b458965bdf29e6a65
|
| 3 |
+
size 863814981
|
models/word_markov/ast_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 42031886,
|
| 6 |
+
"total_transitions": 100990260
|
| 7 |
+
}
|
models/word_markov/ast_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edd90f355e0db9ed093dd1b20ea832c072fe6c4eb8eda9897b82053102ed9e22
|
| 3 |
+
size 1203044127
|
models/word_markov/ast_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_contexts": 66322442,
|
| 6 |
+
"total_transitions": 100852034
|
| 7 |
+
}
|
models/word_ngram/ast_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4498d3f067003db47603a9cd549742083283922e1e3bcfac7e995862e92c13a0
|
| 3 |
+
size 22263161
|
models/word_ngram/ast_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 1568799,
|
| 6 |
+
"total_ngrams": 101266716
|
| 7 |
+
}
|
models/word_ngram/ast_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77d87442f951bfee562611f31c08d2afebd188296c7dc1f3fc4691abc873c580
|
| 3 |
+
size 61024149
|
models/word_ngram/ast_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 3974147,
|
| 6 |
+
"total_ngrams": 101128488
|
| 7 |
+
}
|
models/word_ngram/ast_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a09cc0505f23b8e2addb0fd5ea158db1477037a7668eedab235820dfbcb3df5
|
| 3 |
+
size 117588970
|
models/word_ngram/ast_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ast",
|
| 5 |
+
"unique_ngrams": 7247181,
|
| 6 |
+
"total_ngrams": 100990260
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|