Upload all models and assets for ary (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +5 -0
- COMPREHENSIVE_RESEARCH_REPORT.md +463 -0
- README.md +527 -0
- models/embeddings/monolingual/ary_128d.bin +3 -0
- models/embeddings/monolingual/ary_128d.meta.json +1 -0
- models/embeddings/monolingual/ary_128d_metadata.json +13 -0
- models/embeddings/monolingual/ary_32d.bin +3 -0
- models/embeddings/monolingual/ary_32d.meta.json +1 -0
- models/embeddings/monolingual/ary_32d_metadata.json +13 -0
- models/embeddings/monolingual/ary_64d.bin +3 -0
- models/embeddings/monolingual/ary_64d.meta.json +1 -0
- models/embeddings/monolingual/ary_64d_metadata.json +13 -0
- models/subword_markov/ary_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ary_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ary_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ary_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ary_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ary_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ary_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ary_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ary_2gram_subword.parquet +3 -0
- models/subword_ngram/ary_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ary_3gram_subword.parquet +3 -0
- models/subword_ngram/ary_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ary_4gram_subword.parquet +3 -0
- models/subword_ngram/ary_4gram_subword_metadata.json +7 -0
- models/tokenizer/ary_tokenizer_16k.model +3 -0
- models/tokenizer/ary_tokenizer_16k.vocab +0 -0
- models/tokenizer/ary_tokenizer_32k.model +3 -0
- models/tokenizer/ary_tokenizer_32k.vocab +0 -0
- models/tokenizer/ary_tokenizer_64k.model +3 -0
- models/tokenizer/ary_tokenizer_64k.vocab +0 -0
- models/tokenizer/ary_tokenizer_8k.model +3 -0
- models/tokenizer/ary_tokenizer_8k.vocab +0 -0
- models/vocabulary/ary_vocabulary.parquet +3 -0
- models/vocabulary/ary_vocabulary_metadata.json +16 -0
- models/word_markov/ary_markov_ctx1_word.parquet +3 -0
- models/word_markov/ary_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ary_markov_ctx2_word.parquet +3 -0
- models/word_markov/ary_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ary_markov_ctx3_word.parquet +3 -0
- models/word_markov/ary_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ary_markov_ctx4_word.parquet +3 -0
- models/word_markov/ary_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/ary_2gram_word.parquet +3 -0
- models/word_ngram/ary_2gram_word_metadata.json +7 -0
- models/word_ngram/ary_3gram_word.parquet +3 -0
- models/word_ngram/ary_3gram_word_metadata.json +7 -0
- models/word_ngram/ary_4gram_word.parquet +3 -0
- models/word_ngram/ary_4gram_word_metadata.json +7 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ 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/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
|
COMPREHENSIVE_RESEARCH_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Wikilangs Models: Comprehensive Research Report
|
| 2 |
+
## ARY - Full Ablation Study
|
| 3 |
+
|
| 4 |
+
This report presents a comprehensive evaluation of language models trained on ARY Wikipedia data.
|
| 5 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
## 1. Tokenizer Evaluation
|
| 9 |
+
|
| 10 |
+

|
| 11 |
+
|
| 12 |
+
### Results
|
| 13 |
+
|
| 14 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 15 |
+
|------------|-------------|---------------|----------|--------------|
|
| 16 |
+
| **8k** | 3.134x | 3.09 | 0.0472% | 379,309 |
|
| 17 |
+
| **16k** | 3.346x | 3.30 | 0.0504% | 355,311 |
|
| 18 |
+
| **32k** | 3.535x | 3.49 | 0.0532% | 336,296 |
|
| 19 |
+
| **64k** | 3.683x 🏆 | 3.64 | 0.0555% | 322,761 |
|
| 20 |
+
|
| 21 |
+
### Tokenization Examples
|
| 22 |
+
|
| 23 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 24 |
+
|
| 25 |
+
**Sample 1:** `نينڭ بايزورا بنت الشيخ حمزة أولا نينڭ بايزورا هي مومتيلة وموغنية ماليزية.
|
| 26 |
+
|
| 27 |
+
مصاد...`
|
| 28 |
+
|
| 29 |
+
| Vocab | Tokens | Count |
|
| 30 |
+
|-------|--------|-------|
|
| 31 |
+
| 8k | `▁ن ينڭ ▁باي ز ورا ▁بنت ▁الشيخ ▁حم زة ▁أولا ... (+32 more)` | 42 |
|
| 32 |
+
| 16k | `▁ن ينڭ ▁باي ز ورا ▁بنت ▁الشيخ ▁حمزة ▁أولا ▁ن ... (+29 more)` | 39 |
|
| 33 |
+
| 32k | `▁ن ينڭ ▁باي ز ورا ▁بنت ▁الشيخ ▁حمزة ▁أولا ▁ن ... (+29 more)` | 39 |
|
| 34 |
+
| 64k | `▁ن ينڭ ▁باي ز ورا ▁بنت ▁الشيخ ▁حمزة ▁أولا ▁ن ... (+27 more)` | 37 |
|
| 35 |
+
|
| 36 |
+
**Sample 2:** `هادي صفحة د التوضيح، كلمة بركان يمكن يكونو عندها هاد لمعاني:
|
| 37 |
+
|
| 38 |
+
بْرْكان: مدينة مغ...`
|
| 39 |
+
|
| 40 |
+
| Vocab | Tokens | Count |
|
| 41 |
+
|-------|--------|-------|
|
| 42 |
+
| 8k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁كلمة ▁بركان ▁يمكن ▁يكونو ▁عندها ... (+26 more)` | 36 |
|
| 43 |
+
| 16k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁كلمة ▁بركان ▁يمكن ▁يكونو ▁عندها ... (+25 more)` | 35 |
|
| 44 |
+
| 32k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁كلمة ▁بركان ▁يمكن ▁يكونو ▁عندها ... (+24 more)` | 34 |
|
| 45 |
+
| 64k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁كلمة ▁بركان ▁يمكن ▁يكونو ▁عندها ... (+22 more)` | 32 |
|
| 46 |
+
|
| 47 |
+
**Sample 3:** `أسيل عمران (مزيودة ف 1989) هي مغنية و ممتلة سعودية كتعيش ف لإمارات.
|
| 48 |
+
|
| 49 |
+
مصادر
|
| 50 |
+
|
| 51 |
+
تص...`
|
| 52 |
+
|
| 53 |
+
| Vocab | Tokens | Count |
|
| 54 |
+
|-------|--------|-------|
|
| 55 |
+
| 8k | `▁أس يل ▁عمر ان ▁( مزيودة ▁ف ▁ 1 9 ... (+36 more)` | 46 |
|
| 56 |
+
| 16k | `▁أس يل ▁عمر ان ▁( مزيودة ▁ف ▁ 1 9 ... (+32 more)` | 42 |
|
| 57 |
+
| 32k | `▁أس يل ▁عمران ▁( مزيودة ▁ف ▁ 1 9 8 ... (+28 more)` | 38 |
|
| 58 |
+
| 64k | `▁أس يل ▁عمران ▁( مزيودة ▁ف ▁ 1 9 8 ... (+28 more)` | 38 |
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
### Key Findings
|
| 62 |
+
|
| 63 |
+
- **Best Compression:** 64k achieves 3.683x compression
|
| 64 |
+
- **Lowest UNK Rate:** 8k with 0.0472% unknown tokens
|
| 65 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 66 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
## 2. N-gram Model Evaluation
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
|
| 73 |
+

|
| 74 |
+
|
| 75 |
+
### Results
|
| 76 |
+
|
| 77 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 78 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 79 |
+
| **2-gram** | 7,187 🏆 | 12.81 | 56,749 | 24.4% | 53.2% |
|
| 80 |
+
| **2-gram** | 486 🏆 | 8.93 | 6,227 | 54.9% | 95.4% |
|
| 81 |
+
| **3-gram** | 8,812 | 13.11 | 76,888 | 21.3% | 52.8% |
|
| 82 |
+
| **3-gram** | 4,295 | 12.07 | 51,256 | 22.1% | 58.7% |
|
| 83 |
+
| **4-gram** | 12,168 | 13.57 | 124,859 | 20.1% | 50.4% |
|
| 84 |
+
| **4-gram** | 22,008 | 14.43 | 260,844 | 12.0% | 35.5% |
|
| 85 |
+
|
| 86 |
+
### Top 5 N-grams by Size
|
| 87 |
+
|
| 88 |
+
**2-grams:**
|
| 89 |
+
|
| 90 |
+
| Rank | N-gram | Count |
|
| 91 |
+
|------|--------|-------|
|
| 92 |
+
| 1 | `تصنيف :` | 37,187 |
|
| 93 |
+
| 2 | `، و` | 18,746 |
|
| 94 |
+
| 3 | `ن ّ` | 10,639 |
|
| 95 |
+
| 4 | `) :` | 10,185 |
|
| 96 |
+
| 5 | `مصادر تصنيف` | 10,087 |
|
| 97 |
+
|
| 98 |
+
**3-grams:**
|
| 99 |
+
|
| 100 |
+
| Rank | N-gram | Count |
|
| 101 |
+
|------|--------|-------|
|
| 102 |
+
| 1 | `مصادر تصنيف :` | 10,087 |
|
| 103 |
+
| 2 | `تصنيف : مقالات` | 7,001 |
|
| 104 |
+
| 3 | `ن ّ اس` | 6,981 |
|
| 105 |
+
| 4 | `ل ّ ي` | 6,914 |
|
| 106 |
+
| 5 | `: دوار ف` | 5,007 |
|
| 107 |
+
|
| 108 |
+
**4-grams:**
|
| 109 |
+
|
| 110 |
+
| Rank | N-gram | Count |
|
| 111 |
+
|------|--------|-------|
|
| 112 |
+
| 1 | `تصنيف : دوار ف` | 5,005 |
|
| 113 |
+
| 2 | `نسبة ن ّ اس` | 4,061 |
|
| 114 |
+
| 3 | `. مصادر تصنيف :` | 3,827 |
|
| 115 |
+
| 4 | `تصنيف : مقالات زادهوم` | 3,506 |
|
| 116 |
+
| 5 | `: مقالات زادهوم داريجابوت` | 3,506 |
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
### Key Findings
|
| 120 |
+
|
| 121 |
+
- **Best Perplexity:** 2-gram with 486
|
| 122 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 123 |
+
- **Coverage:** Top-1000 patterns cover ~35% of corpus
|
| 124 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 125 |
+
|
| 126 |
+
---
|
| 127 |
+
## 3. Markov Chain Evaluation
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
|
| 133 |
+
### Results
|
| 134 |
+
|
| 135 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 136 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 137 |
+
| **1** | 0.7813 | 1.719 | 5.36 | 189,320 | 21.9% |
|
| 138 |
+
| **1** | 1.1519 | 2.222 | 8.71 | 1,931 | 0.0% |
|
| 139 |
+
| **2** | 0.2761 | 1.211 | 1.68 | 1,014,676 | 72.4% |
|
| 140 |
+
| **2** | 0.9863 | 1.981 | 6.24 | 16,826 | 1.4% |
|
| 141 |
+
| **3** | 0.0931 | 1.067 | 1.18 | 1,701,309 | 90.7% |
|
| 142 |
+
| **3** | 0.8744 | 1.833 | 4.33 | 104,928 | 12.6% |
|
| 143 |
+
| **4** | 0.0366 🏆 | 1.026 | 1.07 | 2,000,181 | 96.3% |
|
| 144 |
+
| **4** | 0.6731 🏆 | 1.594 | 2.82 | 454,694 | 32.7% |
|
| 145 |
+
|
| 146 |
+
### Generated Text Samples
|
| 147 |
+
|
| 148 |
+
Below are text samples generated from each Markov chain model:
|
| 149 |
+
|
| 150 |
+
**Context Size 1:**
|
| 151 |
+
|
| 152 |
+
1. `. قرات لانفورماتيك ، وحسبوهم النسابون المسلمين ) غايب مجموعntnən ( قائم الزاوية هو ، الطابلو`
|
| 153 |
+
2. `، كان ل 6 % ، ولكن ماكخون ( ولا لبيطاليين اللي سبق ليهوم خدمو )`
|
| 154 |
+
3. `ف كتاب " ف جماعة قروية ف دوك لي جاو فالغرب د لكورة تا نتيجة لاندماج`
|
| 155 |
+
|
| 156 |
+
**Context Size 2:**
|
| 157 |
+
|
| 158 |
+
1. `تصنيف : عوام د تقويم لميلادي تصنيف : نهارات د لعام تصنيف : كتاتبيا مغاربا د لقرن`
|
| 159 |
+
2. `، و صدرات منو أغنية rip , love . الديسك خرج رسميا ً paypal holdings inc .`
|
| 160 |
+
3. `ن ّ اس ن ّ شيطين ( ل ّ ي قاريين فوق الليسي ( ليسي و جامعة`
|
| 161 |
+
|
| 162 |
+
**Context Size 3:**
|
| 163 |
+
|
| 164 |
+
1. `مصادر تصنيف : يناير تصنيف : نهارات د لعام تصنيف : مقالات فيها مصدر و 3000 بايت تصنيف`
|
| 165 |
+
2. `تصنيف : مقالات زادهوم داريجابوت تصنيف : بلايص مسكونين ف إقليم برشيد ، جهة د ّ ار لبيضا`
|
| 166 |
+
3. `ن ّ اس اللي خدامين ف د ّ ولة : 4 , 4 % إقتصاد نسبة ن ّ`
|
| 167 |
+
|
| 168 |
+
**Context Size 4:**
|
| 169 |
+
|
| 170 |
+
1. `تصنيف : دوار ف لمغريب تصنيف : دوار ف لمغريب تصنيف : دوار ف لمغريب تصنيف : دوار ف`
|
| 171 |
+
2. `نسبة ن ّ اس ن ّ شيطين ( ل ّ ي يقدرو يخدمو ) : 50 , 2 %`
|
| 172 |
+
3. `. مصادر تصنيف : عوام د تقويم لميلادي تصنيف : مقالات زادهوم داريجابوت تصنيف : عوام 380 قبل لميلاد`
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
### Key Findings
|
| 176 |
+
|
| 177 |
+
- **Best Predictability:** Context-4 with 96.3% predictability
|
| 178 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 179 |
+
- **Memory Trade-off:** Larger contexts require more storage (454,694 contexts)
|
| 180 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 181 |
+
|
| 182 |
+
---
|
| 183 |
+
## 4. Vocabulary Analysis
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
|
| 191 |
+
### Statistics
|
| 192 |
+
|
| 193 |
+
| Metric | Value |
|
| 194 |
+
|--------|-------|
|
| 195 |
+
| Vocabulary Size | 81,712 |
|
| 196 |
+
| Total Tokens | 2,308,873 |
|
| 197 |
+
| Mean Frequency | 28.26 |
|
| 198 |
+
| Median Frequency | 4 |
|
| 199 |
+
| Frequency Std Dev | 559.90 |
|
| 200 |
+
|
| 201 |
+
### Most Common Words
|
| 202 |
+
|
| 203 |
+
| Rank | Word | Frequency |
|
| 204 |
+
|------|------|-----------|
|
| 205 |
+
| 1 | ف | 84,463 |
|
| 206 |
+
| 2 | د | 69,201 |
|
| 207 |
+
| 3 | و | 61,463 |
|
| 208 |
+
| 4 | تصنيف | 37,231 |
|
| 209 |
+
| 5 | ل | 34,076 |
|
| 210 |
+
| 6 | ديال | 32,761 |
|
| 211 |
+
| 7 | من | 29,612 |
|
| 212 |
+
| 8 | على | 19,717 |
|
| 213 |
+
| 9 | لي | 18,627 |
|
| 214 |
+
| 10 | ب | 18,189 |
|
| 215 |
+
|
| 216 |
+
### Least Common Words (from vocabulary)
|
| 217 |
+
|
| 218 |
+
| Rank | Word | Frequency |
|
| 219 |
+
|------|------|-----------|
|
| 220 |
+
| 1 | بيتسي | 2 |
|
| 221 |
+
| 2 | وصانعي | 2 |
|
| 222 |
+
| 3 | وأهميتها | 2 |
|
| 223 |
+
| 4 | بورديو | 2 |
|
| 224 |
+
| 5 | بلومر | 2 |
|
| 225 |
+
| 6 | مقترحة | 2 |
|
| 226 |
+
| 7 | anchor | 2 |
|
| 227 |
+
| 8 | الرسميةاللي | 2 |
|
| 228 |
+
| 9 | بعصبة | 2 |
|
| 229 |
+
| 10 | ماڭي | 2 |
|
| 230 |
+
|
| 231 |
+
### Zipf's Law Analysis
|
| 232 |
+
|
| 233 |
+
| Metric | Value |
|
| 234 |
+
|--------|-------|
|
| 235 |
+
| Zipf Coefficient | 1.0380 |
|
| 236 |
+
| R² (Goodness of Fit) | 0.999162 |
|
| 237 |
+
| Adherence Quality | **excellent** |
|
| 238 |
+
|
| 239 |
+
### Coverage Analysis
|
| 240 |
+
|
| 241 |
+
| Top N Words | Coverage |
|
| 242 |
+
|-------------|----------|
|
| 243 |
+
| Top 100 | 39.3% |
|
| 244 |
+
| Top 1,000 | 63.8% |
|
| 245 |
+
| Top 5,000 | 78.6% |
|
| 246 |
+
| Top 10,000 | 84.8% |
|
| 247 |
+
|
| 248 |
+
### Key Findings
|
| 249 |
+
|
| 250 |
+
- **Zipf Compliance:** R²=0.9992 indicates excellent adherence to Zipf's law
|
| 251 |
+
- **High Frequency Dominance:** Top 100 words cover 39.3% of corpus
|
| 252 |
+
- **Long Tail:** 71,712 words needed for remaining 15.2% coverage
|
| 253 |
+
|
| 254 |
+
---
|
| 255 |
+
## 5. Word Embeddings Evaluation
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
|
| 261 |
+

|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
|
| 265 |
+
### Model Comparison
|
| 266 |
+
|
| 267 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 268 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 269 |
+
| **mono_32d** | 37,528 | 32 | 4.010 | 1.183 | 0.8264 🏆 |
|
| 270 |
+
| **mono_64d** | 37,528 | 64 | 4.579 | 1.040 | 0.8183 |
|
| 271 |
+
| **mono_128d** | 37,528 | 128 | 5.112 | 0.875 | 0.7212 |
|
| 272 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 273 |
+
|
| 274 |
+
### Key Findings
|
| 275 |
+
|
| 276 |
+
- **Best Isotropy:** mono_32d with 0.8264 (more uniform distribution)
|
| 277 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 278 |
+
- **Vocabulary Coverage:** All models cover 37,528 words
|
| 279 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 280 |
+
|
| 281 |
+
---
|
| 282 |
+
## 6. Summary & Recommendations
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+
### Production Recommendations
|
| 287 |
+
|
| 288 |
+
| Component | Recommended | Rationale |
|
| 289 |
+
|-----------|-------------|-----------|
|
| 290 |
+
| Tokenizer | **32k BPE** | Best compression (3.68x) with low UNK rate |
|
| 291 |
+
| N-gram | **5-gram** | Lowest perplexity (486) |
|
| 292 |
+
| Markov | **Context-4** | Highest predictability (96.3%) |
|
| 293 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 294 |
+
|
| 295 |
+
---
|
| 296 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 297 |
+
|
| 298 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 299 |
+
|
| 300 |
+
### Tokenizer Metrics
|
| 301 |
+
|
| 302 |
+
**Compression Ratio**
|
| 303 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 304 |
+
>
|
| 305 |
+
> *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.
|
| 306 |
+
>
|
| 307 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 308 |
+
|
| 309 |
+
**Average Token Length (Fertility)**
|
| 310 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 311 |
+
>
|
| 312 |
+
> *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.
|
| 313 |
+
>
|
| 314 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 315 |
+
|
| 316 |
+
**Unknown Token Rate (OOV Rate)**
|
| 317 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 318 |
+
>
|
| 319 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 320 |
+
>
|
| 321 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 322 |
+
|
| 323 |
+
### N-gram Model Metrics
|
| 324 |
+
|
| 325 |
+
**Perplexity**
|
| 326 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 327 |
+
>
|
| 328 |
+
> *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.
|
| 329 |
+
>
|
| 330 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 331 |
+
|
| 332 |
+
**Entropy**
|
| 333 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 334 |
+
>
|
| 335 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 336 |
+
>
|
| 337 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 338 |
+
|
| 339 |
+
**Coverage (Top-K)**
|
| 340 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 341 |
+
>
|
| 342 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 343 |
+
>
|
| 344 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 345 |
+
|
| 346 |
+
### Markov Chain Metrics
|
| 347 |
+
|
| 348 |
+
**Average Entropy**
|
| 349 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 350 |
+
>
|
| 351 |
+
> *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).
|
| 352 |
+
>
|
| 353 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 354 |
+
|
| 355 |
+
**Branching Factor**
|
| 356 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 357 |
+
>
|
| 358 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 359 |
+
>
|
| 360 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 361 |
+
|
| 362 |
+
**Predictability**
|
| 363 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 364 |
+
>
|
| 365 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 366 |
+
>
|
| 367 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 368 |
+
|
| 369 |
+
### Vocabulary & Zipf's Law Metrics
|
| 370 |
+
|
| 371 |
+
**Zipf's Coefficient**
|
| 372 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 373 |
+
>
|
| 374 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 375 |
+
>
|
| 376 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 377 |
+
|
| 378 |
+
**R² (Coefficient of Determination)**
|
| 379 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 380 |
+
>
|
| 381 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 382 |
+
>
|
| 383 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 384 |
+
|
| 385 |
+
**Vocabulary Coverage**
|
| 386 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 387 |
+
>
|
| 388 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 389 |
+
>
|
| 390 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 391 |
+
|
| 392 |
+
### Word Embedding Metrics
|
| 393 |
+
|
| 394 |
+
**Isotropy**
|
| 395 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 396 |
+
>
|
| 397 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 398 |
+
>
|
| 399 |
+
> *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.
|
| 400 |
+
|
| 401 |
+
**Average Norm**
|
| 402 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 403 |
+
>
|
| 404 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 405 |
+
>
|
| 406 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 407 |
+
|
| 408 |
+
**Cosine Similarity**
|
| 409 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 410 |
+
>
|
| 411 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 412 |
+
>
|
| 413 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 414 |
+
|
| 415 |
+
**t-SNE Visualization**
|
| 416 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 417 |
+
>
|
| 418 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 419 |
+
>
|
| 420 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 421 |
+
|
| 422 |
+
### General Interpretation Guidelines
|
| 423 |
+
|
| 424 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 425 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 426 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 427 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 428 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
### Visualizations Index
|
| 432 |
+
|
| 433 |
+
| # | Visualization | Description |
|
| 434 |
+
|---|---------------|-------------|
|
| 435 |
+
| 01 | Tokenizer Compression | Compression ratios by vocabulary size |
|
| 436 |
+
| 02 | Tokenizer Fertility | Average token length by vocabulary |
|
| 437 |
+
| 03 | Tokenizer OOV | Unknown token rates |
|
| 438 |
+
| 04 | Tokenizer Tokens | Total tokens by vocabulary |
|
| 439 |
+
| 05 | N-gram Perplexity | Perplexity by n-gram size |
|
| 440 |
+
| 06 | N-gram Entropy | Entropy by n-gram size |
|
| 441 |
+
| 07 | N-gram Coverage | Top pattern coverage |
|
| 442 |
+
| 08 | N-gram Unique | Unique n-gram counts |
|
| 443 |
+
| 09 | Markov Entropy | Entropy by context size |
|
| 444 |
+
| 10 | Markov Branching | Branching factor by context |
|
| 445 |
+
| 11 | Markov Contexts | Unique context counts |
|
| 446 |
+
| 12 | Zipf's Law | Frequency-rank distribution with fit |
|
| 447 |
+
| 13 | Vocab Frequency | Word frequency distribution |
|
| 448 |
+
| 14 | Top 20 Words | Most frequent words |
|
| 449 |
+
| 15 | Vocab Coverage | Cumulative coverage curve |
|
| 450 |
+
| 16 | Embedding Isotropy | Vector space uniformity |
|
| 451 |
+
| 17 | Embedding Norms | Vector magnitude distribution |
|
| 452 |
+
| 18 | Similarity Matrix | Word similarity heatmap |
|
| 453 |
+
| 19 | Nearest Neighbors | Similar words for key terms |
|
| 454 |
+
| 20 | t-SNE Words | 2D word embedding visualization |
|
| 455 |
+
| 21 | t-SNE Sentences | 2D sentence embedding visualization |
|
| 456 |
+
| 22 | Position Encoding | Encoding method comparison |
|
| 457 |
+
| 23 | Model Sizes | Storage requirements |
|
| 458 |
+
| 24 | Dashboard | Comprehensive performance overview |
|
| 459 |
+
|
| 460 |
+
---
|
| 461 |
+
*Generated by Wikilangs Models Pipeline*
|
| 462 |
+
|
| 463 |
+
*Report Date: 2025-12-27 03:37:35*
|
README.md
ADDED
|
@@ -0,0 +1,527 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-arabic
|
| 15 |
+
license: mit
|
| 16 |
+
library_name: wikilangs
|
| 17 |
+
pipeline_tag: feature-extraction
|
| 18 |
+
datasets:
|
| 19 |
+
- omarkamali/wikipedia-monthly
|
| 20 |
+
metrics:
|
| 21 |
+
- name: best_compression_ratio
|
| 22 |
+
type: compression
|
| 23 |
+
value: 3.683
|
| 24 |
+
- name: best_isotropy
|
| 25 |
+
type: isotropy
|
| 26 |
+
value: 0.8264
|
| 27 |
+
- name: vocabulary_size
|
| 28 |
+
type: vocab
|
| 29 |
+
value: 81712
|
| 30 |
+
generated: 2025-12-27
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# Moroccan Arabic - Wikilangs Models
|
| 34 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 35 |
+
|
| 36 |
+
This report presents a comprehensive evaluation of language models trained on **Moroccan Arabic** Wikipedia data.
|
| 37 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
## 1. Tokenizer Evaluation
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
|
| 44 |
+
### Results
|
| 45 |
+
|
| 46 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 47 |
+
|------------|-------------|---------------|----------|--------------|
|
| 48 |
+
| **8k** | 3.134x | 3.09 | 0.0472% | 379,309 |
|
| 49 |
+
| **16k** | 3.346x | 3.30 | 0.0504% | 355,311 |
|
| 50 |
+
| **32k** | 3.535x | 3.49 | 0.0532% | 336,296 |
|
| 51 |
+
| **64k** | 3.683x 🏆 | 3.64 | 0.0555% | 322,761 |
|
| 52 |
+
|
| 53 |
+
### Tokenization Examples
|
| 54 |
+
|
| 55 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 56 |
+
|
| 57 |
+
**Sample 1:** `لّبسة لْجوية د لْغطيس (ب نݣليزية Atmospheric diving suit) هوّا لبسة ل شخص واحد ك...`
|
| 58 |
+
|
| 59 |
+
| Vocab | Tokens | Count |
|
| 60 |
+
|-------|--------|-------|
|
| 61 |
+
| 8k | `▁لّ ب سة ▁لْ ج وية ▁د ▁لْ غط يس ... (+44 more)` | 54 |
|
| 62 |
+
| 16k | `▁لّ ب سة ▁لْ ج وية ▁د ▁لْ غط يس ... (+38 more)` | 48 |
|
| 63 |
+
| 32k | `▁لّ ب سة ▁لْ ج وية ▁د ▁لْ غط يس ... (+35 more)` | 45 |
|
| 64 |
+
| 64k | `▁لّبسة ▁لْج وية ▁د ▁لْ غط يس ▁( ب ▁نݣليزية ... (+30 more)` | 40 |
|
| 65 |
+
|
| 66 |
+
**Sample 2:** `هادي صفحة د التوضيح، ناصر عربية سمية د دكر. هادو شخصيات سميتهوم ناصر:
|
| 67 |
+
ناصر لارݣ...`
|
| 68 |
+
|
| 69 |
+
| Vocab | Tokens | Count |
|
| 70 |
+
|-------|--------|-------|
|
| 71 |
+
| 8k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁ن اصر ▁عربية ▁سمية ▁د ... (+33 more)` | 43 |
|
| 72 |
+
| 16k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁ناصر ▁عربية ▁سمية ▁د ▁دكر ... (+24 more)` | 34 |
|
| 73 |
+
| 32k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁ناصر ▁عربية ▁سمية ▁د ▁دكر ... (+19 more)` | 29 |
|
| 74 |
+
| 64k | `▁هادي ▁صفحة ▁د ▁التوضيح ، ▁ناصر ▁عربية ▁سمية ▁د ▁دكر ... (+19 more)` | 29 |
|
| 75 |
+
|
| 76 |
+
**Sample 3:** `اتحاد سلا هي فرقة مغريبية من مدينة سلا. تأسسات فـ1937، وكتلعب فتيران حي الرحمة ا...`
|
| 77 |
+
|
| 78 |
+
| Vocab | Tokens | Count |
|
| 79 |
+
|-------|--------|-------|
|
| 80 |
+
| 8k | `▁اتحاد ▁سلا ▁هي ▁فرقة ▁مغريبية ▁من ▁مدينة ▁سلا . ▁تأسسات ... (+30 more)` | 40 |
|
| 81 |
+
| 16k | `▁اتحاد ▁سلا ▁هي ▁فرقة ▁مغريبية ▁من ▁مدينة ▁سلا . ▁تأسسات ... (+28 more)` | 38 |
|
| 82 |
+
| 32k | `▁اتحاد ▁سلا ▁هي ▁فرقة ▁مغريبية ▁من ▁مدينة ▁سلا . ▁تأسسات ... (+28 more)` | 38 |
|
| 83 |
+
| 64k | `▁اتحاد ▁سلا ▁هي ▁فرقة ▁مغريبية ▁من ▁مدينة ▁سلا . ▁تأسسات ... (+27 more)` | 37 |
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
### Key Findings
|
| 87 |
+
|
| 88 |
+
- **Best Compression:** 64k achieves 3.683x compression
|
| 89 |
+
- **Lowest UNK Rate:** 8k with 0.0472% unknown tokens
|
| 90 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 91 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
## 2. N-gram Model Evaluation
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
|
| 100 |
+
### Results
|
| 101 |
+
|
| 102 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 103 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 104 |
+
| **2-gram** | 7,187 🏆 | 12.81 | 56,749 | 24.4% | 53.2% |
|
| 105 |
+
| **2-gram** | 486 🏆 | 8.93 | 6,227 | 54.9% | 95.4% |
|
| 106 |
+
| **3-gram** | 8,812 | 13.11 | 76,888 | 21.3% | 52.8% |
|
| 107 |
+
| **3-gram** | 4,295 | 12.07 | 51,256 | 22.1% | 58.7% |
|
| 108 |
+
| **4-gram** | 12,168 | 13.57 | 124,859 | 20.1% | 50.4% |
|
| 109 |
+
| **4-gram** | 22,008 | 14.43 | 260,844 | 12.0% | 35.5% |
|
| 110 |
+
|
| 111 |
+
### Top 5 N-grams by Size
|
| 112 |
+
|
| 113 |
+
**2-grams:**
|
| 114 |
+
|
| 115 |
+
| Rank | N-gram | Count |
|
| 116 |
+
|------|--------|-------|
|
| 117 |
+
| 1 | `تصنيف :` | 37,187 |
|
| 118 |
+
| 2 | `، و` | 18,746 |
|
| 119 |
+
| 3 | `ن ّ` | 10,639 |
|
| 120 |
+
| 4 | `) :` | 10,185 |
|
| 121 |
+
| 5 | `مصادر تصنيف` | 10,087 |
|
| 122 |
+
|
| 123 |
+
**3-grams:**
|
| 124 |
+
|
| 125 |
+
| Rank | N-gram | Count |
|
| 126 |
+
|------|--------|-------|
|
| 127 |
+
| 1 | `مصادر تصنيف :` | 10,087 |
|
| 128 |
+
| 2 | `تصنيف : مقالات` | 7,001 |
|
| 129 |
+
| 3 | `ن ّ اس` | 6,981 |
|
| 130 |
+
| 4 | `ل ّ ي` | 6,914 |
|
| 131 |
+
| 5 | `: د��ار ف` | 5,007 |
|
| 132 |
+
|
| 133 |
+
**4-grams:**
|
| 134 |
+
|
| 135 |
+
| Rank | N-gram | Count |
|
| 136 |
+
|------|--------|-------|
|
| 137 |
+
| 1 | `تصنيف : دوار ف` | 5,005 |
|
| 138 |
+
| 2 | `نسبة ن ّ اس` | 4,061 |
|
| 139 |
+
| 3 | `. مصادر تصنيف :` | 3,827 |
|
| 140 |
+
| 4 | `تصنيف : مقالات زادهوم` | 3,506 |
|
| 141 |
+
| 5 | `: مقالات زادهوم داريجابوت` | 3,506 |
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
### Key Findings
|
| 145 |
+
|
| 146 |
+
- **Best Perplexity:** 2-gram with 486
|
| 147 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 148 |
+
- **Coverage:** Top-1000 patterns cover ~35% of corpus
|
| 149 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 150 |
+
|
| 151 |
+
---
|
| 152 |
+
## 3. Markov Chain Evaluation
|
| 153 |
+
|
| 154 |
+

|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
|
| 158 |
+
### Results
|
| 159 |
+
|
| 160 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 161 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 162 |
+
| **1** | 0.7813 | 1.719 | 5.36 | 189,320 | 21.9% |
|
| 163 |
+
| **1** | 1.1519 | 2.222 | 8.71 | 1,931 | 0.0% |
|
| 164 |
+
| **2** | 0.2761 | 1.211 | 1.68 | 1,014,676 | 72.4% |
|
| 165 |
+
| **2** | 0.9863 | 1.981 | 6.24 | 16,826 | 1.4% |
|
| 166 |
+
| **3** | 0.0931 | 1.067 | 1.18 | 1,701,309 | 90.7% |
|
| 167 |
+
| **3** | 0.8744 | 1.833 | 4.33 | 104,928 | 12.6% |
|
| 168 |
+
| **4** | 0.0366 🏆 | 1.026 | 1.07 | 2,000,181 | 96.3% |
|
| 169 |
+
| **4** | 0.6731 🏆 | 1.594 | 2.82 | 454,694 | 32.7% |
|
| 170 |
+
|
| 171 |
+
### Generated Text Samples
|
| 172 |
+
|
| 173 |
+
Below are text samples generated from each Markov chain model:
|
| 174 |
+
|
| 175 |
+
**Context Size 1:**
|
| 176 |
+
|
| 177 |
+
1. `. والفيلم لاخر ف جماعة قروية ف الدور د أدالت سويم " . a . بمعنى`
|
| 178 |
+
2. `، و الجاج و 3000 بايت تصنيف : جهة سوس تصنيف : منتج ؤ بني ملال`
|
| 179 |
+
3. `ف خمس سنين ، gallagher , blaine d ݣروپ c . ديليم د لعمر عند الجواج`
|
| 180 |
+
|
| 181 |
+
**Context Size 2:**
|
| 182 |
+
|
| 183 |
+
1. `تصنيف : بلايص مسكونين ف إقليم تاونات تصنيف : زيادة 1564 تصنيف : عوام د تقويم لميلادي`
|
| 184 |
+
2. `، و نسبة د الناس النشيطين ( اللي سموها العرب بـالنكبة . الدعم الجوي : تم ختيارو`
|
| 185 |
+
3. `ن ّ اس ل ّ خر د لعام تصنيف : سياسي مغريبي ، من بعد ، مشا`
|
| 186 |
+
|
| 187 |
+
**Context Size 3:**
|
| 188 |
+
|
| 189 |
+
1. `مصادر تصنيف : فيلسوف روماني قديم تصنيف : كاتب ألماني تصنيف : رياضيين من أصل مغريبي تصنيف :`
|
| 190 |
+
2. `تصنيف : مقالات فيها مصدر و 3000 بايت تصنيف : ناس حيين تصنيف : سياسي لامنتامي تصنيف :`
|
| 191 |
+
3. `ن ّ اس اللي خدامين ف لپريڤي ( أولا البيطاليين اللي سبق ليهوم خدمو ) : 2 ,`
|
| 192 |
+
|
| 193 |
+
**Context Size 4:**
|
| 194 |
+
|
| 195 |
+
1. `تصنيف : دوار ف إقليم تارودانت تصنيف : مقالات زادهوم داريجابوت تصنيف : تاريخ ديال دابا تصنيف : لقرون`
|
| 196 |
+
2. `نسبة ن ّ اس ن ّ شيطين ( ل ّ ي يقدرو يخدمو ) : 48 % نسبة لبطالة`
|
| 197 |
+
3. `. مصادر تصنيف : تقويم تصنيف : لقرون تصنيف : لألفيات تصنيف : مقالات فيها مصدر و 3000 بايت`
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
### Key Findings
|
| 201 |
+
|
| 202 |
+
- **Best Predictability:** Context-4 with 96.3% predictability
|
| 203 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 204 |
+
- **Memory Trade-off:** Larger contexts require more storage (454,694 contexts)
|
| 205 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 206 |
+
|
| 207 |
+
---
|
| 208 |
+
## 4. Vocabulary Analysis
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
|
| 212 |
+

|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
|
| 216 |
+
### Statistics
|
| 217 |
+
|
| 218 |
+
| Metric | Value |
|
| 219 |
+
|--------|-------|
|
| 220 |
+
| Vocabulary Size | 81,712 |
|
| 221 |
+
| Total Tokens | 2,308,873 |
|
| 222 |
+
| Mean Frequency | 28.26 |
|
| 223 |
+
| Median Frequency | 4 |
|
| 224 |
+
| Frequency Std Dev | 559.90 |
|
| 225 |
+
|
| 226 |
+
### Most Common Words
|
| 227 |
+
|
| 228 |
+
| Rank | Word | Frequency |
|
| 229 |
+
|------|------|-----------|
|
| 230 |
+
| 1 | ف | 84,463 |
|
| 231 |
+
| 2 | د | 69,201 |
|
| 232 |
+
| 3 | و | 61,463 |
|
| 233 |
+
| 4 | تصنيف | 37,231 |
|
| 234 |
+
| 5 | ل | 34,076 |
|
| 235 |
+
| 6 | ديال | 32,761 |
|
| 236 |
+
| 7 | من | 29,612 |
|
| 237 |
+
| 8 | على | 19,717 |
|
| 238 |
+
| 9 | لي | 18,627 |
|
| 239 |
+
| 10 | ب | 18,189 |
|
| 240 |
+
|
| 241 |
+
### Least Common Words (from vocabulary)
|
| 242 |
+
|
| 243 |
+
| Rank | Word | Frequency |
|
| 244 |
+
|------|------|-----------|
|
| 245 |
+
| 1 | بيتسي | 2 |
|
| 246 |
+
| 2 | وصانعي | 2 |
|
| 247 |
+
| 3 | وأهميتها | 2 |
|
| 248 |
+
| 4 | بورديو | 2 |
|
| 249 |
+
| 5 | بلومر | 2 |
|
| 250 |
+
| 6 | مقترحة | 2 |
|
| 251 |
+
| 7 | anchor | 2 |
|
| 252 |
+
| 8 | الرسميةاللي | 2 |
|
| 253 |
+
| 9 | بعصبة | 2 |
|
| 254 |
+
| 10 | ماڭي | 2 |
|
| 255 |
+
|
| 256 |
+
### Zipf's Law Analysis
|
| 257 |
+
|
| 258 |
+
| Metric | Value |
|
| 259 |
+
|--------|-------|
|
| 260 |
+
| Zipf Coefficient | 1.0380 |
|
| 261 |
+
| R² (Goodness of Fit) | 0.999162 |
|
| 262 |
+
| Adherence Quality | **excellent** |
|
| 263 |
+
|
| 264 |
+
### Coverage Analysis
|
| 265 |
+
|
| 266 |
+
| Top N Words | Coverage |
|
| 267 |
+
|-------------|----------|
|
| 268 |
+
| Top 100 | 39.3% |
|
| 269 |
+
| Top 1,000 | 63.8% |
|
| 270 |
+
| Top 5,000 | 78.6% |
|
| 271 |
+
| Top 10,000 | 84.8% |
|
| 272 |
+
|
| 273 |
+
### Key Findings
|
| 274 |
+
|
| 275 |
+
- **Zipf Compliance:** R²=0.9992 indicates excellent adherence to Zipf's law
|
| 276 |
+
- **High Frequency Dominance:** Top 100 words cover 39.3% of corpus
|
| 277 |
+
- **Long Tail:** 71,712 words needed for remaining 15.2% coverage
|
| 278 |
+
|
| 279 |
+
---
|
| 280 |
+
## 5. Word Embeddings Evaluation
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+

|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
|
| 290 |
+
### Model Comparison
|
| 291 |
+
|
| 292 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 293 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 294 |
+
| **mono_32d** | 37,528 | 32 | 4.010 | 1.183 | 0.8264 🏆 |
|
| 295 |
+
| **mono_64d** | 37,528 | 64 | 4.579 | 1.040 | 0.8183 |
|
| 296 |
+
| **mono_128d** | 37,528 | 128 | 5.112 | 0.875 | 0.7212 |
|
| 297 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 298 |
+
|
| 299 |
+
### Key Findings
|
| 300 |
+
|
| 301 |
+
- **Best Isotropy:** mono_32d with 0.8264 (more uniform distribution)
|
| 302 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 303 |
+
- **Vocabulary Coverage:** All models cover 37,528 words
|
| 304 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 305 |
+
|
| 306 |
+
---
|
| 307 |
+
## 6. Summary & Recommendations
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
|
| 311 |
+
### Production Recommendations
|
| 312 |
+
|
| 313 |
+
| Component | Recommended | Rationale |
|
| 314 |
+
|-----------|-------------|-----------|
|
| 315 |
+
| Tokenizer | **32k BPE** | Best compression (3.68x) with low UNK rate |
|
| 316 |
+
| N-gram | **5-gram** | Lowest perplexity (486) |
|
| 317 |
+
| Markov | **Context-4** | Highest predictability (96.3%) |
|
| 318 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 319 |
+
|
| 320 |
+
---
|
| 321 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 322 |
+
|
| 323 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 324 |
+
|
| 325 |
+
### Tokenizer Metrics
|
| 326 |
+
|
| 327 |
+
**Compression Ratio**
|
| 328 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 329 |
+
>
|
| 330 |
+
> *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.
|
| 331 |
+
>
|
| 332 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 333 |
+
|
| 334 |
+
**Average Token Length (Fertility)**
|
| 335 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 336 |
+
>
|
| 337 |
+
> *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.
|
| 338 |
+
>
|
| 339 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 340 |
+
|
| 341 |
+
**Unknown Token Rate (OOV Rate)**
|
| 342 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 343 |
+
>
|
| 344 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 345 |
+
>
|
| 346 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 347 |
+
|
| 348 |
+
### N-gram Model Metrics
|
| 349 |
+
|
| 350 |
+
**Perplexity**
|
| 351 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 352 |
+
>
|
| 353 |
+
> *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.
|
| 354 |
+
>
|
| 355 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 356 |
+
|
| 357 |
+
**Entropy**
|
| 358 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 359 |
+
>
|
| 360 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 361 |
+
>
|
| 362 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 363 |
+
|
| 364 |
+
**Coverage (Top-K)**
|
| 365 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 366 |
+
>
|
| 367 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 368 |
+
>
|
| 369 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 370 |
+
|
| 371 |
+
### Markov Chain Metrics
|
| 372 |
+
|
| 373 |
+
**Average Entropy**
|
| 374 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 375 |
+
>
|
| 376 |
+
> *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).
|
| 377 |
+
>
|
| 378 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 379 |
+
|
| 380 |
+
**Branching Factor**
|
| 381 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 382 |
+
>
|
| 383 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 384 |
+
>
|
| 385 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 386 |
+
|
| 387 |
+
**Predictability**
|
| 388 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 389 |
+
>
|
| 390 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 391 |
+
>
|
| 392 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 393 |
+
|
| 394 |
+
### Vocabulary & Zipf's Law Metrics
|
| 395 |
+
|
| 396 |
+
**Zipf's Coefficient**
|
| 397 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 398 |
+
>
|
| 399 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 400 |
+
>
|
| 401 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 402 |
+
|
| 403 |
+
**R² (Coefficient of Determination)**
|
| 404 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 405 |
+
>
|
| 406 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 407 |
+
>
|
| 408 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 409 |
+
|
| 410 |
+
**Vocabulary Coverage**
|
| 411 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 412 |
+
>
|
| 413 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 414 |
+
>
|
| 415 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 416 |
+
|
| 417 |
+
### Word Embedding Metrics
|
| 418 |
+
|
| 419 |
+
**Isotropy**
|
| 420 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 421 |
+
>
|
| 422 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 423 |
+
>
|
| 424 |
+
> *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.
|
| 425 |
+
|
| 426 |
+
**Average Norm**
|
| 427 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 428 |
+
>
|
| 429 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 430 |
+
>
|
| 431 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 432 |
+
|
| 433 |
+
**Cosine Similarity**
|
| 434 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 435 |
+
>
|
| 436 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 437 |
+
>
|
| 438 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 439 |
+
|
| 440 |
+
**t-SNE Visualization**
|
| 441 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 442 |
+
>
|
| 443 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 444 |
+
>
|
| 445 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 446 |
+
|
| 447 |
+
### General Interpretation Guidelines
|
| 448 |
+
|
| 449 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 450 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 451 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 452 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 453 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
### Visualizations Index
|
| 457 |
+
|
| 458 |
+
| # | Visualization | Description |
|
| 459 |
+
|---|---------------|-------------|
|
| 460 |
+
| 01 | Tokenizer Compression | Compression ratios by vocabulary size |
|
| 461 |
+
| 02 | Tokenizer Fertility | Average token length by vocabulary |
|
| 462 |
+
| 03 | Tokenizer OOV | Unknown token rates |
|
| 463 |
+
| 04 | Tokenizer Tokens | Total tokens by vocabulary |
|
| 464 |
+
| 05 | N-gram Perplexity | Perplexity by n-gram size |
|
| 465 |
+
| 06 | N-gram Entropy | Entropy by n-gram size |
|
| 466 |
+
| 07 | N-gram Coverage | Top pattern coverage |
|
| 467 |
+
| 08 | N-gram Unique | Unique n-gram counts |
|
| 468 |
+
| 09 | Markov Entropy | Entropy by context size |
|
| 469 |
+
| 10 | Markov Branching | Branching factor by context |
|
| 470 |
+
| 11 | Markov Contexts | Unique context counts |
|
| 471 |
+
| 12 | Zipf's Law | Frequency-rank distribution with fit |
|
| 472 |
+
| 13 | Vocab Frequency | Word frequency distribution |
|
| 473 |
+
| 14 | Top 20 Words | Most frequent words |
|
| 474 |
+
| 15 | Vocab Coverage | Cumulative coverage curve |
|
| 475 |
+
| 16 | Embedding Isotropy | Vector space uniformity |
|
| 476 |
+
| 17 | Embedding Norms | Vector magnitude distribution |
|
| 477 |
+
| 18 | Similarity Matrix | Word similarity heatmap |
|
| 478 |
+
| 19 | Nearest Neighbors | Similar words for key terms |
|
| 479 |
+
| 20 | t-SNE Words | 2D word embedding visualization |
|
| 480 |
+
| 21 | t-SNE Sentences | 2D sentence embedding visualization |
|
| 481 |
+
| 22 | Position Encoding | Encoding method comparison |
|
| 482 |
+
| 23 | Model Sizes | Storage requirements |
|
| 483 |
+
| 24 | Dashboard | Comprehensive performance overview |
|
| 484 |
+
|
| 485 |
+
---
|
| 486 |
+
## About This Project
|
| 487 |
+
|
| 488 |
+
### Data Source
|
| 489 |
+
|
| 490 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 491 |
+
|
| 492 |
+
### Project
|
| 493 |
+
|
| 494 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 495 |
+
|
| 496 |
+
### Maintainer
|
| 497 |
+
|
| 498 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 499 |
+
|
| 500 |
+
### Citation
|
| 501 |
+
|
| 502 |
+
If you use these models in your research, please cite:
|
| 503 |
+
|
| 504 |
+
```bibtex
|
| 505 |
+
@misc{wikilangs2025,
|
| 506 |
+
author = {Kamali, Omar},
|
| 507 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 508 |
+
year = {2025},
|
| 509 |
+
publisher = {HuggingFace},
|
| 510 |
+
url = {https://huggingface.co/wikilangs}
|
| 511 |
+
institution = {Omneity Labs}
|
| 512 |
+
}
|
| 513 |
+
```
|
| 514 |
+
|
| 515 |
+
### License
|
| 516 |
+
|
| 517 |
+
MIT License - Free for academic and commercial use.
|
| 518 |
+
|
| 519 |
+
### Links
|
| 520 |
+
|
| 521 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 522 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 523 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 524 |
+
---
|
| 525 |
+
*Generated by Wikilangs Models Pipeline*
|
| 526 |
+
|
| 527 |
+
*Report Date: 2025-12-27 04:02:58*
|
models/embeddings/monolingual/ary_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5cc5293cf8429fb5399c588bd22cb8909420d94a23901f2c928f46ae56e690f
|
| 3 |
+
size 1063209927
|
models/embeddings/monolingual/ary_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ary", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ary_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ary",
|
| 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": 37528
|
| 13 |
+
}
|
models/embeddings/monolingual/ary_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2f8b934f3ef0b52a7ad968cdbdcf1f979c0b7a075cbb32fa213a893a5c78d2f
|
| 3 |
+
size 266388423
|
models/embeddings/monolingual/ary_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ary", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ary_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ary",
|
| 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": 37528
|
| 13 |
+
}
|
models/embeddings/monolingual/ary_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83735f6b6acbb5e848400813f89e7a33d7fc8d847ad66d17693f0e0573ec6fd0
|
| 3 |
+
size 531995591
|
models/embeddings/monolingual/ary_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ary", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ary_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ary",
|
| 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": 37528
|
| 13 |
+
}
|
models/subword_markov/ary_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02d6d2bdc8d7dbce6c10868f4220e2d2d66cf1a06f3491e669371f1b65129d05
|
| 3 |
+
size 127609
|
models/subword_markov/ary_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 1931,
|
| 6 |
+
"total_transitions": 13216554
|
| 7 |
+
}
|
models/subword_markov/ary_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:322a9496ec76e3be61fdafb53d8b77843c56708cd0dbe0e62dcd5edd91548627
|
| 3 |
+
size 835900
|
models/subword_markov/ary_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 16826,
|
| 6 |
+
"total_transitions": 13205631
|
| 7 |
+
}
|
models/subword_markov/ary_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d5187cefb9bc3bda8ef32e536676e0c3b42f01c2c61bed6abaeb131d627b820
|
| 3 |
+
size 3229260
|
models/subword_markov/ary_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 104928,
|
| 6 |
+
"total_transitions": 13194708
|
| 7 |
+
}
|
models/subword_markov/ary_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd8baa92bb2fa6351748ab87b35f8ba19922364e0eae3c6cbd772e527604f163
|
| 3 |
+
size 10673093
|
models/subword_markov/ary_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 454694,
|
| 6 |
+
"total_transitions": 13183785
|
| 7 |
+
}
|
models/subword_ngram/ary_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62a74b4e9a08aa132c61be02cbdead1b65df56d23212d4d13b44eee1de72ca5c
|
| 3 |
+
size 85260
|
models/subword_ngram/ary_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 6227,
|
| 6 |
+
"total_ngrams": 13216554
|
| 7 |
+
}
|
models/subword_ngram/ary_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33a4ba5238a6f6fb79055b4420c426248fbd61bc3060e6af9de75c84a51cb747
|
| 3 |
+
size 664928
|
models/subword_ngram/ary_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 51256,
|
| 6 |
+
"total_ngrams": 13205631
|
| 7 |
+
}
|
models/subword_ngram/ary_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a9c53578c3475bc96d000d9db9a4d19e545b73cbbe4948d2149968e06900585
|
| 3 |
+
size 3262126
|
models/subword_ngram/ary_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 260844,
|
| 6 |
+
"total_ngrams": 13194708
|
| 7 |
+
}
|
models/tokenizer/ary_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66f08427ec3757387ee07eb1bbb3518ed56da42a7b4a144381b3c9d0e2a75fd2
|
| 3 |
+
size 550569
|
models/tokenizer/ary_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ary_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dfbe42ab44ef4ba9c324b96993e42805c7a7def9a21e8af3f8467142eef0b615
|
| 3 |
+
size 880065
|
models/tokenizer/ary_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ary_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46f721a26f1f518a4334f4a8844591eb94957318f9a1d14d80668720663635cc
|
| 3 |
+
size 1546284
|
models/tokenizer/ary_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ary_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21bb3111788de7f71f160230b53c90faec9e158982f1fc3936144c7bb95bc0a1
|
| 3 |
+
size 391386
|
models/tokenizer/ary_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ary_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e9e3400acc6760b029fbf22dea48ff18cbf62eda489e8d001ff473945dde76d
|
| 3 |
+
size 1446167
|
models/vocabulary/ary_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ary",
|
| 3 |
+
"vocabulary_size": 81712,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.07826179445772023,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.3755263295122797,
|
| 8 |
+
"top_1000": 0.6095531030989189,
|
| 9 |
+
"top_5000": 0.7510592808230233,
|
| 10 |
+
"top_10000": 0.8101195151850255
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 107389,
|
| 13 |
+
"hapax_ratio": 0.5678922903633508,
|
| 14 |
+
"total_documents": 10923
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/ary_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf369ad231704eef182a92e5d64241ae5294d89bedc2393e46ffa50e68be61c3
|
| 3 |
+
size 10974758
|
models/word_markov/ary_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 189320,
|
| 6 |
+
"total_transitions": 3013648
|
| 7 |
+
}
|
models/word_markov/ary_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6feb87132c6a3a8881dab7c3af6268a3da4e594d21311b665e71b2e95a0af000
|
| 3 |
+
size 28263486
|
models/word_markov/ary_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 1014676,
|
| 6 |
+
"total_transitions": 3002725
|
| 7 |
+
}
|
models/word_markov/ary_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:354a3b1b04e0bdb94e0c7a15c339df347f9c313c580fe88c039f721a8a1e4237
|
| 3 |
+
size 41576319
|
models/word_markov/ary_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 1701309,
|
| 6 |
+
"total_transitions": 2991803
|
| 7 |
+
}
|
models/word_markov/ary_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cc0395cfc1cc580368483ee202676a9d7b57cdbdf737c5c7422dfd39ecdf963
|
| 3 |
+
size 50573861
|
models/word_markov/ary_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_contexts": 2000181,
|
| 6 |
+
"total_transitions": 2980882
|
| 7 |
+
}
|
models/word_ngram/ary_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60dc5550877fc074d5df5a925b63f1f3975f796566e9a5a5de18357cd8485faa
|
| 3 |
+
size 1017637
|
models/word_ngram/ary_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 56749,
|
| 6 |
+
"total_ngrams": 3013648
|
| 7 |
+
}
|
models/word_ngram/ary_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:450d7e949b8c457d9c72e4207cc5a90c1e77b46a5e5091df8c971c29082d1978
|
| 3 |
+
size 1493910
|
models/word_ngram/ary_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 76888,
|
| 6 |
+
"total_ngrams": 3002725
|
| 7 |
+
}
|
models/word_ngram/ary_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ee2009d481c48c5635cbb99107a721e89fb3733f2698b8960ac7a70030bbabc
|
| 3 |
+
size 2616301
|
models/word_ngram/ary_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ary",
|
| 5 |
+
"unique_ngrams": 124859,
|
| 6 |
+
"total_ngrams": 2991803
|
| 7 |
+
}
|