Upload all models and assets for az (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +567 -0
- models/embeddings/monolingual/az_128d.bin +3 -0
- models/embeddings/monolingual/az_128d.meta.json +1 -0
- models/embeddings/monolingual/az_128d_metadata.json +13 -0
- models/embeddings/monolingual/az_32d.bin +3 -0
- models/embeddings/monolingual/az_32d.meta.json +1 -0
- models/embeddings/monolingual/az_32d_metadata.json +13 -0
- models/embeddings/monolingual/az_64d.bin +3 -0
- models/embeddings/monolingual/az_64d.meta.json +1 -0
- models/embeddings/monolingual/az_64d_metadata.json +13 -0
- models/subword_markov/az_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/az_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/az_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/az_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/az_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/az_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/az_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/az_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/az_2gram_subword.parquet +3 -0
- models/subword_ngram/az_2gram_subword_metadata.json +7 -0
- models/subword_ngram/az_3gram_subword.parquet +3 -0
- models/subword_ngram/az_3gram_subword_metadata.json +7 -0
- models/subword_ngram/az_4gram_subword.parquet +3 -0
- models/subword_ngram/az_4gram_subword_metadata.json +7 -0
- models/tokenizer/az_tokenizer_16k.model +3 -0
- models/tokenizer/az_tokenizer_16k.vocab +0 -0
- models/tokenizer/az_tokenizer_32k.model +3 -0
- models/tokenizer/az_tokenizer_32k.vocab +0 -0
- models/tokenizer/az_tokenizer_64k.model +3 -0
- models/tokenizer/az_tokenizer_64k.vocab +0 -0
- models/tokenizer/az_tokenizer_8k.model +3 -0
- models/tokenizer/az_tokenizer_8k.vocab +0 -0
- models/vocabulary/az_vocabulary.parquet +3 -0
- models/vocabulary/az_vocabulary_metadata.json +16 -0
- models/word_markov/az_markov_ctx1_word.parquet +3 -0
- models/word_markov/az_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/az_markov_ctx2_word.parquet +3 -0
- models/word_markov/az_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/az_markov_ctx3_word.parquet +3 -0
- models/word_markov/az_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/az_markov_ctx4_word.parquet +3 -0
- models/word_markov/az_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/az_2gram_word.parquet +3 -0
- models/word_ngram/az_2gram_word_metadata.json +7 -0
- models/word_ngram/az_3gram_word.parquet +3 -0
- models/word_ngram/az_3gram_word_metadata.json +7 -0
- models/word_ngram/az_4gram_word.parquet +3 -0
- models/word_ngram/az_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_law.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: az
|
| 3 |
+
language_name: AZ
|
| 4 |
+
language_family: turkic_oghuz
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-turkic_oghuz
|
| 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.560
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8153
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 807823
|
| 33 |
+
generated: 2025-12-27
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# AZ - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **AZ** 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.637x | 3.59 | 0.0980% | 1,442,215 |
|
| 76 |
+
| **16k** | 4.016x | 3.97 | 0.1082% | 1,305,814 |
|
| 77 |
+
| **32k** | 4.326x | 4.27 | 0.1165% | 1,212,431 |
|
| 78 |
+
| **64k** | 4.560x 🏆 | 4.50 | 0.1229% | 1,150,092 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Hadisələr
|
| 85 |
+
|
| 86 |
+
Doğumlar
|
| 87 |
+
|
| 88 |
+
Vəfatlar
|
| 89 |
+
Soqdian — e.ə. 424–423-cü illərdə hakimiyyət...`
|
| 90 |
+
|
| 91 |
+
| Vocab | Tokens | Count |
|
| 92 |
+
|-------|--------|-------|
|
| 93 |
+
| 8k | `▁hadisələr ▁doğumlar ▁vəfatlar ▁s oq di an ▁— ▁e . ... (+21 more)` | 31 |
|
| 94 |
+
| 16k | `▁hadisələr ▁doğumlar ▁vəfatlar ▁s oq dian ▁— ▁e . ə ... (+19 more)` | 29 |
|
| 95 |
+
| 32k | `▁hadisələr ▁doğumlar ▁vəfatlar ▁s oq dian ▁— ▁e . ə ... (+18 more)` | 28 |
|
| 96 |
+
| 64k | `▁hadisələr ▁doğumlar ▁vəfatlar ▁soq dian ▁— ▁e . ə . ... (+17 more)` | 27 |
|
| 97 |
+
|
| 98 |
+
**Sample 2:** `() — aləminin dəstəsinin fəsiləsinin cinsinə aid bitki növü.
|
| 99 |
+
|
| 100 |
+
İstinadlar
|
| 101 |
+
|
| 102 |
+
...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 107 |
+
| 16k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 108 |
+
| 32k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 109 |
+
| 64k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 110 |
+
|
| 111 |
+
**Sample 3:** `() — aləminin dəstəsinin fəsiləsinin cinsinə aid bitki növü.
|
| 112 |
+
|
| 113 |
+
İstinadlar
|
| 114 |
+
|
| 115 |
+
...`
|
| 116 |
+
|
| 117 |
+
| Vocab | Tokens | Count |
|
| 118 |
+
|-------|--------|-------|
|
| 119 |
+
| 8k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 120 |
+
| 16k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 121 |
+
| 32k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 122 |
+
| 64k | `▁() ▁— ▁aləminin ▁dəstəsinin ▁fəsiləsinin ▁cinsinə ▁aid ▁bitki ▁növü . ... (+3 more)` | 13 |
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
### Key Findings
|
| 126 |
+
|
| 127 |
+
- **Best Compression:** 64k achieves 4.560x compression
|
| 128 |
+
- **Lowest UNK Rate:** 8k with 0.0980% unknown tokens
|
| 129 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 130 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
## 2. N-gram Model Evaluation
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
|
| 139 |
+
### Results
|
| 140 |
+
|
| 141 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 142 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 143 |
+
| **2-gram** | 116,331 🏆 | 16.83 | 1,418,191 | 12.2% | 25.0% |
|
| 144 |
+
| **2-gram** | 463 🏆 | 8.85 | 22,197 | 55.1% | 96.6% |
|
| 145 |
+
| **3-gram** | 409,514 | 18.64 | 2,779,660 | 7.3% | 16.3% |
|
| 146 |
+
| **3-gram** | 4,354 | 12.09 | 215,243 | 19.6% | 58.8% |
|
| 147 |
+
| **4-gram** | 1,285,123 | 20.29 | 5,336,948 | 4.2% | 9.8% |
|
| 148 |
+
| **4-gram** | 24,655 | 14.59 | 1,308,669 | 10.0% | 31.8% |
|
| 149 |
+
|
| 150 |
+
### Top 5 N-grams by Size
|
| 151 |
+
|
| 152 |
+
**2-grams:**
|
| 153 |
+
|
| 154 |
+
| Rank | N-gram | Count |
|
| 155 |
+
|------|--------|-------|
|
| 156 |
+
| 1 | `i ̇` | 824,078 |
|
| 157 |
+
| 2 | `- ci` | 452,530 |
|
| 158 |
+
| 3 | `kateqoriya :` | 365,784 |
|
| 159 |
+
| 4 | `. i` | 236,809 |
|
| 160 |
+
| 5 | `ci ildə` | 221,298 |
|
| 161 |
+
|
| 162 |
+
**3-grams:**
|
| 163 |
+
|
| 164 |
+
| Rank | N-gram | Count |
|
| 165 |
+
|------|--------|-------|
|
| 166 |
+
| 1 | `. i ̇` | 227,697 |
|
| 167 |
+
| 2 | `- ci ildə` | 220,310 |
|
| 168 |
+
| 3 | `i ̇ stinadlar` | 171,011 |
|
| 169 |
+
| 4 | `- cü ildə` | 76,499 |
|
| 170 |
+
| 5 | `( ) —` | 70,885 |
|
| 171 |
+
|
| 172 |
+
**4-grams:**
|
| 173 |
+
|
| 174 |
+
| Rank | N-gram | Count |
|
| 175 |
+
|------|--------|-------|
|
| 176 |
+
| 1 | `. i ̇ stinadlar` | 103,078 |
|
| 177 |
+
| 2 | `i ̇ stinadlar kateqoriya` | 65,368 |
|
| 178 |
+
| 3 | `̇ stinadlar kateqoriya :` | 65,368 |
|
| 179 |
+
| 4 | `i ̇ stinadlar xarici` | 45,918 |
|
| 180 |
+
| 5 | `̇ stinadlar xarici keçidlər` | 45,490 |
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
### Key Findings
|
| 184 |
+
|
| 185 |
+
- **Best Perplexity:** 2-gram with 463
|
| 186 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 187 |
+
- **Coverage:** Top-1000 patterns cover ~32% of corpus
|
| 188 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 189 |
+
|
| 190 |
+
---
|
| 191 |
+
## 3. Markov Chain Evaluation
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
|
| 197 |
+
### Results
|
| 198 |
+
|
| 199 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 200 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 201 |
+
| **1** | 0.7520 | 1.684 | 8.95 | 1,994,233 | 24.8% |
|
| 202 |
+
| **1** | 1.3997 | 2.638 | 10.24 | 7,113 | 0.0% |
|
| 203 |
+
| **2** | 0.3489 | 1.274 | 2.24 | 17,848,485 | 65.1% |
|
| 204 |
+
| **2** | 0.8515 | 1.804 | 6.20 | 72,786 | 14.8% |
|
| 205 |
+
| **3** | 0.1419 | 1.103 | 1.34 | 39,971,548 | 85.8% |
|
| 206 |
+
| **3** | 0.8951 | 1.860 | 5.05 | 451,475 | 10.5% |
|
| 207 |
+
| **4** | 0.0656 🏆 | 1.046 | 1.14 | 53,703,949 | 93.4% |
|
| 208 |
+
| **4** | 0.7324 🏆 | 1.661 | 3.53 | 2,281,437 | 26.8% |
|
| 209 |
+
|
| 210 |
+
### Generated Text Samples
|
| 211 |
+
|
| 212 |
+
Below are text samples generated from each Markov chain model:
|
| 213 |
+
|
| 214 |
+
**Context Size 1:**
|
| 215 |
+
|
| 216 |
+
1. `. şerlər əsasən observantlar monastırlarının bəzilərinin əvvəllər per teodor hertslin başlatdığı işğ...`
|
| 217 |
+
2. `, buenos - dən az saylı xəstəxanada həkim , 316 kvadrat metrdən çox öz qoşunu təbrizi`
|
| 218 |
+
3. `- ci ildə yarananlar kateqoriya : 46 - ci ildə baş verən əsas götürərək . orta`
|
| 219 |
+
|
| 220 |
+
**Context Size 2:**
|
| 221 |
+
|
| 222 |
+
1. `i ̇ stinadlar xarici keçidlər бухарский трактат о каллиграфах и художниках трактат о каллиграфах и х...`
|
| 223 |
+
2. `- ci ildə i ̇ raqa , hindistana və hətta oğlundan dörd il sonra " psm3 "`
|
| 224 |
+
3. `kateqoriya : şuşanın görməli yerləri kateqoriya : sionistlər kateqoriya : germi şəhristanının kəndlə...`
|
| 225 |
+
|
| 226 |
+
**Context Size 3:**
|
| 227 |
+
|
| 228 |
+
1. `. i ̇ ki cilddə . i cild . bakı : nafta - press , 2013 ) (`
|
| 229 |
+
2. `- ci ildə yarananlar kateqoriya : 8 iyunda yarananlar kateqoriya : universitas 21 kateqoriya : azərb...`
|
| 230 |
+
3. `i ̇ stinadlar xarici keçidlər həmçinin bax kateqoriya : yaponiya hüquqşünasları kateqoriya : azərbay...`
|
| 231 |
+
|
| 232 |
+
**Context Size 4:**
|
| 233 |
+
|
| 234 |
+
1. `. i ̇ stinadlar mənbə " treska " kateqoriya : avropa dağ sistemləri kateqoriya : gürcüstan relyefi k...`
|
| 235 |
+
2. `̇ stinadlar kateqoriya : traktorçular kateqoriya : azərbaycan pambıqçıları kateqoriya : azərbaycan s...`
|
| 236 |
+
3. `i ̇ stinadlar kateqoriya : xorvatiyanın olimpiya həndbolçuları kateqoriya : 2016 yay olimpiya oyunla...`
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
### Key Findings
|
| 240 |
+
|
| 241 |
+
- **Best Predictability:** Context-4 with 93.4% predictability
|
| 242 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 243 |
+
- **Memory Trade-off:** Larger contexts require more storage (2,281,437 contexts)
|
| 244 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 245 |
+
|
| 246 |
+
---
|
| 247 |
+
## 4. Vocabulary Analysis
|
| 248 |
+
|
| 249 |
+

|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
|
| 255 |
+
### Statistics
|
| 256 |
+
|
| 257 |
+
| Metric | Value |
|
| 258 |
+
|--------|-------|
|
| 259 |
+
| Vocabulary Size | 807,823 |
|
| 260 |
+
| Total Tokens | 58,755,251 |
|
| 261 |
+
| Mean Frequency | 72.73 |
|
| 262 |
+
| Median Frequency | 4 |
|
| 263 |
+
| Frequency Std Dev | 2550.61 |
|
| 264 |
+
|
| 265 |
+
### Most Common Words
|
| 266 |
+
|
| 267 |
+
| Rank | Word | Frequency |
|
| 268 |
+
|------|------|-----------|
|
| 269 |
+
| 1 | və | 1,490,176 |
|
| 270 |
+
| 2 | i | 892,240 |
|
| 271 |
+
| 3 | ci | 455,280 |
|
| 272 |
+
| 4 | ildə | 414,485 |
|
| 273 |
+
| 5 | ilə | 413,230 |
|
| 274 |
+
| 6 | kateqoriya | 366,496 |
|
| 275 |
+
| 7 | bir | 366,287 |
|
| 276 |
+
| 8 | bu | 362,130 |
|
| 277 |
+
| 9 | azərbaycan | 248,838 |
|
| 278 |
+
| 10 | də | 234,167 |
|
| 279 |
+
|
| 280 |
+
### Least Common Words (from vocabulary)
|
| 281 |
+
|
| 282 |
+
| Rank | Word | Frequency |
|
| 283 |
+
|------|------|-----------|
|
| 284 |
+
| 1 | cërrik | 2 |
|
| 285 |
+
| 2 | liamın | 2 |
|
| 286 |
+
| 3 | liamla | 2 |
|
| 287 |
+
| 4 | backstab | 2 |
|
| 288 |
+
| 5 | antonioi | 2 |
|
| 289 |
+
| 6 | nipissinq | 2 |
|
| 290 |
+
| 7 | votivkirche | 2 |
|
| 291 |
+
| 8 | pirtle | 2 |
|
| 292 |
+
| 9 | takaxasinin | 2 |
|
| 293 |
+
| 10 | caporael | 2 |
|
| 294 |
+
|
| 295 |
+
### Zipf's Law Analysis
|
| 296 |
+
|
| 297 |
+
| Metric | Value |
|
| 298 |
+
|--------|-------|
|
| 299 |
+
| Zipf Coefficient | 0.9771 |
|
| 300 |
+
| R² (Goodness of Fit) | 0.992093 |
|
| 301 |
+
| Adherence Quality | **excellent** |
|
| 302 |
+
|
| 303 |
+
### Coverage Analysis
|
| 304 |
+
|
| 305 |
+
| Top N Words | Coverage |
|
| 306 |
+
|-------------|----------|
|
| 307 |
+
| Top 100 | 22.3% |
|
| 308 |
+
| Top 1,000 | 46.6% |
|
| 309 |
+
| Top 5,000 | 66.6% |
|
| 310 |
+
| Top 10,000 | 74.5% |
|
| 311 |
+
|
| 312 |
+
### Key Findings
|
| 313 |
+
|
| 314 |
+
- **Zipf Compliance:** R²=0.9921 indicates excellent adherence to Zipf's law
|
| 315 |
+
- **High Frequency Dominance:** Top 100 words cover 22.3% of corpus
|
| 316 |
+
- **Long Tail:** 797,823 words needed for remaining 25.5% coverage
|
| 317 |
+
|
| 318 |
+
---
|
| 319 |
+
## 5. Word Embeddings Evaluation
|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
|
| 329 |
+
### Model Comparison
|
| 330 |
+
|
| 331 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 332 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 333 |
+
| **mono_32d** | 509,900 | 32 | 3.229 | 0.928 | 0.8153 🏆 |
|
| 334 |
+
| **mono_64d** | 509,900 | 64 | 3.675 | 0.940 | 0.8024 |
|
| 335 |
+
| **mono_128d** | 509,900 | 128 | 4.156 | 0.943 | 0.7626 |
|
| 336 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 337 |
+
|
| 338 |
+
### Key Findings
|
| 339 |
+
|
| 340 |
+
- **Best Isotropy:** mono_32d with 0.8153 (more uniform distribution)
|
| 341 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 342 |
+
- **Vocabulary Coverage:** All models cover 509,900 words
|
| 343 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 344 |
+
|
| 345 |
+
---
|
| 346 |
+
## 6. Summary & Recommendations
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
|
| 350 |
+
### Production Recommendations
|
| 351 |
+
|
| 352 |
+
| Component | Recommended | Rationale |
|
| 353 |
+
|-----------|-------------|-----------|
|
| 354 |
+
| Tokenizer | **32k BPE** | Best compression (4.56x) with low UNK rate |
|
| 355 |
+
| N-gram | **5-gram** | Lowest perplexity (463) |
|
| 356 |
+
| Markov | **Context-4** | Highest predictability (93.4%) |
|
| 357 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 358 |
+
|
| 359 |
+
---
|
| 360 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 361 |
+
|
| 362 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 363 |
+
|
| 364 |
+
### Tokenizer Metrics
|
| 365 |
+
|
| 366 |
+
**Compression Ratio**
|
| 367 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 368 |
+
>
|
| 369 |
+
> *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.
|
| 370 |
+
>
|
| 371 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 372 |
+
|
| 373 |
+
**Average Token Length (Fertility)**
|
| 374 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 375 |
+
>
|
| 376 |
+
> *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.
|
| 377 |
+
>
|
| 378 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 379 |
+
|
| 380 |
+
**Unknown Token Rate (OOV Rate)**
|
| 381 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 382 |
+
>
|
| 383 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 384 |
+
>
|
| 385 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 386 |
+
|
| 387 |
+
### N-gram Model Metrics
|
| 388 |
+
|
| 389 |
+
**Perplexity**
|
| 390 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 391 |
+
>
|
| 392 |
+
> *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.
|
| 393 |
+
>
|
| 394 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 395 |
+
|
| 396 |
+
**Entropy**
|
| 397 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 398 |
+
>
|
| 399 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 400 |
+
>
|
| 401 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 402 |
+
|
| 403 |
+
**Coverage (Top-K)**
|
| 404 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 405 |
+
>
|
| 406 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 407 |
+
>
|
| 408 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 409 |
+
|
| 410 |
+
### Markov Chain Metrics
|
| 411 |
+
|
| 412 |
+
**Average Entropy**
|
| 413 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 414 |
+
>
|
| 415 |
+
> *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).
|
| 416 |
+
>
|
| 417 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 418 |
+
|
| 419 |
+
**Branching Factor**
|
| 420 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 421 |
+
>
|
| 422 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 423 |
+
>
|
| 424 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 425 |
+
|
| 426 |
+
**Predictability**
|
| 427 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 428 |
+
>
|
| 429 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 430 |
+
>
|
| 431 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 432 |
+
|
| 433 |
+
### Vocabulary & Zipf's Law Metrics
|
| 434 |
+
|
| 435 |
+
**Zipf's Coefficient**
|
| 436 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 437 |
+
>
|
| 438 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 439 |
+
>
|
| 440 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 441 |
+
|
| 442 |
+
**R² (Coefficient of Determination)**
|
| 443 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 444 |
+
>
|
| 445 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 446 |
+
>
|
| 447 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 448 |
+
|
| 449 |
+
**Vocabulary Coverage**
|
| 450 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 451 |
+
>
|
| 452 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 453 |
+
>
|
| 454 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 455 |
+
|
| 456 |
+
### Word Embedding Metrics
|
| 457 |
+
|
| 458 |
+
**Isotropy**
|
| 459 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 460 |
+
>
|
| 461 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 462 |
+
>
|
| 463 |
+
> *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.
|
| 464 |
+
|
| 465 |
+
**Average Norm**
|
| 466 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 467 |
+
>
|
| 468 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 469 |
+
>
|
| 470 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 471 |
+
|
| 472 |
+
**Cosine Similarity**
|
| 473 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 474 |
+
>
|
| 475 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 476 |
+
>
|
| 477 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 478 |
+
|
| 479 |
+
**t-SNE Visualization**
|
| 480 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 481 |
+
>
|
| 482 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 483 |
+
>
|
| 484 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 485 |
+
|
| 486 |
+
### General Interpretation Guidelines
|
| 487 |
+
|
| 488 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 489 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 490 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 491 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 492 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 493 |
+
|
| 494 |
+
|
| 495 |
+
### Visualizations Index
|
| 496 |
+
|
| 497 |
+
| Visualization | Description |
|
| 498 |
+
|---------------|-------------|
|
| 499 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 500 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 501 |
+
| Tokenizer OOV | Unknown token rates |
|
| 502 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 503 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 504 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 505 |
+
| N-gram Coverage | Top pattern coverage |
|
| 506 |
+
| N-gram Unique | Unique n-gram counts |
|
| 507 |
+
| Markov Entropy | Entropy by context size |
|
| 508 |
+
| Markov Branching | Branching factor by context |
|
| 509 |
+
| Markov Contexts | Unique context counts |
|
| 510 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 511 |
+
| Vocab Frequency | Word frequency distribution |
|
| 512 |
+
| Top 20 Words | Most frequent words |
|
| 513 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 514 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 515 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 516 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 517 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 518 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 519 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 520 |
+
| Position Encoding | Encoding method comparison |
|
| 521 |
+
| Model Sizes | Storage requirements |
|
| 522 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 523 |
+
|
| 524 |
+
---
|
| 525 |
+
## About This Project
|
| 526 |
+
|
| 527 |
+
### Data Source
|
| 528 |
+
|
| 529 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 530 |
+
|
| 531 |
+
### Project
|
| 532 |
+
|
| 533 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 534 |
+
|
| 535 |
+
### Maintainer
|
| 536 |
+
|
| 537 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 538 |
+
|
| 539 |
+
### Citation
|
| 540 |
+
|
| 541 |
+
If you use these models in your research, please cite:
|
| 542 |
+
|
| 543 |
+
```bibtex
|
| 544 |
+
@misc{wikilangs2025,
|
| 545 |
+
author = {Kamali, Omar},
|
| 546 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 547 |
+
year = {2025},
|
| 548 |
+
publisher = {HuggingFace},
|
| 549 |
+
url = {https://huggingface.co/wikilangs}
|
| 550 |
+
institution = {Omneity Labs}
|
| 551 |
+
}
|
| 552 |
+
```
|
| 553 |
+
|
| 554 |
+
### License
|
| 555 |
+
|
| 556 |
+
MIT License - Free for academic and commercial use.
|
| 557 |
+
|
| 558 |
+
### Links
|
| 559 |
+
|
| 560 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 561 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 562 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 563 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 564 |
+
---
|
| 565 |
+
*Generated by Wikilangs Models Pipeline*
|
| 566 |
+
|
| 567 |
+
*Report Date: 2025-12-27 22:29:22*
|
models/embeddings/monolingual/az_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef77feb09cfca11c3c70d43e5ebfc128aa2ce50ce323c7a349cd6272dceeecaf
|
| 3 |
+
size 1556313250
|
models/embeddings/monolingual/az_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "az", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/az_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "az",
|
| 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": 509900
|
| 13 |
+
}
|
models/embeddings/monolingual/az_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:213be535e52a36209d1823ea600aa5f918189933d961ffc129d4abdf1241505c
|
| 3 |
+
size 396710050
|
models/embeddings/monolingual/az_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "az", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/az_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "az",
|
| 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": 509900
|
| 13 |
+
}
|
models/embeddings/monolingual/az_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84f2fe715f5b8f553b9c0597a167bd6132f61d2a82f93df713c1f6ccc727c629
|
| 3 |
+
size 783244450
|
models/embeddings/monolingual/az_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "az", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/az_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "az",
|
| 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": 509900
|
| 13 |
+
}
|
models/subword_markov/az_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e52b2d1b7aa86c543cfb6c57d379300d0aa39afe36befd7696d0f381c5c26465
|
| 3 |
+
size 483989
|
models/subword_markov/az_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 7113,
|
| 6 |
+
"total_transitions": 445372741
|
| 7 |
+
}
|
models/subword_markov/az_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1acb2d2cb49f03823d7a5f04faf687f085160a4c1dc2adab7a4e13964b03be2
|
| 3 |
+
size 3427707
|
models/subword_markov/az_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 72786,
|
| 6 |
+
"total_transitions": 445163302
|
| 7 |
+
}
|
models/subword_markov/az_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3871d32804a2219f5f3396b0b91728dd6160992e59d42fe8896c4bcb94382621
|
| 3 |
+
size 17111060
|
models/subword_markov/az_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 451475,
|
| 6 |
+
"total_transitions": 444953863
|
| 7 |
+
}
|
models/subword_markov/az_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:992bd3717b1c0b08cdf1f88aca515bb1af0f25b7e826c455a45e0c59fba62789
|
| 3 |
+
size 63283624
|
models/subword_markov/az_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 2281437,
|
| 6 |
+
"total_transitions": 444744424
|
| 7 |
+
}
|
models/subword_ngram/az_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6660aa5cd67b23837187e8e6e9dfb8811773fbc67c340cc925dd96fa477df8e
|
| 3 |
+
size 303706
|
models/subword_ngram/az_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 22197,
|
| 6 |
+
"total_ngrams": 445372741
|
| 7 |
+
}
|
models/subword_ngram/az_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa8ff9a642d58e018c6450c1335c0a292325f197796ebacda28d7c1c7a3777b7
|
| 3 |
+
size 2629264
|
models/subword_ngram/az_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 215243,
|
| 6 |
+
"total_ngrams": 445163302
|
| 7 |
+
}
|
models/subword_ngram/az_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bc1dc82aeb72c52118bdcc1218942799ccbb6d2026c2502ea95e09500818f3f
|
| 3 |
+
size 15841110
|
models/subword_ngram/az_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 1308669,
|
| 6 |
+
"total_ngrams": 444953863
|
| 7 |
+
}
|
models/tokenizer/az_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ccd48dce261b522aa16ede8b95d9ad20d051d2c94ba30c4ab9ed7bef4352fcb5
|
| 3 |
+
size 524499
|
models/tokenizer/az_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/az_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdf25b32c3b72ec7ec3b8aceeb4d191e79c362a8d341638d4fcdb76e2d80c91d
|
| 3 |
+
size 828562
|
models/tokenizer/az_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/az_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3494c2e094066efac7039285393d96c5566a53494a40c805dba02bf3d6872305
|
| 3 |
+
size 1452009
|
models/tokenizer/az_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/az_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d7a854bf952eaf3d642c73822c12056ae4fe37d97611c7982a3a2b8fbd00b18
|
| 3 |
+
size 378944
|
models/tokenizer/az_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/az_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ed780a3b2e5a6030d0e1fd52789c427bb6d0e19d7919077548a05c0987228e7
|
| 3 |
+
size 12576112
|
models/vocabulary/az_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "az",
|
| 3 |
+
"vocabulary_size": 807823,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.033264968758808605,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.2190541471720636,
|
| 8 |
+
"top_1000": 0.45649574344105814,
|
| 9 |
+
"top_5000": 0.652480233353335,
|
| 10 |
+
"top_10000": 0.7304854329670376
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 1186125,
|
| 13 |
+
"hapax_ratio": 0.5948625540886723,
|
| 14 |
+
"total_documents": 209439
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/az_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78f23984cd4f538e3fa3b3c016b36c84c54722f080a2ed5e699c493ea391b679
|
| 3 |
+
size 176258147
|
models/word_markov/az_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 1994233,
|
| 6 |
+
"total_transitions": 76499213
|
| 7 |
+
}
|
models/word_markov/az_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84c74e51483191748a055d289e1a5aef8772a956f2bf11cba9e7d189ea1b4b32
|
| 3 |
+
size 573585822
|
models/word_markov/az_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 17848485,
|
| 6 |
+
"total_transitions": 76289777
|
| 7 |
+
}
|
models/word_markov/az_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ecd9c2c1f1e9044f86b57b09c32aa0253765d15caddc662a6627016504ef0d6
|
| 3 |
+
size 966856566
|
models/word_markov/az_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 39971548,
|
| 6 |
+
"total_transitions": 76080345
|
| 7 |
+
}
|
models/word_markov/az_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b2ed605da828cb5c4cae04eb068d419b295b7ee8b6e197746cbfb6c60f02aa8
|
| 3 |
+
size 1216484335
|
models/word_markov/az_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_contexts": 53703949,
|
| 6 |
+
"total_transitions": 75870923
|
| 7 |
+
}
|
models/word_ngram/az_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5b140538fc4f6c175a39196aec356d60fb7278eabb173a6ee0e9a00e793f6bd
|
| 3 |
+
size 24317081
|
models/word_ngram/az_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 1418191,
|
| 6 |
+
"total_ngrams": 76499213
|
| 7 |
+
}
|
models/word_ngram/az_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0be337c9dcb09a378486e60ffe7df7c2fdfcdb019085fec83df21719c9fe8870
|
| 3 |
+
size 52514526
|
models/word_ngram/az_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 2779660,
|
| 6 |
+
"total_ngrams": 76289777
|
| 7 |
+
}
|
models/word_ngram/az_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cedd59a0b14806f93960d2fa3c58fc0bcc63c2d7198a36bbd07d210cc0a9e5b9
|
| 3 |
+
size 104278452
|
models/word_ngram/az_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "az",
|
| 5 |
+
"unique_ngrams": 5336948,
|
| 6 |
+
"total_ngrams": 76080345
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|