Upload all models and assets for bar (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/bar_128d.bin +3 -0
- models/embeddings/monolingual/bar_128d.meta.json +1 -0
- models/embeddings/monolingual/bar_128d_metadata.json +13 -0
- models/embeddings/monolingual/bar_32d.bin +3 -0
- models/embeddings/monolingual/bar_32d.meta.json +1 -0
- models/embeddings/monolingual/bar_32d_metadata.json +13 -0
- models/embeddings/monolingual/bar_64d.bin +3 -0
- models/embeddings/monolingual/bar_64d.meta.json +1 -0
- models/embeddings/monolingual/bar_64d_metadata.json +13 -0
- models/subword_markov/bar_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/bar_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/bar_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/bar_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/bar_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/bar_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/bar_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/bar_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/bar_2gram_subword.parquet +3 -0
- models/subword_ngram/bar_2gram_subword_metadata.json +7 -0
- models/subword_ngram/bar_3gram_subword.parquet +3 -0
- models/subword_ngram/bar_3gram_subword_metadata.json +7 -0
- models/subword_ngram/bar_4gram_subword.parquet +3 -0
- models/subword_ngram/bar_4gram_subword_metadata.json +7 -0
- models/tokenizer/bar_tokenizer_16k.model +3 -0
- models/tokenizer/bar_tokenizer_16k.vocab +0 -0
- models/tokenizer/bar_tokenizer_32k.model +3 -0
- models/tokenizer/bar_tokenizer_32k.vocab +0 -0
- models/tokenizer/bar_tokenizer_64k.model +3 -0
- models/tokenizer/bar_tokenizer_64k.vocab +0 -0
- models/tokenizer/bar_tokenizer_8k.model +3 -0
- models/tokenizer/bar_tokenizer_8k.vocab +0 -0
- models/vocabulary/bar_vocabulary.parquet +3 -0
- models/vocabulary/bar_vocabulary_metadata.json +16 -0
- models/word_markov/bar_markov_ctx1_word.parquet +3 -0
- models/word_markov/bar_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/bar_markov_ctx2_word.parquet +3 -0
- models/word_markov/bar_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/bar_markov_ctx3_word.parquet +3 -0
- models/word_markov/bar_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/bar_markov_ctx4_word.parquet +3 -0
- models/word_markov/bar_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/bar_2gram_word.parquet +3 -0
- models/word_ngram/bar_2gram_word_metadata.json +7 -0
- models/word_ngram/bar_3gram_word.parquet +3 -0
- models/word_ngram/bar_3gram_word_metadata.json +7 -0
- models/word_ngram/bar_4gram_word.parquet +3 -0
- models/word_ngram/bar_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: bar
|
| 3 |
+
language_name: BAR
|
| 4 |
+
language_family: germanic_west_continental
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-germanic_west_continental
|
| 15 |
+
license: mit
|
| 16 |
+
library_name: wikilangs
|
| 17 |
+
pipeline_tag: feature-extraction
|
| 18 |
+
datasets:
|
| 19 |
+
- omarkamali/wikipedia-monthly
|
| 20 |
+
dataset_info:
|
| 21 |
+
name: wikipedia-monthly
|
| 22 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 23 |
+
metrics:
|
| 24 |
+
- name: best_compression_ratio
|
| 25 |
+
type: compression
|
| 26 |
+
value: 3.790
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8361
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 225914
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BAR - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BAR** 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.051x | 3.01 | 0.0348% | 1,184,756 |
|
| 76 |
+
| **16k** | 3.320x | 3.27 | 0.0378% | 1,088,767 |
|
| 77 |
+
| **32k** | 3.568x | 3.52 | 0.0407% | 1,013,044 |
|
| 78 |
+
| **64k** | 3.790x 🏆 | 3.74 | 0.0432% | 953,541 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Platte County is a County in Nebraska in da USA.
|
| 85 |
+
|
| 86 |
+
Beleg
|
| 87 |
+
|
| 88 |
+
Im Netz
|
| 89 |
+
|
| 90 |
+
Kategorie:...`
|
| 91 |
+
|
| 92 |
+
| Vocab | Tokens | Count |
|
| 93 |
+
|-------|--------|-------|
|
| 94 |
+
| 8k | `▁plat te ▁county ▁is ▁a ▁county ▁in ▁nebraska ▁in ▁da ... (+10 more)` | 20 |
|
| 95 |
+
| 16k | `▁plat te ▁county ▁is ▁a ▁county ▁in ▁nebraska ▁in ▁da ... (+10 more)` | 20 |
|
| 96 |
+
| 32k | `▁platte ▁county ▁is ▁a ▁county ▁in ▁nebraska ▁in ▁da ▁usa ... (+9 more)` | 19 |
|
| 97 |
+
| 64k | `▁platte ▁county ▁is ▁a ▁county ▁in ▁nebraska ▁in ▁da ▁usa ... (+9 more)` | 19 |
|
| 98 |
+
|
| 99 |
+
**Sample 2:** `Union County. Obgruafa am 22. Feba 2011 is a County in South Carolina in da USA....`
|
| 100 |
+
|
| 101 |
+
| Vocab | Tokens | Count |
|
| 102 |
+
|-------|--------|-------|
|
| 103 |
+
| 8k | `▁union ▁county . ▁obgruafa ▁am ▁ 2 2 . ▁feba ... (+24 more)` | 34 |
|
| 104 |
+
| 16k | `▁union ▁county . ▁obgruafa ▁am ▁ 2 2 . ▁feba ... (+24 more)` | 34 |
|
| 105 |
+
| 32k | `▁union ▁county . ▁obgruafa ▁am ▁ 2 2 . ▁feba ... (+24 more)` | 34 |
|
| 106 |
+
| 64k | `▁union ▁county . ▁obgruafa ▁am ▁ 2 2 . ▁feba ... (+24 more)` | 34 |
|
| 107 |
+
|
| 108 |
+
**Sample 3:** `Des is a Iwablick iwas Joar 1561.
|
| 109 |
+
|
| 110 |
+
Im Netz`
|
| 111 |
+
|
| 112 |
+
| Vocab | Tokens | Count |
|
| 113 |
+
|-------|--------|-------|
|
| 114 |
+
| 8k | `▁des ▁is ▁a ▁iwablick ▁iwas ▁joar ▁ 1 5 6 ... (+4 more)` | 14 |
|
| 115 |
+
| 16k | `▁des ▁is ▁a ▁iwablick ▁iwas ▁joar ▁ 1 5 6 ... (+4 more)` | 14 |
|
| 116 |
+
| 32k | `▁des ▁is ▁a ▁iwablick ▁iwas ▁joar ▁ 1 5 6 ... (+4 more)` | 14 |
|
| 117 |
+
| 64k | `▁des ▁is ▁a ▁iwablick ▁iwas ▁joar ▁ 1 5 6 ... (+4 more)` | 14 |
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
### Key Findings
|
| 121 |
+
|
| 122 |
+
- **Best Compression:** 64k achieves 3.790x compression
|
| 123 |
+
- **Lowest UNK Rate:** 8k with 0.0348% 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** | 26,677 🏆 | 14.70 | 159,756 | 14.4% | 35.4% |
|
| 139 |
+
| **2-gram** | 438 🏆 | 8.77 | 9,188 | 56.6% | 97.2% |
|
| 140 |
+
| **3-gram** | 61,390 | 15.91 | 246,468 | 9.0% | 25.7% |
|
| 141 |
+
| **3-gram** | 4,733 | 12.21 | 83,186 | 18.8% | 56.7% |
|
| 142 |
+
| **4-gram** | 99,269 | 16.60 | 386,315 | 9.1% | 23.6% |
|
| 143 |
+
| **4-gram** | 33,953 | 15.05 | 473,217 | 8.7% | 26.5% |
|
| 144 |
+
|
| 145 |
+
### Top 5 N-grams by Size
|
| 146 |
+
|
| 147 |
+
**2-grams:**
|
| 148 |
+
|
| 149 |
+
| Rank | N-gram | Count |
|
| 150 |
+
|------|--------|-------|
|
| 151 |
+
| 1 | `kategorie :` | 38,959 |
|
| 152 |
+
| 2 | `vo da` | 26,615 |
|
| 153 |
+
| 3 | `is a` | 23,040 |
|
| 154 |
+
| 4 | `in da` | 22,485 |
|
| 155 |
+
| 5 | `. de` | 21,082 |
|
| 156 |
+
|
| 157 |
+
**3-grams:**
|
| 158 |
+
|
| 159 |
+
| Rank | N-gram | Count |
|
| 160 |
+
|------|--------|-------|
|
| 161 |
+
| 1 | `beleg kategorie :` | 6,999 |
|
| 162 |
+
| 2 | `isbn 3 -` | 5,924 |
|
| 163 |
+
| 3 | `. im netz` | 5,460 |
|
| 164 |
+
| 4 | `kategorie : ort` | 5,121 |
|
| 165 |
+
| 5 | `| | |` | 4,937 |
|
| 166 |
+
|
| 167 |
+
**4-grams:**
|
| 168 |
+
|
| 169 |
+
| Rank | N-gram | Count |
|
| 170 |
+
|------|--------|-------|
|
| 171 |
+
| 1 | `, isbn 3 -` | 4,499 |
|
| 172 |
+
| 2 | `| align = "` | 3,879 |
|
| 173 |
+
| 3 | `align = " center` | 3,590 |
|
| 174 |
+
| 4 | `= " center "` | 3,590 |
|
| 175 |
+
| 5 | `kategorie : ort im` | 3,505 |
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
### Key Findings
|
| 179 |
+
|
| 180 |
+
- **Best Perplexity:** 2-gram with 438
|
| 181 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 182 |
+
- **Coverage:** Top-1000 patterns cover ~27% 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.6074 | 1.523 | 4.85 | 638,594 | 39.3% |
|
| 197 |
+
| **1** | 1.0706 | 2.100 | 7.75 | 3,379 | 0.0% |
|
| 198 |
+
| **2** | 0.2487 | 1.188 | 1.74 | 3,093,978 | 75.1% |
|
| 199 |
+
| **2** | 0.9487 | 1.930 | 6.44 | 26,199 | 5.1% |
|
| 200 |
+
| **3** | 0.0996 | 1.071 | 1.21 | 5,375,695 | 90.0% |
|
| 201 |
+
| **3** | 0.9366 | 1.914 | 4.86 | 168,731 | 6.3% |
|
| 202 |
+
| **4** | 0.0401 🏆 | 1.028 | 1.07 | 6,470,090 | 96.0% |
|
| 203 |
+
| **4** | 0.7672 🏆 | 1.702 | 3.38 | 820,482 | 23.3% |
|
| 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. `. 524 angewachsen und die fläche vo dera zoagt , par les ' n ) u`
|
| 212 |
+
2. `, isbn 978 - mal 1920 bis auf des is kemnath ( " franz kafka .`
|
| 213 |
+
3. `- deitscha schauspuia und a zaumgroida schdrudl is ois broad bekaunnt hans ( 2016 saha air`
|
| 214 |
+
|
| 215 |
+
**Context Size 2:**
|
| 216 |
+
|
| 217 |
+
1. `kategorie : artikel auf niederösterreichisch kategorie : ortsteil von wieseth kategorie : geboren 18...`
|
| 218 |
+
2. `vo da mathematik , schau gorkhaland`
|
| 219 |
+
3. `is a bruck ' nschlåg ; da linné aun an rio xingu . as gericht håtn zu`
|
| 220 |
+
|
| 221 |
+
**Context Size 3:**
|
| 222 |
+
|
| 223 |
+
1. `beleg kategorie : johann nestroy ; stücke 21 . s . highway 84 mindt . uma 32 kilometa`
|
| 224 |
+
2. `isbn 3 - 417 - 20675 - 8 ( teubner - studienbücher der geographie ) . im joa`
|
| 225 |
+
3. `kategorie : ort auf den färöern kategorie : streymoy`
|
| 226 |
+
|
| 227 |
+
**Context Size 4:**
|
| 228 |
+
|
| 229 |
+
1. `, isbn 3 - 406 - 46224 - 3 birgit zotz : destination tibet . touristisches image zwischen politik`
|
| 230 |
+
2. `| align = " center " | | - | berleu | | | | | | | |`
|
| 231 |
+
3. `= " center " | | | align = " center " | | | fatututa | | align`
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
### Key Findings
|
| 235 |
+
|
| 236 |
+
- **Best Predictability:** Context-4 with 96.0% predictability
|
| 237 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 238 |
+
- **Memory Trade-off:** Larger contexts require more storage (820,482 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 | 225,914 |
|
| 255 |
+
| Total Tokens | 5,874,699 |
|
| 256 |
+
| Mean Frequency | 26.00 |
|
| 257 |
+
| Median Frequency | 3 |
|
| 258 |
+
| Frequency Std Dev | 709.74 |
|
| 259 |
+
|
| 260 |
+
### Most Common Words
|
| 261 |
+
|
| 262 |
+
| Rank | Word | Frequency |
|
| 263 |
+
|------|------|-----------|
|
| 264 |
+
| 1 | de | 139,734 |
|
| 265 |
+
| 2 | da | 136,994 |
|
| 266 |
+
| 3 | und | 120,375 |
|
| 267 |
+
| 4 | in | 102,834 |
|
| 268 |
+
| 5 | a | 93,585 |
|
| 269 |
+
| 6 | vo | 92,275 |
|
| 270 |
+
| 7 | is | 88,045 |
|
| 271 |
+
| 8 | im | 71,546 |
|
| 272 |
+
| 9 | kategorie | 39,103 |
|
| 273 |
+
| 10 | des | 34,614 |
|
| 274 |
+
|
| 275 |
+
### Least Common Words (from vocabulary)
|
| 276 |
+
|
| 277 |
+
| Rank | Word | Frequency |
|
| 278 |
+
|------|------|-----------|
|
| 279 |
+
| 1 | mechanisches | 2 |
|
| 280 |
+
| 2 | stabilisierungssystem | 2 |
|
| 281 |
+
| 3 | voeffentlecht | 2 |
|
| 282 |
+
| 4 | innpuls | 2 |
|
| 283 |
+
| 5 | buagstej | 2 |
|
| 284 |
+
| 6 | nuwenburg | 2 |
|
| 285 |
+
| 7 | kulturweges | 2 |
|
| 286 |
+
| 8 | spessartprojektes | 2 |
|
| 287 |
+
| 9 | terrassnfermig | 2 |
|
| 288 |
+
| 10 | tuamhigi | 2 |
|
| 289 |
+
|
| 290 |
+
### Zipf's Law Analysis
|
| 291 |
+
|
| 292 |
+
| Metric | Value |
|
| 293 |
+
|--------|-------|
|
| 294 |
+
| Zipf Coefficient | 0.9896 |
|
| 295 |
+
| R² (Goodness of Fit) | 0.999155 |
|
| 296 |
+
| Adherence Quality | **excellent** |
|
| 297 |
+
|
| 298 |
+
### Coverage Analysis
|
| 299 |
+
|
| 300 |
+
| Top N Words | Coverage |
|
| 301 |
+
|-------------|----------|
|
| 302 |
+
| Top 100 | 32.7% |
|
| 303 |
+
| Top 1,000 | 54.6% |
|
| 304 |
+
| Top 5,000 | 70.2% |
|
| 305 |
+
| Top 10,000 | 76.9% |
|
| 306 |
+
|
| 307 |
+
### Key Findings
|
| 308 |
+
|
| 309 |
+
- **Zipf Compliance:** R²=0.9992 indicates excellent adherence to Zipf's law
|
| 310 |
+
- **High Frequency Dominance:** Top 100 words cover 32.7% of corpus
|
| 311 |
+
- **Long Tail:** 215,914 words needed for remaining 23.1% 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** | 92,573 | 32 | 3.954 | 1.316 | 0.8131 |
|
| 329 |
+
| **mono_64d** | 92,573 | 64 | 4.642 | 1.256 | 0.8361 🏆 |
|
| 330 |
+
| **mono_128d** | 92,573 | 128 | 5.543 | 1.143 | 0.8310 |
|
| 331 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 332 |
+
|
| 333 |
+
### Key Findings
|
| 334 |
+
|
| 335 |
+
- **Best Isotropy:** mono_64d with 0.8361 (more uniform distribution)
|
| 336 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 337 |
+
- **Vocabulary Coverage:** All models cover 92,573 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 (3.79x) with low UNK rate |
|
| 350 |
+
| N-gram | **5-gram** | Lowest perplexity (438) |
|
| 351 |
+
| Markov | **Context-4** | Highest predictability (96.0%) |
|
| 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-28 00:09:41*
|
models/embeddings/monolingual/bar_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b67e002458c6ffe3851456e1d214d989436508fafb3940aa0a7aeac7f9501600
|
| 3 |
+
size 1120431691
|
models/embeddings/monolingual/bar_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bar", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bar_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bar",
|
| 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": 92573
|
| 13 |
+
}
|
models/embeddings/monolingual/bar_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d60a4fc93329fd2886ca8100a062412d4d07afea28e09e264dc800ac247d496b
|
| 3 |
+
size 281335627
|
models/embeddings/monolingual/bar_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bar", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bar_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bar",
|
| 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": 92573
|
| 13 |
+
}
|
models/embeddings/monolingual/bar_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8669bc90711c772638673e6ddeca2a5ceb915402131cac9b7c3628c941baa702
|
| 3 |
+
size 561034315
|
models/embeddings/monolingual/bar_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bar", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bar_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bar",
|
| 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": 92573
|
| 13 |
+
}
|
models/subword_markov/bar_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60e1fcddc267b2ddb4763a4f04458f5fc0a3864d4d3b65b068a66791c6d11ca9
|
| 3 |
+
size 199512
|
models/subword_markov/bar_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 3379,
|
| 6 |
+
"total_transitions": 41526016
|
| 7 |
+
}
|
models/subword_markov/bar_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44ac0dfee6ebc508b0694bd88f8515a3ecd00e7b531cab5055a6e18d776b7900
|
| 3 |
+
size 1274970
|
models/subword_markov/bar_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 26199,
|
| 6 |
+
"total_transitions": 41498726
|
| 7 |
+
}
|
models/subword_markov/bar_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dab3f88d8a597024d6c2d45205f49335376cff21c6acc22705b1aeb5a3d6d9b7
|
| 3 |
+
size 5898144
|
models/subword_markov/bar_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 168731,
|
| 6 |
+
"total_transitions": 41471436
|
| 7 |
+
}
|
models/subword_markov/bar_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7d35e1ed6aa219268b066af5ab218034a029fe871fbf27a8621d574e9ea9bf2
|
| 3 |
+
size 20162408
|
models/subword_markov/bar_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 820482,
|
| 6 |
+
"total_transitions": 41444146
|
| 7 |
+
}
|
models/subword_ngram/bar_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98fc1ea2db56ddb0c1e4d55f5df47bce76f4c454fad62a3186181d6e59bf7819
|
| 3 |
+
size 120210
|
models/subword_ngram/bar_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 9188,
|
| 6 |
+
"total_ngrams": 41526016
|
| 7 |
+
}
|
models/subword_ngram/bar_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb5ad1ec42d5688187fa2244bcea28e012a96c3954cbff00e1919cc637e39cfa
|
| 3 |
+
size 980179
|
models/subword_ngram/bar_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 83186,
|
| 6 |
+
"total_ngrams": 41498726
|
| 7 |
+
}
|
models/subword_ngram/bar_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74cb0c9a29de3bf166be1817974bf03a79e844a9172dca886d1e6c11444fe105
|
| 3 |
+
size 5250784
|
models/subword_ngram/bar_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 473217,
|
| 6 |
+
"total_ngrams": 41471436
|
| 7 |
+
}
|
models/tokenizer/bar_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86990145267f2f23bece3cf170063df25b610b0172bb06154c137114776c8277
|
| 3 |
+
size 497891
|
models/tokenizer/bar_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bar_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75f629bdc6954475d208780fe096b578aa8ab68a13993884c783d727d30b36c9
|
| 3 |
+
size 769242
|
models/tokenizer/bar_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bar_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3817f1c29c6409fc0d09a5641df6d546b4d73373e90aff314bd676d06f34afe9
|
| 3 |
+
size 1329778
|
models/tokenizer/bar_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bar_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc3653e3a2ae044e86fc99a6e9f56a602c7345188f2a36c7e517e330131174fa
|
| 3 |
+
size 367058
|
models/tokenizer/bar_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/bar_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c50b70ce0ccf85aa73d5c98c50c1637e81c02c9079bae2cfca6036b4a7fd444
|
| 3 |
+
size 3610908
|
models/vocabulary/bar_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bar",
|
| 3 |
+
"vocabulary_size": 225914,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.1016273267091797,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.3056598360284214,
|
| 8 |
+
"top_1000": 0.5100686297601529,
|
| 9 |
+
"top_5000": 0.6556657283942213,
|
| 10 |
+
"top_10000": 0.7183725874101852
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 413098,
|
| 13 |
+
"hapax_ratio": 0.6464636031874206,
|
| 14 |
+
"total_documents": 27290
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/bar_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3dd31c7a802cfbef574568e2ba6b615e18144bf29db409393fb10850929bd7d
|
| 3 |
+
size 30129994
|
models/word_markov/bar_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 638594,
|
| 6 |
+
"total_transitions": 8127466
|
| 7 |
+
}
|
models/word_markov/bar_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3db5d683eb8fa5679d0baab234482104310aed5348832ff37632b96f81bac464
|
| 3 |
+
size 67578257
|
models/word_markov/bar_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 3093978,
|
| 6 |
+
"total_transitions": 8100177
|
| 7 |
+
}
|
models/word_markov/bar_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9253b3e64a7a3aa9bd84e29a7bf91e310187acd7b81345ac3362887b3c6a9f7b
|
| 3 |
+
size 96618918
|
models/word_markov/bar_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 5375695,
|
| 6 |
+
"total_transitions": 8072889
|
| 7 |
+
}
|
models/word_markov/bar_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab88f182fc703c53bba76e38edc370a4c8ed1ad8a0ec15d58155beab90c2d334
|
| 3 |
+
size 113834013
|
models/word_markov/bar_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_contexts": 6470090,
|
| 6 |
+
"total_transitions": 8045602
|
| 7 |
+
}
|
models/word_ngram/bar_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:305be2b4a731fc13d78d8a31b51d838be655ee3899d4a3479c5d81c5bc114a10
|
| 3 |
+
size 2084252
|
models/word_ngram/bar_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 159756,
|
| 6 |
+
"total_ngrams": 8127466
|
| 7 |
+
}
|
models/word_ngram/bar_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:817288d320b289c5f49b63cb4084a8d5c1cfaf5535e133621f6117c6ac86bce6
|
| 3 |
+
size 3391005
|
models/word_ngram/bar_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 246468,
|
| 6 |
+
"total_ngrams": 8100177
|
| 7 |
+
}
|
models/word_ngram/bar_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70d5bc187fee7c4a76f7ca6f6f46bdc686870760f287cface360e35199b8986c
|
| 3 |
+
size 5697675
|
models/word_ngram/bar_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bar",
|
| 5 |
+
"unique_ngrams": 386315,
|
| 6 |
+
"total_ngrams": 8072889
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|