Upload all models and assets for ba (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +557 -0
- models/embeddings/monolingual/ba_128d.bin +3 -0
- models/embeddings/monolingual/ba_128d.meta.json +1 -0
- models/embeddings/monolingual/ba_128d_metadata.json +13 -0
- models/embeddings/monolingual/ba_32d.bin +3 -0
- models/embeddings/monolingual/ba_32d.meta.json +1 -0
- models/embeddings/monolingual/ba_32d_metadata.json +13 -0
- models/embeddings/monolingual/ba_64d.bin +3 -0
- models/embeddings/monolingual/ba_64d.meta.json +1 -0
- models/embeddings/monolingual/ba_64d_metadata.json +13 -0
- models/subword_markov/ba_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ba_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ba_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ba_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ba_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ba_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ba_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ba_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ba_2gram_subword.parquet +3 -0
- models/subword_ngram/ba_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ba_3gram_subword.parquet +3 -0
- models/subword_ngram/ba_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ba_4gram_subword.parquet +3 -0
- models/subword_ngram/ba_4gram_subword_metadata.json +7 -0
- models/tokenizer/ba_tokenizer_16k.model +3 -0
- models/tokenizer/ba_tokenizer_16k.vocab +0 -0
- models/tokenizer/ba_tokenizer_32k.model +3 -0
- models/tokenizer/ba_tokenizer_32k.vocab +0 -0
- models/tokenizer/ba_tokenizer_64k.model +3 -0
- models/tokenizer/ba_tokenizer_64k.vocab +0 -0
- models/tokenizer/ba_tokenizer_8k.model +3 -0
- models/tokenizer/ba_tokenizer_8k.vocab +0 -0
- models/vocabulary/ba_vocabulary.parquet +3 -0
- models/vocabulary/ba_vocabulary_metadata.json +16 -0
- models/word_markov/ba_markov_ctx1_word.parquet +3 -0
- models/word_markov/ba_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ba_markov_ctx2_word.parquet +3 -0
- models/word_markov/ba_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ba_markov_ctx3_word.parquet +3 -0
- models/word_markov/ba_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ba_markov_ctx4_word.parquet +3 -0
- models/word_markov/ba_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/ba_2gram_word.parquet +3 -0
- models/word_ngram/ba_2gram_word_metadata.json +7 -0
- models/word_ngram/ba_3gram_word.parquet +3 -0
- models/word_ngram/ba_3gram_word_metadata.json +7 -0
- models/word_ngram/ba_4gram_word.parquet +3 -0
- models/word_ngram/ba_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: ba
|
| 3 |
+
language_name: BA
|
| 4 |
+
language_family: turkic_kipchak
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-turkic_kipchak
|
| 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: 4.068
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.7712
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 417410
|
| 33 |
+
generated: 2025-12-27
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BA - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BA** 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.248x | 3.21 | 0.2917% | 1,877,404 |
|
| 76 |
+
| **16k** | 3.576x | 3.53 | 0.3212% | 1,705,077 |
|
| 77 |
+
| **32k** | 3.852x | 3.81 | 0.3460% | 1,582,867 |
|
| 78 |
+
| **64k** | 4.068x 🏆 | 4.02 | 0.3653% | 1,499,077 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Сыңрау торна:
|
| 85 |
+
Сыңрау торна (йыр) — башҡорт халыҡ йыры.
|
| 86 |
+
Сыңрау торна — өс актлы...`
|
| 87 |
+
|
| 88 |
+
| Vocab | Tokens | Count |
|
| 89 |
+
|-------|--------|-------|
|
| 90 |
+
| 8k | `▁с ың рау ▁тор на : ▁с ың рау ▁тор ... (+23 more)` | 33 |
|
| 91 |
+
| 16k | `▁сың рау ▁торна : ▁сың рау ▁торна ▁( йыр ) ... (+17 more)` | 27 |
|
| 92 |
+
| 32k | `▁сың рау ▁торна : ▁сың рау ▁торна ▁( йыр ) ... (+16 more)` | 26 |
|
| 93 |
+
| 64k | `▁сың рау ▁торна : ▁сың рау ▁торна ▁( йыр ) ... (+16 more)` | 26 |
|
| 94 |
+
|
| 95 |
+
**Sample 2:** `Бөйөк БританияБөйөк Британия`
|
| 96 |
+
|
| 97 |
+
| Vocab | Tokens | Count |
|
| 98 |
+
|-------|--------|-------|
|
| 99 |
+
| 8k | `▁бөйөк ▁британия бөйөк ▁британия` | 4 |
|
| 100 |
+
| 16k | `▁бөйөк ▁британия бөйөк ▁британия` | 4 |
|
| 101 |
+
| 32k | `▁бөйөк ▁британия бөйөк ▁британия` | 4 |
|
| 102 |
+
| 64k | `▁бөйөк ▁британия бөйөк ▁британия` | 4 |
|
| 103 |
+
|
| 104 |
+
**Sample 3:** `Австралия — Көньяҡ ярымшарҙарҙа урынлашҡан дәүләт.
|
| 105 |
+
Австралия (ҡитға) — Көнсығыш...`
|
| 106 |
+
|
| 107 |
+
| Vocab | Tokens | Count |
|
| 108 |
+
|-------|--------|-------|
|
| 109 |
+
| 8k | `▁австр алия ▁— ▁көньяҡ ▁ярым шар ҙарҙа ▁урынлашҡан ▁дәүләт . ... (+18 more)` | 28 |
|
| 110 |
+
| 16k | `▁австралия ▁— ▁көньяҡ ▁ярым шар ҙарҙа ▁урынлашҡан ▁дәүләт . ▁австралия ... (+15 more)` | 25 |
|
| 111 |
+
| 32k | `▁австралия ▁— ▁көньяҡ ▁ярымшар ҙарҙа ▁урынлашҡан ▁дәүләт . ▁австралия ▁( ... (+12 more)` | 22 |
|
| 112 |
+
| 64k | `▁австралия ▁— ▁көньяҡ ▁ярымшар ҙарҙа ▁урынлашҡан ▁дәүләт . ▁австралия ▁( ... (+11 more)` | 21 |
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
### Key Findings
|
| 116 |
+
|
| 117 |
+
- **Best Compression:** 64k achieves 4.068x compression
|
| 118 |
+
- **Lowest UNK Rate:** 8k with 0.2917% unknown tokens
|
| 119 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 120 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
## 2. N-gram Model Evaluation
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 132 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 133 |
+
| **2-gram** | 46,308 🏆 | 15.50 | 552,281 | 13.1% | 33.2% |
|
| 134 |
+
| **2-gram** | 586 🏆 | 9.20 | 17,419 | 48.7% | 94.9% |
|
| 135 |
+
| **3-gram** | 107,842 | 16.72 | 1,025,675 | 10.6% | 27.4% |
|
| 136 |
+
| **3-gram** | 5,171 | 12.34 | 163,683 | 17.5% | 55.2% |
|
| 137 |
+
| **4-gram** | 184,106 | 17.49 | 1,793,503 | 10.9% | 25.9% |
|
| 138 |
+
| **4-gram** | 26,442 | 14.69 | 914,560 | 9.8% | 31.4% |
|
| 139 |
+
|
| 140 |
+
### Top 5 N-grams by Size
|
| 141 |
+
|
| 142 |
+
**2-grams:**
|
| 143 |
+
|
| 144 |
+
| Rank | N-gram | Count |
|
| 145 |
+
|------|--------|-------|
|
| 146 |
+
| 1 | `категория :` | 197,952 |
|
| 147 |
+
| 2 | `. —` | 100,523 |
|
| 148 |
+
| 3 | `) .` | 79,614 |
|
| 149 |
+
| 4 | `) —` | 77,384 |
|
| 150 |
+
| 5 | `) ,` | 71,872 |
|
| 151 |
+
|
| 152 |
+
**3-grams:**
|
| 153 |
+
|
| 154 |
+
| Rank | N-gram | Count |
|
| 155 |
+
|------|--------|-------|
|
| 156 |
+
| 1 | `% d0 %` | 38,175 |
|
| 157 |
+
| 2 | `йылға бассейны —` | 29,475 |
|
| 158 |
+
| 3 | `. а .` | 21,364 |
|
| 159 |
+
| 4 | `йылғалары категория :` | 20,772 |
|
| 160 |
+
| 5 | `һыу реестры мәғлүмәттәре` | 20,323 |
|
| 161 |
+
|
| 162 |
+
**4-grams:**
|
| 163 |
+
|
| 164 |
+
| Rank | N-gram | Count |
|
| 165 |
+
|------|--------|-------|
|
| 166 |
+
| 1 | `рәсәй дәүләт һыу реестры` | 20,195 |
|
| 167 |
+
| 2 | `мәғлүмәттәре рәсәй дәүләт һыу` | 20,169 |
|
| 168 |
+
| 3 | `реестры мәғлүмәттәре рәсәй дәүләт` | 20,169 |
|
| 169 |
+
| 4 | `һыу реестры мәғлүмәттәре рәсәй` | 20,166 |
|
| 170 |
+
| 5 | `дәүләт һыу реестрында һыу` | 20,160 |
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
### Key Findings
|
| 174 |
+
|
| 175 |
+
- **Best Perplexity:** 2-gram with 586
|
| 176 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 177 |
+
- **Coverage:** Top-1000 patterns cover ~31% of corpus
|
| 178 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 179 |
+
|
| 180 |
+
---
|
| 181 |
+
## 3. Markov Chain Evaluation
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+
### Results
|
| 188 |
+
|
| 189 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 190 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 191 |
+
| **1** | 0.7118 | 1.638 | 7.12 | 1,081,802 | 28.8% |
|
| 192 |
+
| **1** | 1.2737 | 2.418 | 9.88 | 4,928 | 0.0% |
|
| 193 |
+
| **2** | 0.3181 | 1.247 | 2.06 | 7,695,897 | 68.2% |
|
| 194 |
+
| **2** | 0.9811 | 1.974 | 7.09 | 48,690 | 1.9% |
|
| 195 |
+
| **3** | 0.1344 | 1.098 | 1.31 | 15,852,609 | 86.6% |
|
| 196 |
+
| **3** | 0.8666 | 1.823 | 4.73 | 344,963 | 13.3% |
|
| 197 |
+
| **4** | 0.0616 🏆 | 1.044 | 1.12 | 20,837,559 | 93.8% |
|
| 198 |
+
| **4** | 0.6873 🏆 | 1.610 | 3.25 | 1,631,641 | 31.3% |
|
| 199 |
+
|
| 200 |
+
### Generated Text Samples
|
| 201 |
+
|
| 202 |
+
Below are text samples generated from each Markov chain model:
|
| 203 |
+
|
| 204 |
+
**Context Size 1:**
|
| 205 |
+
|
| 206 |
+
1. `. а . һыу бассейны ) . — шул таштар ҡыҙһа , 1998 ) — 0`
|
| 207 |
+
2. `, суданды иҫәпләмәйенсә ) , 1978 йылда 768 ( номеры ) 9 октябрь 1918 йылдан административ`
|
| 208 |
+
3. `— 28 тайфун ) , табак магнаты , 2006 ) — 13 ғинуарында бәләкәй йылға двина`
|
| 209 |
+
|
| 210 |
+
**Context Size 2:**
|
| 211 |
+
|
| 212 |
+
1. `категория : ҡабарҙы - балҡар йылғалары категория : алфавит буйынса шәхестәр категория : рәсәй субъек...`
|
| 213 |
+
2. `. — мәскәү 762 « сапсан » санкт - петербург собор майҙаны ансамбле , солист сифатында саҡыралар`
|
| 214 |
+
3. `) . памятный знак на месте ќ , яңғырау диапозоны киң ( 30 сентябрь 1960 йыл ,`
|
| 215 |
+
|
| 216 |
+
**Context Size 3:**
|
| 217 |
+
|
| 218 |
+
1. `% d0 % b5 % d1 % 83 % d0 % b0 % d1 % 86 % d1`
|
| 219 |
+
2. `йылға бассейны — печора һәм обь йылғалары араһындағы , баренц диңгеҙенә ҡойоусы , йылғалар бассейны ...`
|
| 220 |
+
3. `. а . токарев тәҡдим итәләр . немецтарҙы аптыратып , сталин документтар өсөн түләргә ризалаша . әзер...`
|
| 221 |
+
|
| 222 |
+
**Context Size 4:**
|
| 223 |
+
|
| 224 |
+
1. `рәсәй дәүләт һыу реестры мәғлүмәте буйынса йылға үрге обь һыу бассейны округында урынлашҡан , һыу ху...`
|
| 225 |
+
2. `реестры мәғлүмәттәре рәсәй дәүләт һыу реестры мәғлүмәте буйынса йылға үрге обь һыу бассейны округынд...`
|
| 226 |
+
3. `мәғлүмәттәре рәсәй дәүләт һыу реестры мәғлүмәте буйынса йылға түбәнге волга һыу бассейны округында у...`
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
### Key Findings
|
| 230 |
+
|
| 231 |
+
- **Best Predictability:** Context-4 with 93.8% predictability
|
| 232 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 233 |
+
- **Memory Trade-off:** Larger contexts require more storage (1,631,641 contexts)
|
| 234 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 235 |
+
|
| 236 |
+
---
|
| 237 |
+
## 4. Vocabulary Analysis
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
|
| 245 |
+
### Statistics
|
| 246 |
+
|
| 247 |
+
| Metric | Value |
|
| 248 |
+
|--------|-------|
|
| 249 |
+
| Vocabulary Size | 417,410 |
|
| 250 |
+
| Total Tokens | 23,479,822 |
|
| 251 |
+
| Mean Frequency | 56.25 |
|
| 252 |
+
| Median Frequency | 4 |
|
| 253 |
+
| Frequency Std Dev | 1249.29 |
|
| 254 |
+
|
| 255 |
+
### Most Common Words
|
| 256 |
+
|
| 257 |
+
| Rank | Word | Frequency |
|
| 258 |
+
|------|------|-----------|
|
| 259 |
+
| 1 | һәм | 442,975 |
|
| 260 |
+
| 2 | буйынса | 199,955 |
|
| 261 |
+
| 3 | категория | 198,342 |
|
| 262 |
+
| 4 | һыу | 168,429 |
|
| 263 |
+
| 5 | менән | 154,744 |
|
| 264 |
+
| 6 | йылға | 141,138 |
|
| 265 |
+
| 7 | йылда | 136,378 |
|
| 266 |
+
| 8 | рәсәй | 111,896 |
|
| 267 |
+
| 9 | йыл | 97,392 |
|
| 268 |
+
| 10 | йылдың | 89,845 |
|
| 269 |
+
|
| 270 |
+
### Least Common Words (from vocabulary)
|
| 271 |
+
|
| 272 |
+
| Rank | Word | Frequency |
|
| 273 |
+
|------|------|-----------|
|
| 274 |
+
| 1 | совкомбанк | 2 |
|
| 275 |
+
| 2 | маркетплейстың | 2 |
|
| 276 |
+
| 3 | суларға | 2 |
|
| 277 |
+
| 4 | кишлак | 2 |
|
| 278 |
+
| 5 | пацанский | 2 |
|
| 279 |
+
| 6 | мунден | 2 |
|
| 280 |
+
| 7 | гертфордшир | 2 |
|
| 281 |
+
| 8 | кроуға | 2 |
|
| 282 |
+
| 9 | франклоу | 2 |
|
| 283 |
+
| 10 | алтынкүлдән | 2 |
|
| 284 |
+
|
| 285 |
+
### Zipf's Law Analysis
|
| 286 |
+
|
| 287 |
+
| Metric | Value |
|
| 288 |
+
|--------|-------|
|
| 289 |
+
| Zipf Coefficient | 1.0644 |
|
| 290 |
+
| R² (Goodness of Fit) | 0.989157 |
|
| 291 |
+
| Adherence Quality | **excellent** |
|
| 292 |
+
|
| 293 |
+
### Coverage Analysis
|
| 294 |
+
|
| 295 |
+
| Top N Words | Coverage |
|
| 296 |
+
|-------------|----------|
|
| 297 |
+
| Top 100 | 23.2% |
|
| 298 |
+
| Top 1,000 | 52.0% |
|
| 299 |
+
| Top 5,000 | 71.9% |
|
| 300 |
+
| Top 10,000 | 78.9% |
|
| 301 |
+
|
| 302 |
+
### Key Findings
|
| 303 |
+
|
| 304 |
+
- **Zipf Compliance:** R²=0.9892 indicates excellent adherence to Zipf's law
|
| 305 |
+
- **High Frequency Dominance:** Top 100 words cover 23.2% of corpus
|
| 306 |
+
- **Long Tail:** 407,410 words needed for remaining 21.1% coverage
|
| 307 |
+
|
| 308 |
+
---
|
| 309 |
+
## 5. Word Embeddings Evaluation
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+
### Model Comparison
|
| 320 |
+
|
| 321 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 322 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 323 |
+
| **mono_32d** | 246,880 | 32 | 3.693 | 1.255 | 0.7645 |
|
| 324 |
+
| **mono_64d** | 246,880 | 64 | 4.152 | 1.202 | 0.7712 🏆 |
|
| 325 |
+
| **mono_128d** | 246,880 | 128 | 4.739 | 1.156 | 0.7517 |
|
| 326 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 327 |
+
|
| 328 |
+
### Key Findings
|
| 329 |
+
|
| 330 |
+
- **Best Isotropy:** mono_64d with 0.7712 (more uniform distribution)
|
| 331 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 332 |
+
- **Vocabulary Coverage:** All models cover 246,880 words
|
| 333 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 334 |
+
|
| 335 |
+
---
|
| 336 |
+
## 6. Summary & Recommendations
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
|
| 340 |
+
### Production Recommendations
|
| 341 |
+
|
| 342 |
+
| Component | Recommended | Rationale |
|
| 343 |
+
|-----------|-------------|-----------|
|
| 344 |
+
| Tokenizer | **32k BPE** | Best compression (4.07x) with low UNK rate |
|
| 345 |
+
| N-gram | **5-gram** | Lowest perplexity (586) |
|
| 346 |
+
| Markov | **Context-4** | Highest predictability (93.8%) |
|
| 347 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 348 |
+
|
| 349 |
+
---
|
| 350 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 351 |
+
|
| 352 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 353 |
+
|
| 354 |
+
### Tokenizer Metrics
|
| 355 |
+
|
| 356 |
+
**Compression Ratio**
|
| 357 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 358 |
+
>
|
| 359 |
+
> *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.
|
| 360 |
+
>
|
| 361 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 362 |
+
|
| 363 |
+
**Average Token Length (Fertility)**
|
| 364 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 365 |
+
>
|
| 366 |
+
> *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.
|
| 367 |
+
>
|
| 368 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 369 |
+
|
| 370 |
+
**Unknown Token Rate (OOV Rate)**
|
| 371 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 372 |
+
>
|
| 373 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 374 |
+
>
|
| 375 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 376 |
+
|
| 377 |
+
### N-gram Model Metrics
|
| 378 |
+
|
| 379 |
+
**Perplexity**
|
| 380 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 381 |
+
>
|
| 382 |
+
> *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.
|
| 383 |
+
>
|
| 384 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 385 |
+
|
| 386 |
+
**Entropy**
|
| 387 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 388 |
+
>
|
| 389 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 390 |
+
>
|
| 391 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 392 |
+
|
| 393 |
+
**Coverage (Top-K)**
|
| 394 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 395 |
+
>
|
| 396 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 397 |
+
>
|
| 398 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 399 |
+
|
| 400 |
+
### Markov Chain Metrics
|
| 401 |
+
|
| 402 |
+
**Average Entropy**
|
| 403 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 404 |
+
>
|
| 405 |
+
> *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).
|
| 406 |
+
>
|
| 407 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 408 |
+
|
| 409 |
+
**Branching Factor**
|
| 410 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 411 |
+
>
|
| 412 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 413 |
+
>
|
| 414 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 415 |
+
|
| 416 |
+
**Predictability**
|
| 417 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 418 |
+
>
|
| 419 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 420 |
+
>
|
| 421 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 422 |
+
|
| 423 |
+
### Vocabulary & Zipf's Law Metrics
|
| 424 |
+
|
| 425 |
+
**Zipf's Coefficient**
|
| 426 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 427 |
+
>
|
| 428 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 429 |
+
>
|
| 430 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 431 |
+
|
| 432 |
+
**R² (Coefficient of Determination)**
|
| 433 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 434 |
+
>
|
| 435 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 436 |
+
>
|
| 437 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 438 |
+
|
| 439 |
+
**Vocabulary Coverage**
|
| 440 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 441 |
+
>
|
| 442 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 443 |
+
>
|
| 444 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 445 |
+
|
| 446 |
+
### Word Embedding Metrics
|
| 447 |
+
|
| 448 |
+
**Isotropy**
|
| 449 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 450 |
+
>
|
| 451 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 452 |
+
>
|
| 453 |
+
> *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.
|
| 454 |
+
|
| 455 |
+
**Average Norm**
|
| 456 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 457 |
+
>
|
| 458 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 459 |
+
>
|
| 460 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 461 |
+
|
| 462 |
+
**Cosine Similarity**
|
| 463 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 464 |
+
>
|
| 465 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 466 |
+
>
|
| 467 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 468 |
+
|
| 469 |
+
**t-SNE Visualization**
|
| 470 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 471 |
+
>
|
| 472 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 473 |
+
>
|
| 474 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 475 |
+
|
| 476 |
+
### General Interpretation Guidelines
|
| 477 |
+
|
| 478 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 479 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 480 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 481 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 482 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
### Visualizations Index
|
| 486 |
+
|
| 487 |
+
| Visualization | Description |
|
| 488 |
+
|---------------|-------------|
|
| 489 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 490 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 491 |
+
| Tokenizer OOV | Unknown token rates |
|
| 492 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 493 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 494 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 495 |
+
| N-gram Coverage | Top pattern coverage |
|
| 496 |
+
| N-gram Unique | Unique n-gram counts |
|
| 497 |
+
| Markov Entropy | Entropy by context size |
|
| 498 |
+
| Markov Branching | Branching factor by context |
|
| 499 |
+
| Markov Contexts | Unique context counts |
|
| 500 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 501 |
+
| Vocab Frequency | Word frequency distribution |
|
| 502 |
+
| Top 20 Words | Most frequent words |
|
| 503 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 504 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 505 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 506 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 507 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 508 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 509 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 510 |
+
| Position Encoding | Encoding method comparison |
|
| 511 |
+
| Model Sizes | Storage requirements |
|
| 512 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 513 |
+
|
| 514 |
+
---
|
| 515 |
+
## About This Project
|
| 516 |
+
|
| 517 |
+
### Data Source
|
| 518 |
+
|
| 519 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 520 |
+
|
| 521 |
+
### Project
|
| 522 |
+
|
| 523 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 524 |
+
|
| 525 |
+
### Maintainer
|
| 526 |
+
|
| 527 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 528 |
+
|
| 529 |
+
### Citation
|
| 530 |
+
|
| 531 |
+
If you use these models in your research, please cite:
|
| 532 |
+
|
| 533 |
+
```bibtex
|
| 534 |
+
@misc{wikilangs2025,
|
| 535 |
+
author = {Kamali, Omar},
|
| 536 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 537 |
+
year = {2025},
|
| 538 |
+
publisher = {HuggingFace},
|
| 539 |
+
url = {https://huggingface.co/wikilangs}
|
| 540 |
+
institution = {Omneity Labs}
|
| 541 |
+
}
|
| 542 |
+
```
|
| 543 |
+
|
| 544 |
+
### License
|
| 545 |
+
|
| 546 |
+
MIT License - Free for academic and commercial use.
|
| 547 |
+
|
| 548 |
+
### Links
|
| 549 |
+
|
| 550 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 551 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 552 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 553 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 554 |
+
---
|
| 555 |
+
*Generated by Wikilangs Models Pipeline*
|
| 556 |
+
|
| 557 |
+
*Report Date: 2025-12-27 23:45:09*
|
models/embeddings/monolingual/ba_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5ab9a23748938ba7a7d67175df00ad9b8f68caab526a73b491efb79bbbbe158
|
| 3 |
+
size 1283130940
|
models/embeddings/monolingual/ba_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ba", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ba_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ba",
|
| 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": 246880
|
| 13 |
+
}
|
models/embeddings/monolingual/ba_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04654a56597263edcecef3b373e2a46dc6600d993eb9bd089dd4f30b4f6271fc
|
| 3 |
+
size 325527100
|
models/embeddings/monolingual/ba_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ba", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ba_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ba",
|
| 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": 246880
|
| 13 |
+
}
|
models/embeddings/monolingual/ba_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a93872afbd8f9317ccf9f48907b1875deb4c323daca798bc87cd8b1031f5280d
|
| 3 |
+
size 644728380
|
models/embeddings/monolingual/ba_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ba", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ba_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ba",
|
| 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": 246880
|
| 13 |
+
}
|
models/subword_markov/ba_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d6868878ce8c3d2fd2c44240f2a970b42cb2586dbfde7025d1e72a3b6ac70b3
|
| 3 |
+
size 342219
|
models/subword_markov/ba_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 4928,
|
| 6 |
+
"total_transitions": 182147511
|
| 7 |
+
}
|
models/subword_markov/ba_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a89552d8eccadab10a1ddfcdbc4ef36a2c61eb6c16185355b87ec80138c89456
|
| 3 |
+
size 2589714
|
models/subword_markov/ba_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 48690,
|
| 6 |
+
"total_transitions": 182083612
|
| 7 |
+
}
|
models/subword_markov/ba_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe121d741c5aa034400c27fbbc59abf2e556ee7421504c98b9d515f7a84ad7bb
|
| 3 |
+
size 12785656
|
models/subword_markov/ba_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 344963,
|
| 6 |
+
"total_transitions": 182019713
|
| 7 |
+
}
|
models/subword_markov/ba_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ae5d341812bb14f14b59e593a901e72ed00651851f4e438b227da8ad19c4b3b
|
| 3 |
+
size 45384065
|
models/subword_markov/ba_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 1631641,
|
| 6 |
+
"total_transitions": 181955814
|
| 7 |
+
}
|
models/subword_ngram/ba_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fc455ec80702bbdfc394b20ad7e53af994541f5739559a039c1f14797a9da11
|
| 3 |
+
size 239143
|
models/subword_ngram/ba_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 17419,
|
| 6 |
+
"total_ngrams": 182147511
|
| 7 |
+
}
|
models/subword_ngram/ba_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c40130c1d50bed91350758c922cb88d6c733a82bc1c682c711ddb6b3a967810
|
| 3 |
+
size 2055831
|
models/subword_ngram/ba_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 163683,
|
| 6 |
+
"total_ngrams": 182083612
|
| 7 |
+
}
|
models/subword_ngram/ba_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69d73f681e1e459c2bb8a107c96c5c890e3a2e44d6ab89934d8b31a552557178
|
| 3 |
+
size 11914292
|
models/subword_ngram/ba_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 914560,
|
| 6 |
+
"total_ngrams": 182019713
|
| 7 |
+
}
|
models/tokenizer/ba_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9f7f8c6111aa25b0301c425ef2ca81bd1c492beb384a92794a1bb5cc8894883
|
| 3 |
+
size 585441
|
models/tokenizer/ba_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ba_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e332a25893c33db32e04b3f994922558d7dc8b80336f210ced52c2fd41f20f5
|
| 3 |
+
size 959495
|
models/tokenizer/ba_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ba_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cea1f24f48084bfadca804cc73807fcc76d7f6bb1dff92a5c5e66974005805d8
|
| 3 |
+
size 1732060
|
models/tokenizer/ba_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ba_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e002b5188a90a30bfff5759ab095f75651e042f7c82b1813539e5174c356ccc
|
| 3 |
+
size 406416
|
models/tokenizer/ba_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ba_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:649c9e7928c6d049c1807e44ee84ba39de0da8e0afe944c65f92c5e67dc152ea
|
| 3 |
+
size 7166077
|
models/vocabulary/ba_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ba",
|
| 3 |
+
"vocabulary_size": 417410,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.04478519689532156,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.22514075312093942,
|
| 8 |
+
"top_1000": 0.505577357431498,
|
| 9 |
+
"top_5000": 0.6994683745965613,
|
| 10 |
+
"top_10000": 0.7677274461586074
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 663870,
|
| 13 |
+
"hapax_ratio": 0.6139667801124593,
|
| 14 |
+
"total_documents": 63899
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/ba_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4875129953afdc863c3b7840b357671100ecec9e86e7b3b1f5291e35e34721f
|
| 3 |
+
size 96022509
|
models/word_markov/ba_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 1081802,
|
| 6 |
+
"total_transitions": 31976815
|
| 7 |
+
}
|
models/word_markov/ba_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40cea10bfc8003e0da9502d75d5a3f40994d832dc0531213e610dc8d43e240b8
|
| 3 |
+
size 318818703
|
models/word_markov/ba_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 7695897,
|
| 6 |
+
"total_transitions": 31912918
|
| 7 |
+
}
|
models/word_markov/ba_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f02c513c6045c41dd1b65bd8350a8ae70c94cc93ed3a0e138a41a538bcc05b9
|
| 3 |
+
size 525618960
|
models/word_markov/ba_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 15852609,
|
| 6 |
+
"total_transitions": 31849021
|
| 7 |
+
}
|
models/word_markov/ba_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:285ccd82b56012a9d822c5a84b5bd795f9f01fdd006e41e3d182acacb79cd943
|
| 3 |
+
size 670487523
|
models/word_markov/ba_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_contexts": 20837559,
|
| 6 |
+
"total_transitions": 31785127
|
| 7 |
+
}
|
models/word_ngram/ba_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfe67bcedd2ac32d53a8a2dd06d0192ad020853a8783d4bb0a6899c0ea5f9839
|
| 3 |
+
size 13228712
|
models/word_ngram/ba_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 552281,
|
| 6 |
+
"total_ngrams": 31976815
|
| 7 |
+
}
|
models/word_ngram/ba_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8dfd471500e30bd3120ae58431c82aac2f9ea6b68195d44bb94fde6f64830a54
|
| 3 |
+
size 27689470
|
models/word_ngram/ba_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 1025675,
|
| 6 |
+
"total_ngrams": 31912918
|
| 7 |
+
}
|
models/word_ngram/ba_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:577732cb5b7771e05860e02c4596a4b43feba90e0cbe682d7bca85459e12e11a
|
| 3 |
+
size 51575545
|
models/word_ngram/ba_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ba",
|
| 5 |
+
"unique_ngrams": 1793503,
|
| 6 |
+
"total_ngrams": 31849021
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|