omarkamali commited on
Commit
02fa115
·
verified ·
1 Parent(s): eafc6a7

Upload all models and assets for ar (20251201)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. README.md +561 -0
  3. models/embeddings/monolingual/ar_128d.bin +3 -0
  4. models/embeddings/monolingual/ar_128d.meta.json +1 -0
  5. models/embeddings/monolingual/ar_128d_metadata.json +13 -0
  6. models/embeddings/monolingual/ar_32d.bin +3 -0
  7. models/embeddings/monolingual/ar_32d.meta.json +1 -0
  8. models/embeddings/monolingual/ar_32d_metadata.json +13 -0
  9. models/embeddings/monolingual/ar_64d.bin +3 -0
  10. models/embeddings/monolingual/ar_64d.meta.json +1 -0
  11. models/embeddings/monolingual/ar_64d_metadata.json +13 -0
  12. models/subword_markov/ar_markov_ctx1_subword.parquet +3 -0
  13. models/subword_markov/ar_markov_ctx1_subword_metadata.json +7 -0
  14. models/subword_markov/ar_markov_ctx2_subword.parquet +3 -0
  15. models/subword_markov/ar_markov_ctx2_subword_metadata.json +7 -0
  16. models/subword_markov/ar_markov_ctx3_subword.parquet +3 -0
  17. models/subword_markov/ar_markov_ctx3_subword_metadata.json +7 -0
  18. models/subword_markov/ar_markov_ctx4_subword.parquet +3 -0
  19. models/subword_markov/ar_markov_ctx4_subword_metadata.json +7 -0
  20. models/subword_ngram/ar_2gram_subword.parquet +3 -0
  21. models/subword_ngram/ar_2gram_subword_metadata.json +7 -0
  22. models/subword_ngram/ar_3gram_subword.parquet +3 -0
  23. models/subword_ngram/ar_3gram_subword_metadata.json +7 -0
  24. models/subword_ngram/ar_4gram_subword.parquet +3 -0
  25. models/subword_ngram/ar_4gram_subword_metadata.json +7 -0
  26. models/tokenizer/ar_tokenizer_16k.model +3 -0
  27. models/tokenizer/ar_tokenizer_16k.vocab +0 -0
  28. models/tokenizer/ar_tokenizer_32k.model +3 -0
  29. models/tokenizer/ar_tokenizer_32k.vocab +0 -0
  30. models/tokenizer/ar_tokenizer_64k.model +3 -0
  31. models/tokenizer/ar_tokenizer_64k.vocab +0 -0
  32. models/tokenizer/ar_tokenizer_8k.model +3 -0
  33. models/tokenizer/ar_tokenizer_8k.vocab +0 -0
  34. models/vocabulary/ar_vocabulary.parquet +3 -0
  35. models/vocabulary/ar_vocabulary_metadata.json +16 -0
  36. models/word_markov/ar_markov_ctx1_word.parquet +3 -0
  37. models/word_markov/ar_markov_ctx1_word_metadata.json +7 -0
  38. models/word_markov/ar_markov_ctx2_word.parquet +3 -0
  39. models/word_markov/ar_markov_ctx2_word_metadata.json +7 -0
  40. models/word_markov/ar_markov_ctx3_word.parquet +3 -0
  41. models/word_markov/ar_markov_ctx3_word_metadata.json +7 -0
  42. models/word_markov/ar_markov_ctx4_word.parquet +3 -0
  43. models/word_markov/ar_markov_ctx4_word_metadata.json +7 -0
  44. models/word_ngram/ar_2gram_word.parquet +3 -0
  45. models/word_ngram/ar_2gram_word_metadata.json +7 -0
  46. models/word_ngram/ar_3gram_word.parquet +3 -0
  47. models/word_ngram/ar_3gram_word_metadata.json +7 -0
  48. models/word_ngram/ar_4gram_word.parquet +3 -0
  49. models/word_ngram/ar_4gram_word_metadata.json +7 -0
  50. visualizations/embedding_isotropy.png +0 -0
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
37
+ visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
38
+ visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
39
+ visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
40
+ visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
41
+ visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,561 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ar
3
+ language_name: Arabic
4
+ language_family: arabic
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
+ dataset_info:
21
+ name: wikipedia-monthly
22
+ description: Monthly snapshots of Wikipedia articles across 300+ languages
23
+ metrics:
24
+ - name: best_compression_ratio
25
+ type: compression
26
+ value: 4.103
27
+ - name: best_isotropy
28
+ type: isotropy
29
+ value: 0.7155
30
+ - name: vocabulary_size
31
+ type: vocab
32
+ value: 1000000
33
+ generated: 2025-12-27
34
+ ---
35
+
36
+ # Arabic - Wikilangs Models
37
+ ## Comprehensive Research Report & Full Ablation Study
38
+
39
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Arabic** 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
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
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
+ ![Tokenizer Compression](visualizations/tokenizer_compression.png)
70
+
71
+ ### Results
72
+
73
+ | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
74
+ |------------|-------------|---------------|----------|--------------|
75
+ | **8k** | 3.156x | 3.13 | 0.0848% | 5,982,398 |
76
+ | **16k** | 3.513x | 3.49 | 0.0944% | 5,374,291 |
77
+ | **32k** | 3.837x | 3.81 | 0.1031% | 4,920,728 |
78
+ | **64k** | 4.103x 🏆 | 4.07 | 0.1103% | 4,602,368 |
79
+
80
+ ### Tokenization Examples
81
+
82
+ Below are sample sentences tokenized with each vocabulary size:
83
+
84
+ **Sample 1:** `تحويل ميلفورد (كونيتيكت)`
85
+
86
+ | Vocab | Tokens | Count |
87
+ |-------|--------|-------|
88
+ | 8k | `▁تحويل ▁ميل فورد ▁( ك وني تي كت )` | 9 |
89
+ | 16k | `▁تحويل ▁ميل فورد ▁( ك وني تي كت )` | 9 |
90
+ | 32k | `▁تحويل ▁ميل فورد ▁( كوني تيكت )` | 7 |
91
+ | 64k | `▁تحويل ▁ميل فورد ▁( كونيتيكت )` | 6 |
92
+
93
+ **Sample 2:** `قد يقصد من «الفرفار» :
94
+
95
+ الفرفار (إدا وكماض) : دوار تابع لجماعة إدا وڭماض في إقل...`
96
+
97
+ | Vocab | Tokens | Count |
98
+ |-------|--------|-------|
99
+ | 8k | `▁قد ▁يق صد ▁من ▁« الف رف ار » ▁: ... (+43 more)` | 53 |
100
+ | 16k | `▁قد ▁يقصد ▁من ▁« الف رف ار » ▁: ▁الف ... (+37 more)` | 47 |
101
+ | 32k | `▁قد ▁يقصد ▁من ▁« الف رف ار » ▁: ▁الف ... (+36 more)` | 46 |
102
+ | 64k | `▁قد ▁يقصد ▁من ▁« الف رف ار » ▁: ▁الف ... (+34 more)` | 44 |
103
+
104
+ **Sample 3:** `المراجع
105
+
106
+ تصنيف:أنهار إفريقية دولية
107
+ تصنيف:أنهار بوروندي
108
+ تصنيف:أنهار تنزانيا
109
+ تصني...`
110
+
111
+ | Vocab | Tokens | Count |
112
+ |-------|--------|-------|
113
+ | 8k | `▁المراجع ▁تصنيف : أن هار ▁إ فريقية ▁دولية ▁تصنيف : ... (+16 more)` | 26 |
114
+ | 16k | `▁المراجع ▁تصنيف : أنهار ▁إفريقية ▁دولية ▁تصنيف : أنهار ▁بور ... (+12 more)` | 22 |
115
+ | 32k | `▁المراجع ▁تصنيف : أنهار ▁إفريقية ▁دولية ▁تصنيف : أنهار ▁بور ... (+9 more)` | 19 |
116
+ | 64k | `▁المراجع ▁تصنيف : أنهار ▁إفريقية ▁دولية ▁تصنيف : أنهار ▁بوروندي ... (+8 more)` | 18 |
117
+
118
+
119
+ ### Key Findings
120
+
121
+ - **Best Compression:** 64k achieves 4.103x compression
122
+ - **Lowest UNK Rate:** 8k with 0.0848% unknown tokens
123
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
124
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
125
+
126
+ ---
127
+ ## 2. N-gram Model Evaluation
128
+
129
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
130
+
131
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
132
+
133
+ ### Results
134
+
135
+ | N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
136
+ |--------|------------|---------|----------------|------------------|-------------------|
137
+ | **2-gram** | 224,018 🏆 | 17.77 | 6,245,473 | 10.5% | 22.3% |
138
+ | **2-gram** | 514 🏆 | 9.00 | 52,884 | 52.6% | 94.6% |
139
+ | **3-gram** | 831,530 | 19.67 | 14,344,223 | 6.6% | 16.3% |
140
+ | **3-gram** | 4,885 | 12.25 | 487,957 | 23.0% | 53.9% |
141
+ | **4-gram** | 1,784,666 | 20.77 | 25,822,600 | 4.6% | 13.6% |
142
+ | **4-gram** | 29,916 | 14.87 | 3,376,435 | 13.3% | 31.6% |
143
+
144
+ ### Top 5 N-grams by Size
145
+
146
+ **2-grams:**
147
+
148
+ | Rank | N-gram | Count |
149
+ |------|--------|-------|
150
+ | 1 | `تصنيف :` | 9,397,729 |
151
+ | 2 | `ً ا` | 2,647,403 |
152
+ | 3 | `: لاعبو` | 1,539,560 |
153
+ | 4 | `| |` | 1,324,145 |
154
+ | 5 | `كرة قدم` | 758,315 |
155
+
156
+ **3-grams:**
157
+
158
+ | Rank | N-gram | Count |
159
+ |------|--------|-------|
160
+ | 1 | `تصنيف : لاعبو` | 1,539,552 |
161
+ | 2 | `تصنيف : مواليد` | 617,808 |
162
+ | 3 | `: لاعبو كرة` | 498,223 |
163
+ | 4 | `| | |` | 459,400 |
164
+ | 5 | `تصنيف : أشخاص` | 441,938 |
165
+
166
+ **4-grams:**
167
+
168
+ | Rank | N-gram | Count |
169
+ |------|--------|-------|
170
+ | 1 | `تصنيف : لاعبو كرة` | 498,220 |
171
+ | 2 | `: لاعبو كرة قدم` | 381,016 |
172
+ | 3 | `القرن 20 تصنيف :` | 278,900 |
173
+ | 4 | `في القرن 20 تصنيف` | 266,135 |
174
+ | 5 | `| | | |` | 255,908 |
175
+
176
+
177
+ ### Key Findings
178
+
179
+ - **Best Perplexity:** 2-gram with 514
180
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
181
+ - **Coverage:** Top-1000 patterns cover ~32% of corpus
182
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
183
+
184
+ ---
185
+ ## 3. Markov Chain Evaluation
186
+
187
+ ![Markov Entropy](visualizations/markov_entropy.png)
188
+
189
+ ![Markov Branching](visualizations/markov_branching.png)
190
+
191
+ ### Results
192
+
193
+ | Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
194
+ |---------|-------------|------------|------------------|-----------------|----------------|
195
+ | **1** | 0.7411 | 1.671 | 12.81 | 5,367,543 | 25.9% |
196
+ | **1** | 1.8418 | 3.585 | 17.44 | 13,038 | 0.0% |
197
+ | **2** | 0.4074 | 1.326 | 2.70 | 68,744,585 | 59.3% |
198
+ | **2** | 0.7015 | 1.626 | 5.08 | 227,339 | 29.9% |
199
+ | **3** | 0.1748 | 1.129 | 1.44 | 185,531,332 | 82.5% |
200
+ | **3** | 0.8426 | 1.793 | 5.22 | 1,153,787 | 15.7% |
201
+ | **4** | 0.0757 🏆 | 1.054 | 1.16 | 267,713,644 | 92.4% |
202
+ | **4** | 0.7645 🏆 | 1.699 | 3.88 | 6,025,353 | 23.6% |
203
+
204
+ ### Generated Text Samples
205
+
206
+ Below are text samples generated from each Markov chain model:
207
+
208
+ **Context Size 1:**
209
+
210
+ 1. `. اكت ُ ص م َ ّ ة . أخته ، وافتتاح مشروع مرصد أونديجوف |`
211
+ 2. `في المدار في جمهورية ألمانيا تصنيف : خلافات في . أنظر : تشغيل الحواسيب . 1`
212
+ 3. `، واستحوذت أيضا التحريفية للبلغاريين والأجانب أو تمليح اللحوم والأتواب والملابس والبطانيات الى القاه...`
213
+
214
+ **Context Size 2:**
215
+
216
+ 1. `تصنيف : كتاب ومؤلفو قصص مصورة تصنيف : فائزون بميداليات برونزية في ألعاب الكومنولث في إنجلترا تصنيف`
217
+ 2. `ً ا للاغتسال . وقال القرطبي في تفسيره على أنه آمن خلال الرضاعة الطبيعية يسبب زيادة الكوليسترول`
218
+ 3. `: لاعبو كرة قدم صرب مغتربون في روسيا تصنيف : أفلام دراما باللغة الإنجليزية تصنيف : سائقو`
219
+
220
+ **Context Size 3:**
221
+
222
+ 1. `تصنيف : لاعبو بوتكيت ريد سوكس تصنيف : مواليد 1955 تصنيف : مؤيدون لتنظيم ملكية الأسلحة تصنيف :`
223
+ 2. `تصنيف : مواليد 1986 تصنيف : لاعبو وسط كرة قدم رجالية تصنيف : مواليد 1390 هـ تصنيف :`
224
+ 3. `: لاعبو كرة قدم مغاربة تصنيف : عداؤو مسافات متوسطة نيوزيلنديون تصنيف : مواليد 1981 تصنيف : مواليد`
225
+
226
+ **Context Size 4:**
227
+
228
+ 1. `تصنيف : لاعبو كرة قدم مغتربون في المجر تصنيف : لاعبو كرة اليد في الألعاب الأولمبية الصيفية 1956 تصني...`
229
+ 2. `: لاعبو كرة قدم مغتربون في إنجلترا تصنيف : لاعبو كرة قدم مغتربون في إيطاليا تصنيف : أماكن مأهولة`
230
+ 3. `القرن 20 تصنيف : كاتبات أمريكيات في القرن 20 تصنيف : شعراء بالعربية في القرن 21 تصنيف : لاعبو`
231
+
232
+
233
+ ### Key Findings
234
+
235
+ - **Best Predictability:** Context-4 with 92.4% predictability
236
+ - **Branching Factor:** Decreases with context size (more deterministic)
237
+ - **Memory Trade-off:** Larger contexts require more storage (6,025,353 contexts)
238
+ - **Recommendation:** Context-3 or Context-4 for text generation
239
+
240
+ ---
241
+ ## 4. Vocabulary Analysis
242
+
243
+ ![Zipf's Law](visualizations/zipf_law.png)
244
+
245
+ ![Top Words](visualizations/top20_words.png)
246
+
247
+ ![Coverage Curve](visualizations/vocab_coverage.png)
248
+
249
+ ### Statistics
250
+
251
+ | Metric | Value |
252
+ |--------|-------|
253
+ | Vocabulary Size | 1,000,000 |
254
+ | Total Tokens | 366,842,150 |
255
+ | Mean Frequency | 366.84 |
256
+ | Median Frequency | 12 |
257
+ | Frequency Std Dev | 20900.79 |
258
+
259
+ ### Most Common Words
260
+
261
+ | Rank | Word | Frequency |
262
+ |------|------|-----------|
263
+ | 1 | في | 14,346,570 |
264
+ | 2 | تصنيف | 9,437,038 |
265
+ | 3 | من | 8,350,052 |
266
+ | 4 | على | 3,295,037 |
267
+ | 5 | ا | 2,755,855 |
268
+ | 6 | إلى | 2,451,934 |
269
+ | 7 | عام | 1,684,151 |
270
+ | 8 | لاعبو | 1,540,822 |
271
+ | 9 | أن | 1,441,897 |
272
+ | 10 | مع | 1,171,753 |
273
+
274
+ ### Least Common Words (from vocabulary)
275
+
276
+ | Rank | Word | Frequency |
277
+ |------|------|-----------|
278
+ | 1 | твоим | 4 |
279
+ | 2 | своему | 4 |
280
+ | 3 | вашей | 4 |
281
+ | 4 | нашу | 4 |
282
+ | 5 | кого | 4 |
283
+ | 6 | чьей | 4 |
284
+ | 7 | работать | 4 |
285
+ | 8 | говорит | 4 |
286
+ | 9 | говорят | 4 |
287
+ | 10 | идёт | 4 |
288
+
289
+ ### Zipf's Law Analysis
290
+
291
+ | Metric | Value |
292
+ |--------|-------|
293
+ | Zipf Coefficient | 0.9655 |
294
+ | R² (Goodness of Fit) | 0.990109 |
295
+ | Adherence Quality | **excellent** |
296
+
297
+ ### Coverage Analysis
298
+
299
+ | Top N Words | Coverage |
300
+ |-------------|----------|
301
+ | Top 100 | 24.9% |
302
+ | Top 1,000 | 48.1% |
303
+ | Top 5,000 | 68.6% |
304
+ | Top 10,000 | 76.6% |
305
+
306
+ ### Key Findings
307
+
308
+ - **Zipf Compliance:** R²=0.9901 indicates excellent adherence to Zipf's law
309
+ - **High Frequency Dominance:** Top 100 words cover 24.9% of corpus
310
+ - **Long Tail:** 990,000 words needed for remaining 23.4% coverage
311
+
312
+ ---
313
+ ## 5. Word Embeddings Evaluation
314
+
315
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
316
+
317
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
318
+
319
+ ![t-SNE Words](visualizations/tsne_words.png)
320
+
321
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
322
+
323
+ ### Model Comparison
324
+
325
+ | Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
326
+ |-------|------------|-----------|----------|----------|----------|
327
+ | **mono_32d** | 1,505,991 | 32 | 3.562 | 1.491 | 0.7155 🏆 |
328
+ | **mono_64d** | 1,505,991 | 64 | 3.899 | 1.405 | 0.7134 |
329
+ | **mono_128d** | 1,505,991 | 128 | 4.337 | 1.358 | 0.6849 |
330
+ | **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
331
+
332
+ ### Key Findings
333
+
334
+ - **Best Isotropy:** mono_32d with 0.7155 (more uniform distribution)
335
+ - **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
336
+ - **Vocabulary Coverage:** All models cover 1,505,991 words
337
+ - **Recommendation:** 100d for balanced semantic capture and efficiency
338
+
339
+ ---
340
+ ## 6. Summary & Recommendations
341
+
342
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
343
+
344
+ ### Production Recommendations
345
+
346
+ | Component | Recommended | Rationale |
347
+ |-----------|-------------|-----------|
348
+ | Tokenizer | **32k BPE** | Best compression (4.10x) with low UNK rate |
349
+ | N-gram | **5-gram** | Lowest perplexity (514) |
350
+ | Markov | **Context-4** | Highest predictability (92.4%) |
351
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
352
+
353
+ ---
354
+ ## Appendix: Metrics Glossary & Interpretation Guide
355
+
356
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
357
+
358
+ ### Tokenizer Metrics
359
+
360
+ **Compression Ratio**
361
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
362
+ >
363
+ > *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.
364
+ >
365
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
366
+
367
+ **Average Token Length (Fertility)**
368
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
369
+ >
370
+ > *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.
371
+ >
372
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
373
+
374
+ **Unknown Token Rate (OOV Rate)**
375
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
376
+ >
377
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
378
+ >
379
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
380
+
381
+ ### N-gram Model Metrics
382
+
383
+ **Perplexity**
384
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
385
+ >
386
+ > *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.
387
+ >
388
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
389
+
390
+ **Entropy**
391
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
392
+ >
393
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
394
+ >
395
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
396
+
397
+ **Coverage (Top-K)**
398
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
399
+ >
400
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
401
+ >
402
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
403
+
404
+ ### Markov Chain Metrics
405
+
406
+ **Average Entropy**
407
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
408
+ >
409
+ > *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).
410
+ >
411
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
412
+
413
+ **Branching Factor**
414
+ > *Definition:* Average number of unique next tokens observed for each context.
415
+ >
416
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
417
+ >
418
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
419
+
420
+ **Predictability**
421
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
422
+ >
423
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
424
+ >
425
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
426
+
427
+ ### Vocabulary & Zipf's Law Metrics
428
+
429
+ **Zipf's Coefficient**
430
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
431
+ >
432
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
433
+ >
434
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
435
+
436
+ **R² (Coefficient of Determination)**
437
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
438
+ >
439
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
440
+ >
441
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
442
+
443
+ **Vocabulary Coverage**
444
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
445
+ >
446
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
447
+ >
448
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
449
+
450
+ ### Word Embedding Metrics
451
+
452
+ **Isotropy**
453
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
454
+ >
455
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
456
+ >
457
+ > *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.
458
+
459
+ **Average Norm**
460
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
461
+ >
462
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
463
+ >
464
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
465
+
466
+ **Cosine Similarity**
467
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
468
+ >
469
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
470
+ >
471
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
472
+
473
+ **t-SNE Visualization**
474
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
475
+ >
476
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
477
+ >
478
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
479
+
480
+ ### General Interpretation Guidelines
481
+
482
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
483
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
484
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
485
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
486
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
487
+
488
+
489
+ ### Visualizations Index
490
+
491
+ | Visualization | Description |
492
+ |---------------|-------------|
493
+ | Tokenizer Compression | Compression ratios by vocabulary size |
494
+ | Tokenizer Fertility | Average token length by vocabulary |
495
+ | Tokenizer OOV | Unknown token rates |
496
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
497
+ | N-gram Perplexity | Perplexity by n-gram size |
498
+ | N-gram Entropy | Entropy by n-gram size |
499
+ | N-gram Coverage | Top pattern coverage |
500
+ | N-gram Unique | Unique n-gram counts |
501
+ | Markov Entropy | Entropy by context size |
502
+ | Markov Branching | Branching factor by context |
503
+ | Markov Contexts | Unique context counts |
504
+ | Zipf's Law | Frequency-rank distribution with fit |
505
+ | Vocab Frequency | Word frequency distribution |
506
+ | Top 20 Words | Most frequent words |
507
+ | Vocab Coverage | Cumulative coverage curve |
508
+ | Embedding Isotropy | Vector space uniformity |
509
+ | Embedding Norms | Vector magnitude distribution |
510
+ | Embedding Similarity | Word similarity heatmap |
511
+ | Nearest Neighbors | Similar words for key terms |
512
+ | t-SNE Words | 2D word embedding visualization |
513
+ | t-SNE Sentences | 2D sentence embedding visualization |
514
+ | Position Encoding | Encoding method comparison |
515
+ | Model Sizes | Storage requirements |
516
+ | Performance Dashboard | Comprehensive performance overview |
517
+
518
+ ---
519
+ ## About This Project
520
+
521
+ ### Data Source
522
+
523
+ Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
524
+
525
+ ### Project
526
+
527
+ A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
528
+
529
+ ### Maintainer
530
+
531
+ [Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
532
+
533
+ ### Citation
534
+
535
+ If you use these models in your research, please cite:
536
+
537
+ ```bibtex
538
+ @misc{wikilangs2025,
539
+ author = {Kamali, Omar},
540
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
541
+ year = {2025},
542
+ publisher = {HuggingFace},
543
+ url = {https://huggingface.co/wikilangs}
544
+ institution = {Omneity Labs}
545
+ }
546
+ ```
547
+
548
+ ### License
549
+
550
+ MIT License - Free for academic and commercial use.
551
+
552
+ ### Links
553
+
554
+ - 🌐 Website: [wikilangs.org](https://wikilangs.org)
555
+ - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
556
+ - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
557
+ - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
558
+ ---
559
+ *Generated by Wikilangs Models Pipeline*
560
+
561
+ *Report Date: 2025-12-27 16:32:09*
models/embeddings/monolingual/ar_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a15e8d3f91894ef733d19288cf8f9905570f8b2cb6c96d55ef1706a098238e3
3
+ size 2599525002
models/embeddings/monolingual/ar_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ar", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/ar_128d_metadata.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ar",
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": 1505991
13
+ }
models/embeddings/monolingual/ar_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c69754e00f4a7215bd624c3eada95e3f38a60dfc1f0e7cb54a049f1e7c7dfe5b
3
+ size 674923914
models/embeddings/monolingual/ar_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ar", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/ar_32d_metadata.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ar",
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": 1505991
13
+ }
models/embeddings/monolingual/ar_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b216bcc9d5802fb5f2765d412ed8e269961ce1d314758d5c5986a12d8d067325
3
+ size 1316457610
models/embeddings/monolingual/ar_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "ar", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/ar_64d_metadata.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ar",
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": 1505991
13
+ }
models/subword_markov/ar_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f138ceea502bc716af3c32b8672e5560c86fb05241a4c6df25882580b5a54208
3
+ size 1240058
models/subword_markov/ar_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_contexts": 13038,
6
+ "total_transitions": 2227602784
7
+ }
models/subword_markov/ar_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3927d88cac7fc454b48e23919fdaacb6c000902069154a165316b426b04cb9d2
3
+ size 9037901
models/subword_markov/ar_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_contexts": 227339,
6
+ "total_transitions": 2226268866
7
+ }
models/subword_markov/ar_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19911a0827041ed4348c506978baaae745ceac594b0d61c980d2bc3777aa6a97
3
+ size 44692812
models/subword_markov/ar_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_contexts": 1153787,
6
+ "total_transitions": 2224934948
7
+ }
models/subword_markov/ar_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67f755180f4df9e71b72cbe5cce476a0f75aa2d3bb2be4d74074ae69f6f89b19
3
+ size 190825986
models/subword_markov/ar_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_contexts": 6025353,
6
+ "total_transitions": 2223601030
7
+ }
models/subword_ngram/ar_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71ed96bee2deb0bad70f5449c7c15403d96685f635321bae37b67c5fac7ce756
3
+ size 750740
models/subword_ngram/ar_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_ngrams": 52884,
6
+ "total_ngrams": 2227602784
7
+ }
models/subword_ngram/ar_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bbdad1db2897a969c03e3f47d560f9d1dea5e8a3448c3f90f1c693656c1a2ff
3
+ size 6329144
models/subword_ngram/ar_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_ngrams": 487957,
6
+ "total_ngrams": 2226268866
7
+ }
models/subword_ngram/ar_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1d75bfcaa4ba765d4a698064ad06b8d77a93f04f7e84e5b96dc323009209b04
3
+ size 43956365
models/subword_ngram/ar_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "ar",
5
+ "unique_ngrams": 3376435,
6
+ "total_ngrams": 2224934948
7
+ }
models/tokenizer/ar_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7edaf2dbdc3ada01d30b8717ebf8add3d42cafa3d77bcdd80f720a97d9746d1
3
+ size 559100
models/tokenizer/ar_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ar_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:442456b5ec25cb0683e0fe13294df9823fad435a42a56c7742c1cae081aa137a
3
+ size 896676
models/tokenizer/ar_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ar_tokenizer_64k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95c3e0d8a7a2ddcdb77379df9ab674034abf4e5f512785ebba09ecfc8b354f66
3
+ size 1589031
models/tokenizer/ar_tokenizer_64k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/ar_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f348b2c21a24d3a2ea09cf2eb93040bd9b203a25a891e426a51af0742693d90
3
+ size 395404
models/tokenizer/ar_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/ar_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a53a54e5478b4d7db731e85c634c1c05678e6956d42d16a8b8195a001195afbf
3
+ size 15296577
models/vocabulary/ar_vocabulary_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "ar",
3
+ "vocabulary_size": 1000000,
4
+ "statistics": {
5
+ "type_token_ratio": 0.014399599085234752,
6
+ "coverage": {
7
+ "top_100": 0.24468957694891222,
8
+ "top_1000": 0.473562596402342,
9
+ "top_5000": 0.6748063946199147,
10
+ "top_10000": 0.7536829840670893
11
+ },
12
+ "hapax_count": 3360857,
13
+ "hapax_ratio": 0.6262799827295155,
14
+ "total_documents": 1333918
15
+ }
16
+ }
models/word_markov/ar_markov_ctx1_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:595835c3288deb49535347878aaafaab9a18550487e54619d262b4d69c8215b8
3
+ size 680761022
models/word_markov/ar_markov_ctx1_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_contexts": 5367543,
6
+ "total_transitions": 454840210
7
+ }
models/word_markov/ar_markov_ctx2_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3829aa63360c23d9ab12cd8bf7e141a172af6760dd613f90c50bc82f224475a
3
+ size 2909790923
models/word_markov/ar_markov_ctx2_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_contexts": 68744585,
6
+ "total_transitions": 453506293
7
+ }
models/word_markov/ar_markov_ctx3_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f834d8afb681b1fd6421bf196a28f7c9d985554a444560361588d8ffd31a584
3
+ size 5786767054
models/word_markov/ar_markov_ctx3_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_contexts": 185531332,
6
+ "total_transitions": 452178131
7
+ }
models/word_markov/ar_markov_ctx4_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44384cee303cadec635f144b3cb696268a3650cc07f961bd6bcabe86f0407477
3
+ size 7923726330
models/word_markov/ar_markov_ctx4_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_contexts": 267713644,
6
+ "total_transitions": 450864610
7
+ }
models/word_ngram/ar_2gram_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc9e09762e567e19160e345cf37f8110cad4c879ea76deb67d4bb98f71a0515a
3
+ size 133530956
models/word_ngram/ar_2gram_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_ngrams": 6245473,
6
+ "total_ngrams": 454840210
7
+ }
models/word_ngram/ar_3gram_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9784de16dd5fcc1ecb1cc4c96feff66ec0f2805b234fafb54d9732cfebafa123
3
+ size 349991627
models/word_ngram/ar_3gram_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_ngrams": 14344223,
6
+ "total_ngrams": 453506293
7
+ }
models/word_ngram/ar_4gram_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a6e8a5896a9a380e2250a09454a912c564de9e3c16d392896346a8f97b61663
3
+ size 674654663
models/word_ngram/ar_4gram_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "word",
4
+ "language": "ar",
5
+ "unique_ngrams": 25822600,
6
+ "total_ngrams": 452178131
7
+ }
visualizations/embedding_isotropy.png ADDED