Upload all models and assets for ab (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +562 -0
- models/embeddings/monolingual/ab_128d.bin +3 -0
- models/embeddings/monolingual/ab_128d.meta.json +1 -0
- models/embeddings/monolingual/ab_128d_metadata.json +13 -0
- models/embeddings/monolingual/ab_32d.bin +3 -0
- models/embeddings/monolingual/ab_32d.meta.json +1 -0
- models/embeddings/monolingual/ab_32d_metadata.json +13 -0
- models/embeddings/monolingual/ab_64d.bin +3 -0
- models/embeddings/monolingual/ab_64d.meta.json +1 -0
- models/embeddings/monolingual/ab_64d_metadata.json +13 -0
- models/subword_markov/ab_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ab_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ab_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ab_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ab_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ab_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ab_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ab_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ab_2gram_subword.parquet +3 -0
- models/subword_ngram/ab_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ab_3gram_subword.parquet +3 -0
- models/subword_ngram/ab_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ab_4gram_subword.parquet +3 -0
- models/subword_ngram/ab_4gram_subword_metadata.json +7 -0
- models/tokenizer/ab_tokenizer_16k.model +3 -0
- models/tokenizer/ab_tokenizer_16k.vocab +0 -0
- models/tokenizer/ab_tokenizer_32k.model +3 -0
- models/tokenizer/ab_tokenizer_32k.vocab +0 -0
- models/tokenizer/ab_tokenizer_64k.model +3 -0
- models/tokenizer/ab_tokenizer_64k.vocab +0 -0
- models/tokenizer/ab_tokenizer_8k.model +3 -0
- models/tokenizer/ab_tokenizer_8k.vocab +0 -0
- models/vocabulary/ab_vocabulary.parquet +3 -0
- models/vocabulary/ab_vocabulary_metadata.json +16 -0
- models/word_markov/ab_markov_ctx1_word.parquet +3 -0
- models/word_markov/ab_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ab_markov_ctx2_word.parquet +3 -0
- models/word_markov/ab_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ab_markov_ctx3_word.parquet +3 -0
- models/word_markov/ab_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ab_markov_ctx4_word.parquet +3 -0
- models/word_markov/ab_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/ab_2gram_word.parquet +3 -0
- models/word_ngram/ab_2gram_word_metadata.json +7 -0
- models/word_ngram/ab_3gram_word.parquet +3 -0
- models/word_ngram/ab_3gram_word_metadata.json +7 -0
- models/word_ngram/ab_4gram_word.parquet +3 -0
- models/word_ngram/ab_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: ab
|
| 3 |
+
language_name: AB
|
| 4 |
+
language_family: caucasian_northwest
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-caucasian_northwest
|
| 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.203
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8443
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 34914
|
| 33 |
+
generated: 2025-12-27
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# AB - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **AB** 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.211x | 3.15 | 0.1756% | 257,918 |
|
| 76 |
+
| **16k** | 3.553x | 3.49 | 0.1943% | 233,133 |
|
| 77 |
+
| **32k** | 3.880x | 3.81 | 0.2122% | 213,462 |
|
| 78 |
+
| **64k** | 4.203x 🏆 | 4.13 | 0.2299% | 197,072 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Ѫ, ѫ — кириллтәи аҩыратә архаикатә иажәхьоу нбан.
|
| 85 |
+
|
| 86 |
+
Азхьарԥшқәа
|
| 87 |
+
Graphemica (Ѫ)
|
| 88 |
+
...`
|
| 89 |
+
|
| 90 |
+
| Vocab | Tokens | Count |
|
| 91 |
+
|-------|--------|-------|
|
| 92 |
+
| 8k | `▁ ѫ , ▁ ѫ ▁— ▁кириллтәи ▁аҩыратә ▁архаикатә ▁иажәхьоу ... (+11 more)` | 21 |
|
| 93 |
+
| 16k | `▁ ѫ , ▁ ѫ ▁— ▁кириллтәи ▁аҩыратә ▁архаикатә ▁иажәхьоу ... (+11 more)` | 21 |
|
| 94 |
+
| 32k | `▁ ѫ , ▁ ѫ ▁— ▁кириллтәи ▁аҩыратә ▁архаикатә ▁иажәхьоу ... (+11 more)` | 21 |
|
| 95 |
+
| 64k | `▁ ѫ , ▁ ѫ ▁— ▁кириллтәи ▁аҩыратә ▁архаикатә ▁иажәхьоу ... (+11 more)` | 21 |
|
| 96 |
+
|
| 97 |
+
**Sample 2:** `Аби́а () — ҵиаа. Ашәыр. Ашәырҵла.
|
| 98 |
+
|
| 99 |
+
Ахьарԥшқәа
|
| 100 |
+
|
| 101 |
+
б`
|
| 102 |
+
|
| 103 |
+
| Vocab | Tokens | Count |
|
| 104 |
+
|-------|--------|-------|
|
| 105 |
+
| 8k | `▁аби ́ а ▁() ▁— ▁ҵиаа . ▁ашәыр . ▁аш ... (+5 more)` | 15 |
|
| 106 |
+
| 16k | `▁аби ́ а ▁() ▁— ▁ҵиаа . ▁ашәыр . ▁ашәырҵ ... (+4 more)` | 14 |
|
| 107 |
+
| 32k | `▁аби ́а ▁() ▁— ▁ҵиаа . ▁ашәыр . ▁ашәырҵла . ... (+2 more)` | 12 |
|
| 108 |
+
| 64k | `▁аби ́а ▁() ▁— ▁ҵиаа . ▁ашәыр . ▁ашәырҵла . ... (+2 more)` | 12 |
|
| 109 |
+
|
| 110 |
+
**Sample 3:** `Ҝ, ҝ — кириллтәи аҩыратә нбан.`
|
| 111 |
+
|
| 112 |
+
| Vocab | Tokens | Count |
|
| 113 |
+
|-------|--------|-------|
|
| 114 |
+
| 8k | `▁ ҝ , ▁ ҝ ▁— ▁кириллтәи ▁аҩыратә ▁нбан .` | 10 |
|
| 115 |
+
| 16k | `▁ ҝ , ▁ ҝ ▁— ▁кириллтәи ▁аҩыратә ▁нбан .` | 10 |
|
| 116 |
+
| 32k | `▁ ҝ , ▁ ҝ ▁— ▁кириллтәи ▁аҩыратә ▁нбан .` | 10 |
|
| 117 |
+
| 64k | `▁ ҝ , ▁ ҝ ▁— ▁кириллтәи ▁аҩыратә ▁нбан .` | 10 |
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
### Key Findings
|
| 121 |
+
|
| 122 |
+
- **Best Compression:** 64k achieves 4.203x compression
|
| 123 |
+
- **Lowest UNK Rate:** 8k with 0.1756% unknown tokens
|
| 124 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 125 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
## 2. N-gram Model Evaluation
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 137 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 138 |
+
| **2-gram** | 2,750 🏆 | 11.43 | 13,494 | 35.3% | 57.9% |
|
| 139 |
+
| **2-gram** | 464 🏆 | 8.86 | 5,850 | 56.1% | 94.4% |
|
| 140 |
+
| **3-gram** | 2,460 | 11.26 | 16,782 | 38.6% | 56.9% |
|
| 141 |
+
| **3-gram** | 3,385 | 11.72 | 40,776 | 25.5% | 64.3% |
|
| 142 |
+
| **4-gram** | 3,267 | 11.67 | 27,732 | 37.4% | 51.5% |
|
| 143 |
+
| **4-gram** | 13,192 | 13.69 | 145,474 | 16.1% | 43.3% |
|
| 144 |
+
|
| 145 |
+
### Top 5 N-grams by Size
|
| 146 |
+
|
| 147 |
+
**2-grams:**
|
| 148 |
+
|
| 149 |
+
| Rank | N-gram | Count |
|
| 150 |
+
|------|--------|-------|
|
| 151 |
+
| 1 | `акатегориа :` | 5,231 |
|
| 152 |
+
| 2 | `рыԥсҭазаара иалҵит` | 3,971 |
|
| 153 |
+
| 3 | `иит рыԥсҭазаара` | 3,938 |
|
| 154 |
+
| 4 | `нанҳәамза цәыббрамза` | 3,601 |
|
| 155 |
+
| 5 | `жәабранмза хәажәкырамза` | 3,601 |
|
| 156 |
+
|
| 157 |
+
**3-grams:**
|
| 158 |
+
|
| 159 |
+
| Rank | N-gram | Count |
|
| 160 |
+
|------|--------|-------|
|
| 161 |
+
| 1 | `иит рыԥсҭазаара иалҵит` | 3,938 |
|
| 162 |
+
| 2 | `ажьырныҳәамза жәабранмза хәажәкырамза` | 3,601 |
|
| 163 |
+
| 3 | `жьҭаарамза абҵарамза ԥхынҷкәынмза` | 3,601 |
|
| 164 |
+
| 4 | `мшаԥымза лаҵарамза рашәарамза` | 3,601 |
|
| 165 |
+
| 5 | `ԥхынгәымза нанҳәамза цәыббрамза` | 3,601 |
|
| 166 |
+
|
| 167 |
+
**4-grams:**
|
| 168 |
+
|
| 169 |
+
| Rank | N-gram | Count |
|
| 170 |
+
|------|--------|-------|
|
| 171 |
+
| 1 | `лаҵарамза рашәарамза ԥхынгәымза нанҳәамза` | 3,601 |
|
| 172 |
+
| 2 | `рашәарамза ԥхынгәымза нанҳәамза цәыббрамза` | 3,601 |
|
| 173 |
+
| 3 | `ахҭысқəа ажьырныҳәамза жәабранмза хәажәкырамза` | 3,601 |
|
| 174 |
+
| 4 | `мшаԥымза лаҵарамза рашәарамза ԥхынгәымза` | 3,601 |
|
| 175 |
+
| 5 | `ԥхынгәымза нанҳәамза цәыббрамза жьҭаарамза` | 3,601 |
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
### Key Findings
|
| 179 |
+
|
| 180 |
+
- **Best Perplexity:** 2-gram with 464
|
| 181 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 182 |
+
- **Coverage:** Top-1000 patterns cover ~43% of corpus
|
| 183 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 184 |
+
|
| 185 |
+
---
|
| 186 |
+
## 3. Markov Chain Evaluation
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
|
| 192 |
+
### Results
|
| 193 |
+
|
| 194 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 195 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 196 |
+
| **1** | 0.5772 | 1.492 | 3.62 | 99,604 | 42.3% |
|
| 197 |
+
| **1** | 1.5567 | 2.942 | 13.88 | 876 | 0.0% |
|
| 198 |
+
| **2** | 0.1878 | 1.139 | 1.43 | 360,470 | 81.2% |
|
| 199 |
+
| **2** | 1.2241 | 2.336 | 6.90 | 12,157 | 0.0% |
|
| 200 |
+
| **3** | 0.0635 | 1.045 | 1.11 | 515,280 | 93.6% |
|
| 201 |
+
| **3** | 0.7258 | 1.654 | 3.34 | 83,923 | 27.4% |
|
| 202 |
+
| **4** | 0.0257 🏆 | 1.018 | 1.04 | 573,219 | 97.4% |
|
| 203 |
+
| **4** | 0.4863 🏆 | 1.401 | 2.16 | 280,678 | 51.4% |
|
| 204 |
+
|
| 205 |
+
### Generated Text Samples
|
| 206 |
+
|
| 207 |
+
Below are text samples generated from each Markov chain model:
|
| 208 |
+
|
| 209 |
+
**Context Size 1:**
|
| 210 |
+
|
| 211 |
+
1. `, аил - маклаи ихьӡ зху аҟәатәи аҳәынҭқарратә педагогтә институт . кёльн - рико ) ,`
|
| 212 |
+
2. `. алитература ахырхарҭала . уи азҵаара азыҳәан қьалышь - 1528 ашықәсқәа рзы агазет « titus andronicu...`
|
| 213 |
+
3. `- зшәышықәса агьама змоу акоуп азеипш гәабзиарахьчара аусхк аҿы ԥаҵаду ҳәа иашьҭан . акатегориа : в`
|
| 214 |
+
|
| 215 |
+
**Context Size 2:**
|
| 216 |
+
|
| 217 |
+
1. `акатегориа : аԥсны аиҭагаҩцәа акатегориа : аҩада — атерриториа атерриториа – . ақалақьқәа ақалақь га...`
|
| 218 |
+
2. `иит рыԥсҭазаара иалҵит : друз иулии цезарь – германики агриппинәи рԥа ( дыԥсит ? ? ) азхьарԥшқәа`
|
| 219 |
+
3. `мшаԥымза лаҵарамза рашәарамза ԥхынгәымза нанҳәамза цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит ...`
|
| 220 |
+
|
| 221 |
+
**Context Size 3:**
|
| 222 |
+
|
| 223 |
+
1. `мшаԥымза лаҵарамза рашәарамза ԥхынгәымза нанҳәамза цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит ...`
|
| 224 |
+
2. `рашәарамза ԥхынгәымза нанҳәамза цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит рыԥсҭазаара иалҵит ...`
|
| 225 |
+
3. `жьҭаарамза абҵарамза ԥхынҷкәынмза иит рыԥсҭазаара иалҵит арминии – германиатә херуски аимшьҭра рхада...`
|
| 226 |
+
|
| 227 |
+
**Context Size 4:**
|
| 228 |
+
|
| 229 |
+
1. `мшаԥымза лаҵарамза рашәарамза ԥхынгәымза нанҳәамза цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит ...`
|
| 230 |
+
2. `нанҳәамза цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит рыԥсҭазаара иалҵит арминии – германиатә х...`
|
| 231 |
+
3. `цәыббрамза жьҭаарамза абҵарамза ԥхынҷкәынмза иит рыԥсҭазаара иалҵит арминии – германиатә херуски аим...`
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
### Key Findings
|
| 235 |
+
|
| 236 |
+
- **Best Predictability:** Context-4 with 97.4% predictability
|
| 237 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 238 |
+
- **Memory Trade-off:** Larger contexts require more storage (280,678 contexts)
|
| 239 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 240 |
+
|
| 241 |
+
---
|
| 242 |
+
## 4. Vocabulary Analysis
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
|
| 250 |
+
### Statistics
|
| 251 |
+
|
| 252 |
+
| Metric | Value |
|
| 253 |
+
|--------|-------|
|
| 254 |
+
| Vocabulary Size | 34,914 |
|
| 255 |
+
| Total Tokens | 483,415 |
|
| 256 |
+
| Mean Frequency | 13.85 |
|
| 257 |
+
| Median Frequency | 3 |
|
| 258 |
+
| Frequency Std Dev | 106.12 |
|
| 259 |
+
|
| 260 |
+
### Most Common Words
|
| 261 |
+
|
| 262 |
+
| Rank | Word | Frequency |
|
| 263 |
+
|------|------|-----------|
|
| 264 |
+
| 1 | акатегориа | 5,263 |
|
| 265 |
+
| 2 | уи | 4,164 |
|
| 266 |
+
| 3 | рыԥсҭазаара | 4,025 |
|
| 267 |
+
| 4 | иит | 3,987 |
|
| 268 |
+
| 5 | иалҵит | 3,980 |
|
| 269 |
+
| 6 | лаҵарамза | 3,888 |
|
| 270 |
+
| 7 | жәабранмза | 3,837 |
|
| 271 |
+
| 8 | хәажәкырамза | 3,833 |
|
| 272 |
+
| 9 | ԥхынҷкәынмза | 3,805 |
|
| 273 |
+
| 10 | абҵарамза | 3,804 |
|
| 274 |
+
|
| 275 |
+
### Least Common Words (from vocabulary)
|
| 276 |
+
|
| 277 |
+
| Rank | Word | Frequency |
|
| 278 |
+
|------|------|-----------|
|
| 279 |
+
| 1 | адрес | 2 |
|
| 280 |
+
| 2 | extended | 2 |
|
| 281 |
+
| 3 | stream | 2 |
|
| 282 |
+
| 4 | block | 2 |
|
| 283 |
+
| 5 | stru | 2 |
|
| 284 |
+
| 6 | compressed | 2 |
|
| 285 |
+
| 7 | draft | 2 |
|
| 286 |
+
| 8 | preston | 2 |
|
| 287 |
+
| 9 | видеохәмарроуп | 2 |
|
| 288 |
+
| 10 | авидеохәмаррақәа | 2 |
|
| 289 |
+
|
| 290 |
+
### Zipf's Law Analysis
|
| 291 |
+
|
| 292 |
+
| Metric | Value |
|
| 293 |
+
|--------|-------|
|
| 294 |
+
| Zipf Coefficient | 0.9724 |
|
| 295 |
+
| R² (Goodness of Fit) | 0.994461 |
|
| 296 |
+
| Adherence Quality | **excellent** |
|
| 297 |
+
|
| 298 |
+
### Coverage Analysis
|
| 299 |
+
|
| 300 |
+
| Top N Words | Coverage |
|
| 301 |
+
|-------------|----------|
|
| 302 |
+
| Top 100 | 30.1% |
|
| 303 |
+
| Top 1,000 | 55.4% |
|
| 304 |
+
| Top 5,000 | 76.6% |
|
| 305 |
+
| Top 10,000 | 85.3% |
|
| 306 |
+
|
| 307 |
+
### Key Findings
|
| 308 |
+
|
| 309 |
+
- **Zipf Compliance:** R²=0.9945 indicates excellent adherence to Zipf's law
|
| 310 |
+
- **High Frequency Dominance:** Top 100 words cover 30.1% of corpus
|
| 311 |
+
- **Long Tail:** 24,914 words needed for remaining 14.7% coverage
|
| 312 |
+
|
| 313 |
+
---
|
| 314 |
+
## 5. Word Embeddings Evaluation
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
|
| 324 |
+
### Model Comparison
|
| 325 |
+
|
| 326 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 327 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 328 |
+
| **mono_32d** | 12,418 | 32 | 3.919 | 0.892 | 0.8443 🏆 |
|
| 329 |
+
| **mono_64d** | 12,418 | 64 | 4.225 | 0.826 | 0.5913 |
|
| 330 |
+
| **mono_128d** | 12,418 | 128 | 4.285 | 0.827 | 0.1726 |
|
| 331 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 332 |
+
|
| 333 |
+
### Key Findings
|
| 334 |
+
|
| 335 |
+
- **Best Isotropy:** mono_32d with 0.8443 (more uniform distribution)
|
| 336 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 337 |
+
- **Vocabulary Coverage:** All models cover 12,418 words
|
| 338 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 339 |
+
|
| 340 |
+
---
|
| 341 |
+
## 6. Summary & Recommendations
|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
|
| 345 |
+
### Production Recommendations
|
| 346 |
+
|
| 347 |
+
| Component | Recommended | Rationale |
|
| 348 |
+
|-----------|-------------|-----------|
|
| 349 |
+
| Tokenizer | **32k BPE** | Best compression (4.20x) with low UNK rate |
|
| 350 |
+
| N-gram | **5-gram** | Lowest perplexity (464) |
|
| 351 |
+
| Markov | **Context-4** | Highest predictability (97.4%) |
|
| 352 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 353 |
+
|
| 354 |
+
---
|
| 355 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 356 |
+
|
| 357 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 358 |
+
|
| 359 |
+
### Tokenizer Metrics
|
| 360 |
+
|
| 361 |
+
**Compression Ratio**
|
| 362 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 363 |
+
>
|
| 364 |
+
> *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.
|
| 365 |
+
>
|
| 366 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 367 |
+
|
| 368 |
+
**Average Token Length (Fertility)**
|
| 369 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 370 |
+
>
|
| 371 |
+
> *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.
|
| 372 |
+
>
|
| 373 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 374 |
+
|
| 375 |
+
**Unknown Token Rate (OOV Rate)**
|
| 376 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 377 |
+
>
|
| 378 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 379 |
+
>
|
| 380 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 381 |
+
|
| 382 |
+
### N-gram Model Metrics
|
| 383 |
+
|
| 384 |
+
**Perplexity**
|
| 385 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 386 |
+
>
|
| 387 |
+
> *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.
|
| 388 |
+
>
|
| 389 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 390 |
+
|
| 391 |
+
**Entropy**
|
| 392 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 393 |
+
>
|
| 394 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 395 |
+
>
|
| 396 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 397 |
+
|
| 398 |
+
**Coverage (Top-K)**
|
| 399 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 400 |
+
>
|
| 401 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 402 |
+
>
|
| 403 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 404 |
+
|
| 405 |
+
### Markov Chain Metrics
|
| 406 |
+
|
| 407 |
+
**Average Entropy**
|
| 408 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 409 |
+
>
|
| 410 |
+
> *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).
|
| 411 |
+
>
|
| 412 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 413 |
+
|
| 414 |
+
**Branching Factor**
|
| 415 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 416 |
+
>
|
| 417 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 418 |
+
>
|
| 419 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 420 |
+
|
| 421 |
+
**Predictability**
|
| 422 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 423 |
+
>
|
| 424 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 425 |
+
>
|
| 426 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 427 |
+
|
| 428 |
+
### Vocabulary & Zipf's Law Metrics
|
| 429 |
+
|
| 430 |
+
**Zipf's Coefficient**
|
| 431 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 432 |
+
>
|
| 433 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 434 |
+
>
|
| 435 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 436 |
+
|
| 437 |
+
**R² (Coefficient of Determination)**
|
| 438 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 439 |
+
>
|
| 440 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 441 |
+
>
|
| 442 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 443 |
+
|
| 444 |
+
**Vocabulary Coverage**
|
| 445 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 446 |
+
>
|
| 447 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 448 |
+
>
|
| 449 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 450 |
+
|
| 451 |
+
### Word Embedding Metrics
|
| 452 |
+
|
| 453 |
+
**Isotropy**
|
| 454 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 455 |
+
>
|
| 456 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 457 |
+
>
|
| 458 |
+
> *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.
|
| 459 |
+
|
| 460 |
+
**Average Norm**
|
| 461 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 462 |
+
>
|
| 463 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 464 |
+
>
|
| 465 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 466 |
+
|
| 467 |
+
**Cosine Similarity**
|
| 468 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 469 |
+
>
|
| 470 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 471 |
+
>
|
| 472 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 473 |
+
|
| 474 |
+
**t-SNE Visualization**
|
| 475 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 476 |
+
>
|
| 477 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 478 |
+
>
|
| 479 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 480 |
+
|
| 481 |
+
### General Interpretation Guidelines
|
| 482 |
+
|
| 483 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 484 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 485 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 486 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 487 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
### Visualizations Index
|
| 491 |
+
|
| 492 |
+
| Visualization | Description |
|
| 493 |
+
|---------------|-------------|
|
| 494 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 495 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 496 |
+
| Tokenizer OOV | Unknown token rates |
|
| 497 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 498 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 499 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 500 |
+
| N-gram Coverage | Top pattern coverage |
|
| 501 |
+
| N-gram Unique | Unique n-gram counts |
|
| 502 |
+
| Markov Entropy | Entropy by context size |
|
| 503 |
+
| Markov Branching | Branching factor by context |
|
| 504 |
+
| Markov Contexts | Unique context counts |
|
| 505 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 506 |
+
| Vocab Frequency | Word frequency distribution |
|
| 507 |
+
| Top 20 Words | Most frequent words |
|
| 508 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 509 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 510 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 511 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 512 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 513 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 514 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 515 |
+
| Position Encoding | Encoding method comparison |
|
| 516 |
+
| Model Sizes | Storage requirements |
|
| 517 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 518 |
+
|
| 519 |
+
---
|
| 520 |
+
## About This Project
|
| 521 |
+
|
| 522 |
+
### Data Source
|
| 523 |
+
|
| 524 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 525 |
+
|
| 526 |
+
### Project
|
| 527 |
+
|
| 528 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 529 |
+
|
| 530 |
+
### Maintainer
|
| 531 |
+
|
| 532 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 533 |
+
|
| 534 |
+
### Citation
|
| 535 |
+
|
| 536 |
+
If you use these models in your research, please cite:
|
| 537 |
+
|
| 538 |
+
```bibtex
|
| 539 |
+
@misc{wikilangs2025,
|
| 540 |
+
author = {Kamali, Omar},
|
| 541 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 542 |
+
year = {2025},
|
| 543 |
+
publisher = {HuggingFace},
|
| 544 |
+
url = {https://huggingface.co/wikilangs}
|
| 545 |
+
institution = {Omneity Labs}
|
| 546 |
+
}
|
| 547 |
+
```
|
| 548 |
+
|
| 549 |
+
### License
|
| 550 |
+
|
| 551 |
+
MIT License - Free for academic and commercial use.
|
| 552 |
+
|
| 553 |
+
### Links
|
| 554 |
+
|
| 555 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 556 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 557 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 558 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 559 |
+
---
|
| 560 |
+
*Generated by Wikilangs Models Pipeline*
|
| 561 |
+
|
| 562 |
+
*Report Date: 2025-12-27 04:31:24*
|
models/embeddings/monolingual/ab_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70a5bb9264c0f53018d482c2616f76c0bf9699ff0b3215c919337610e18f88a9
|
| 3 |
+
size 1037017106
|
models/embeddings/monolingual/ab_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ab", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ab_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ab",
|
| 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": 12418
|
| 13 |
+
}
|
models/embeddings/monolingual/ab_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4040b5f28ef7e1b3cf96524fad4c6f4249e5107c0f78bdd6a3133c867ead2aa
|
| 3 |
+
size 259480082
|
models/embeddings/monolingual/ab_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ab", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ab_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ab",
|
| 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": 12418
|
| 13 |
+
}
|
models/embeddings/monolingual/ab_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59bba3121b8000d938989dc2a115057a7fd481c440ecd2c4af0c5f7711a53e1d
|
| 3 |
+
size 518659090
|
models/embeddings/monolingual/ab_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ab", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ab_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ab",
|
| 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": 12418
|
| 13 |
+
}
|
models/subword_markov/ab_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5b0a600b840e3db1ee3806d9be588a8213f99ef3cce2c1cd544318a9585f986
|
| 3 |
+
size 93410
|
models/subword_markov/ab_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 876,
|
| 6 |
+
"total_transitions": 4575952
|
| 7 |
+
}
|
models/subword_markov/ab_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ea56c5cf197c6e7366129c2324fad6e8e710aca5379b47abfec22e6edd82fa6
|
| 3 |
+
size 586863
|
models/subword_markov/ab_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 12157,
|
| 6 |
+
"total_transitions": 4569421
|
| 7 |
+
}
|
models/subword_markov/ab_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d3626fdfb84a1b24e4b45c30124c54337aabdb6a8585a36031b40d4b2aea4c4
|
| 3 |
+
size 2014070
|
models/subword_markov/ab_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 83923,
|
| 6 |
+
"total_transitions": 4562890
|
| 7 |
+
}
|
models/subword_markov/ab_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:142c381e03e008f540daba013f253cbcc8bcf7cfe2a7bac360d368f678c4c000
|
| 3 |
+
size 5510132
|
models/subword_markov/ab_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 280678,
|
| 6 |
+
"total_transitions": 4556359
|
| 7 |
+
}
|
models/subword_ngram/ab_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25a3ad73144d6ab005e2dfb7deb33bbc6f3db63a36d07ff42172d7b2be73b608
|
| 3 |
+
size 72236
|
models/subword_ngram/ab_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 5850,
|
| 6 |
+
"total_ngrams": 4575952
|
| 7 |
+
}
|
models/subword_ngram/ab_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7da8578639b16b8512cca6705fe65f303df54fe9d9e019e89159e0e2b7f2ff5
|
| 3 |
+
size 516357
|
models/subword_ngram/ab_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 40776,
|
| 6 |
+
"total_ngrams": 4569421
|
| 7 |
+
}
|
models/subword_ngram/ab_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e898894c24a5ef426ee5c2cd23250aabe7e24d18ae03c6bbee902c09cf9ec33
|
| 3 |
+
size 1774272
|
models/subword_ngram/ab_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 145474,
|
| 6 |
+
"total_ngrams": 4562890
|
| 7 |
+
}
|
models/tokenizer/ab_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b92a09ffb9d9e16d3cfcd9d14625e37f4a5f64b96aa51c52d35d12a333ad633b
|
| 3 |
+
size 582079
|
models/tokenizer/ab_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ab_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5030df6b09c2e503b39eb01d7fa0fccf197e83ae7fdb9fd7b16866de09bababe
|
| 3 |
+
size 937553
|
models/tokenizer/ab_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ab_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:049440a566c70344456ff4c82202e7e102f4915ace284706ad7cc4c5fc73dba9
|
| 3 |
+
size 1697167
|
models/tokenizer/ab_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ab_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47045e15113d3f3907abf69824acfc10797a5b6e9942db1f6c5d4990df2dd043
|
| 3 |
+
size 405395
|
models/tokenizer/ab_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ab_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b85dbc4e6a7540ba1ff9dfa0ac21d279d0fce68b4180e8d6df6b29deb668b84
|
| 3 |
+
size 683448
|
models/vocabulary/ab_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ab",
|
| 3 |
+
"vocabulary_size": 34914,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.18177207522936784,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.2651855284354094,
|
| 8 |
+
"top_1000": 0.48867710079779325,
|
| 9 |
+
"top_5000": 0.6758529345765748,
|
| 10 |
+
"top_10000": 0.7518667778310897
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 64722,
|
| 13 |
+
"hapax_ratio": 0.649584487534626,
|
| 14 |
+
"total_documents": 6531
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/ab_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1bf752e561b655e36306643fcd5f9ee780835f3c8ab87825116a8028fcef88a
|
| 3 |
+
size 4988023
|
models/word_markov/ab_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 99604,
|
| 6 |
+
"total_transitions": 715219
|
| 7 |
+
}
|
models/word_markov/ab_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f00af198c4f86326bb4f959b22443089a350d189a2ac8d5415a26f3dcfb7f220
|
| 3 |
+
size 10940272
|
models/word_markov/ab_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 360470,
|
| 6 |
+
"total_transitions": 708688
|
| 7 |
+
}
|
models/word_markov/ab_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7bac1826a063cba6bbd8f61df21c4be2dba68dac0abfc311b80cd598e258a68e
|
| 3 |
+
size 14657425
|
models/word_markov/ab_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 515280,
|
| 6 |
+
"total_transitions": 702160
|
| 7 |
+
}
|
models/word_markov/ab_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17958e76510075d2200f79a9911c3d1e9a3f4d0a87cd2a4cc0331afca431b300
|
| 3 |
+
size 17354156
|
models/word_markov/ab_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_contexts": 573219,
|
| 6 |
+
"total_transitions": 695636
|
| 7 |
+
}
|
models/word_ngram/ab_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acdfd16e121b263288a429d93a717f252969d4848648d80287275db5e16edc95
|
| 3 |
+
size 282764
|
models/word_ngram/ab_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 13494,
|
| 6 |
+
"total_ngrams": 715219
|
| 7 |
+
}
|
models/word_ngram/ab_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dab1f98b0cb7bd2d28f99f706169e76bd8a06a19b00b43438a7ba2c241b8d463
|
| 3 |
+
size 389587
|
models/word_ngram/ab_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 16782,
|
| 6 |
+
"total_ngrams": 708688
|
| 7 |
+
}
|
models/word_ngram/ab_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:592dd7484ba41a21c3e7a4f4fc8fc748b19346f94898e746c0776742ba664e4d
|
| 3 |
+
size 699987
|
models/word_ngram/ab_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ab",
|
| 5 |
+
"unique_ngrams": 27732,
|
| 6 |
+
"total_ngrams": 702160
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|