Upload all models and assets for dv (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +556 -0
- models/embeddings/monolingual/dv_128d.bin +3 -0
- models/embeddings/monolingual/dv_128d.meta.json +1 -0
- models/embeddings/monolingual/dv_128d_metadata.json +13 -0
- models/embeddings/monolingual/dv_32d.bin +3 -0
- models/embeddings/monolingual/dv_32d.meta.json +1 -0
- models/embeddings/monolingual/dv_32d_metadata.json +13 -0
- models/embeddings/monolingual/dv_64d.bin +3 -0
- models/embeddings/monolingual/dv_64d.meta.json +1 -0
- models/embeddings/monolingual/dv_64d_metadata.json +13 -0
- models/subword_markov/dv_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/dv_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/dv_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/dv_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/dv_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/dv_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/dv_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/dv_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/dv_2gram_subword.parquet +3 -0
- models/subword_ngram/dv_2gram_subword_metadata.json +7 -0
- models/subword_ngram/dv_3gram_subword.parquet +3 -0
- models/subword_ngram/dv_3gram_subword_metadata.json +7 -0
- models/subword_ngram/dv_4gram_subword.parquet +3 -0
- models/subword_ngram/dv_4gram_subword_metadata.json +7 -0
- models/tokenizer/dv_tokenizer_16k.model +3 -0
- models/tokenizer/dv_tokenizer_16k.vocab +0 -0
- models/tokenizer/dv_tokenizer_32k.model +3 -0
- models/tokenizer/dv_tokenizer_32k.vocab +0 -0
- models/tokenizer/dv_tokenizer_64k.model +3 -0
- models/tokenizer/dv_tokenizer_64k.vocab +0 -0
- models/tokenizer/dv_tokenizer_8k.model +3 -0
- models/tokenizer/dv_tokenizer_8k.vocab +0 -0
- models/vocabulary/dv_vocabulary.parquet +3 -0
- models/vocabulary/dv_vocabulary_metadata.json +16 -0
- models/word_markov/dv_markov_ctx1_word.parquet +3 -0
- models/word_markov/dv_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/dv_markov_ctx2_word.parquet +3 -0
- models/word_markov/dv_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/dv_markov_ctx3_word.parquet +3 -0
- models/word_markov/dv_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/dv_markov_ctx4_word.parquet +3 -0
- models/word_markov/dv_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/dv_2gram_word.parquet +3 -0
- models/word_ngram/dv_2gram_word_metadata.json +7 -0
- models/word_ngram/dv_3gram_word.parquet +3 -0
- models/word_ngram/dv_3gram_word_metadata.json +7 -0
- models/word_ngram/dv_4gram_word.parquet +3 -0
- models/word_ngram/dv_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/zipf_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: dv
|
| 3 |
+
language_name: DV
|
| 4 |
+
language_family: indoaryan_insular
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-indoaryan_insular
|
| 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: 6.114
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8870
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 6434
|
| 33 |
+
generated: 2025-12-30
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# DV - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **DV** Wikipedia data.
|
| 40 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 41 |
+
|
| 42 |
+
## 📋 Repository Contents
|
| 43 |
+
|
| 44 |
+
### Models & Assets
|
| 45 |
+
|
| 46 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 47 |
+
- N-gram models (2, 3, 4-gram)
|
| 48 |
+
- Markov chains (context of 1, 2, 3 and 4)
|
| 49 |
+
- Subword N-gram and Markov chains
|
| 50 |
+
- Embeddings in various sizes and dimensions
|
| 51 |
+
- Language Vocabulary
|
| 52 |
+
- Language Statistics
|
| 53 |
+

|
| 54 |
+
|
| 55 |
+
### Analysis and Evaluation
|
| 56 |
+
|
| 57 |
+
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
|
| 58 |
+
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
|
| 59 |
+
- [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
|
| 60 |
+
- [4. Vocabulary Analysis](#4-vocabulary-analysis)
|
| 61 |
+
- [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
|
| 62 |
+
- [6. Summary & Recommendations](#6-summary--recommendations)
|
| 63 |
+
- [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
|
| 64 |
+
- [Visualizations Index](#visualizations-index)
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
## 1. Tokenizer Evaluation
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
|
| 71 |
+
### Results
|
| 72 |
+
|
| 73 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 74 |
+
|------------|-------------|---------------|----------|--------------|
|
| 75 |
+
| **8k** | 4.416x | 4.38 | 0.0656% | 543,835 |
|
| 76 |
+
| **16k** | 5.055x | 5.01 | 0.0751% | 475,116 |
|
| 77 |
+
| **32k** | 5.621x | 5.58 | 0.0836% | 427,269 |
|
| 78 |
+
| **64k** | 6.114x 🏆 | 6.06 | 0.0909% | 392,821 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `ވާރުތަ ބަލި އަކީ ލޭގެ ގުޅުމުގެ ސަބަބުން ދަރިފަސްކޮޅަށް ދެމިގެންދާ ބަލިތަކެވެ.
|
| 85 |
+
|
| 86 |
+
ޤ...`
|
| 87 |
+
|
| 88 |
+
| Vocab | Tokens | Count |
|
| 89 |
+
|-------|--------|-------|
|
| 90 |
+
| 8k | `▁ވާރު ތަ ▁ބަލި ▁އަކީ ▁ލޭގެ ▁ގުޅ ުމުގެ ▁ސަބަބުން ▁ދަރިފ ަސް ... (+9 more)` | 19 |
|
| 91 |
+
| 16k | `▁ވާރުތަ ▁ބަލި ▁އަކީ ▁ލޭގެ ▁ގުޅުމުގެ ▁ސަބަބުން ▁ދަރިފަސް ކޮޅަށް ▁ދެމިގެން ދާ ... (+6 more)` | 16 |
|
| 92 |
+
| 32k | `▁ވާރުތަ ▁ބަލި ▁އަކީ ▁ލޭގެ ▁ގުޅުމުގެ ▁ސަބަބުން ▁ދަރިފަސް ކޮޅަށް ▁ދެމިގެންދާ ▁ބަލިތަކެވެ ... (+4 more)` | 14 |
|
| 93 |
+
| 64k | `▁ވާރުތަ ▁ބަލި ▁އަކީ ▁ލޭގެ ▁ގުޅުމުގެ ▁ސަބަބުން ▁ދަރިފަސް ކޮޅަށް ▁ދެމިގެންދާ ▁ބަލިތަކެވެ ... (+4 more)` | 14 |
|
| 94 |
+
|
| 95 |
+
**Sample 2:** `މިއީ 20ވަނަ ޤަރުނުގެ 99ވަނަ އަހަރެވެ.`
|
| 96 |
+
|
| 97 |
+
| Vocab | Tokens | Count |
|
| 98 |
+
|-------|--------|-------|
|
| 99 |
+
| 8k | `▁މިއީ ▁ 2 0 ވަނަ ▁ޤަރުނުގެ ▁ 9 9 ވަނަ ... (+2 more)` | 12 |
|
| 100 |
+
| 16k | `▁މިއީ ▁ 2 0 ވަނަ ▁ޤަރުނުގެ ▁ 9 9 ވަނަ ... (+2 more)` | 12 |
|
| 101 |
+
| 32k | `▁މިއީ ▁ 2 0 ވަނަ ▁ޤަރުނުގެ ▁ 9 9 ވަނަ ... (+2 more)` | 12 |
|
| 102 |
+
| 64k | `▁މިއީ ▁ 2 0 ވަނަ ▁ޤަރުނުގެ ▁ 9 9 ވަނަ ... (+2 more)` | 12 |
|
| 103 |
+
|
| 104 |
+
**Sample 3:** `މި މަޒުމޫނަކީ ނައިޖީރިއާގެ ނާއިބު ރައީސް އާ ބެހޭ މަޒުމޫނެކެވެ.`
|
| 105 |
+
|
| 106 |
+
| Vocab | Tokens | Count |
|
| 107 |
+
|-------|--------|-------|
|
| 108 |
+
| 8k | `▁މި ▁މަޒުމޫނ ަކީ ▁ނައިޖީ ރިއާގެ ▁ނާއިބު ▁ރައީސް ▁އާ ▁ބެހޭ ▁މަޒުމޫނ ... (+2 more)` | 12 |
|
| 109 |
+
| 16k | `▁މި ▁މަޒުމޫނ ަކީ ▁ނައިޖީ ރިއާގެ ▁ނާއިބު ▁ރައީސް ▁އާ ▁ބެހޭ ▁މަޒުމޫނ ... (+2 more)` | 12 |
|
| 110 |
+
| 32k | `▁މި ▁މަޒުމޫނަކީ ▁ނައިޖީރިއާގެ ▁ނާއިބު ▁ރައީސް ▁އާ ▁ބެހޭ ▁މަޒުމޫނެކެވެ .` | 9 |
|
| 111 |
+
| 64k | `▁މި ▁މަޒުމޫނަކީ ▁ނައިޖީރިއާގެ ▁ނާއިބު ▁ރައީސް ▁އާ ▁ބެހޭ ▁މަޒުމޫނެކެވެ .` | 9 |
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
### Key Findings
|
| 115 |
+
|
| 116 |
+
- **Best Compression:** 64k achieves 6.114x compression
|
| 117 |
+
- **Lowest UNK Rate:** 8k with 0.0656% unknown tokens
|
| 118 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 119 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
## 2. N-gram Model Evaluation
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
|
| 128 |
+
### Results
|
| 129 |
+
|
| 130 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 131 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 132 |
+
| **2-gram** | 280 🏆 | 8.13 | 6,213 | 66.8% | 98.6% |
|
| 133 |
+
| **2-gram** | 309 🏆 | 8.27 | 4,183 | 65.1% | 98.3% |
|
| 134 |
+
| **3-gram** | 1,977 | 10.95 | 27,387 | 28.4% | 74.6% |
|
| 135 |
+
| **3-gram** | 2,024 | 10.98 | 28,100 | 30.0% | 74.0% |
|
| 136 |
+
| **4-gram** | 9,545 | 13.22 | 108,940 | 14.2% | 44.6% |
|
| 137 |
+
| **4-gram** | 8,722 | 13.09 | 111,102 | 15.8% | 46.9% |
|
| 138 |
+
|
| 139 |
+
### Top 5 N-grams by Size
|
| 140 |
+
|
| 141 |
+
**2-grams:**
|
| 142 |
+
|
| 143 |
+
| Rank | N-gram | Count |
|
| 144 |
+
|------|--------|-------|
|
| 145 |
+
| 1 | `ނ ް` | 201,447 |
|
| 146 |
+
| 2 | `ަ އ` | 180,556 |
|
| 147 |
+
| 3 | `އ ި` | 156,059 |
|
| 148 |
+
| 4 | `ވ ެ` | 109,701 |
|
| 149 |
+
| 5 | `އ ް` | 108,512 |
|
| 150 |
+
|
| 151 |
+
**3-grams:**
|
| 152 |
+
|
| 153 |
+
| Rank | N-gram | Count |
|
| 154 |
+
|------|--------|-------|
|
| 155 |
+
| 1 | `ަ އ ި` | 98,210 |
|
| 156 |
+
| 2 | `ެ ވ ެ` | 69,037 |
|
| 157 |
+
| 3 | `ު ނ ް` | 66,257 |
|
| 158 |
+
| 4 | `ވ ެ .` | 64,917 |
|
| 159 |
+
| 5 | `ަ ށ ް` | 49,257 |
|
| 160 |
+
|
| 161 |
+
**4-grams:**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `ެ ވ ެ .` | 64,897 |
|
| 166 |
+
| 2 | `ގ ަ އ ި` | 40,722 |
|
| 167 |
+
| 3 | `އ ެ ވ ެ` | 37,057 |
|
| 168 |
+
| 4 | `ު ގ ަ އ` | 23,243 |
|
| 169 |
+
| 5 | `އ ި ނ ް` | 18,356 |
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
### Key Findings
|
| 173 |
+
|
| 174 |
+
- **Best Perplexity:** 2-gram with 280
|
| 175 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 176 |
+
- **Coverage:** Top-1000 patterns cover ~47% of corpus
|
| 177 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 178 |
+
|
| 179 |
+
---
|
| 180 |
+
## 3. Markov Chain Evaluation
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
|
| 186 |
+
### Results
|
| 187 |
+
|
| 188 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 189 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 190 |
+
| **1** | 0.5858 | 1.501 | 3.83 | 15,381 | 41.4% |
|
| 191 |
+
| **1** | 1.1454 | 2.212 | 8.73 | 1,139 | 0.0% |
|
| 192 |
+
| **2** | 0.2988 🏆 | 1.230 | 2.08 | 58,771 | 70.1% |
|
| 193 |
+
| **2** | 0.9952 🏆 | 1.993 | 5.52 | 9,934 | 0.5% |
|
| 194 |
+
| **3** | 0.3330 | 1.260 | 2.10 | 122,099 | 66.7% |
|
| 195 |
+
| **3** | 0.7840 | 1.722 | 3.51 | 54,858 | 21.6% |
|
| 196 |
+
| **4** | 0.3715 | 1.294 | 2.01 | 255,795 | 62.9% |
|
| 197 |
+
| **4** | 0.5399 | 1.454 | 2.34 | 192,399 | 46.0% |
|
| 198 |
+
|
| 199 |
+
### Generated Text Samples
|
| 200 |
+
|
| 201 |
+
Below are text samples generated from each Markov chain model:
|
| 202 |
+
|
| 203 |
+
**Context Size 1:**
|
| 204 |
+
|
| 205 |
+
1. `ަ ގ ެ ކ ޫ ގ ެ . 1980މ . އ ް ނ ާ ނ ީ`
|
| 206 |
+
2. `ް ނ ް ފ ަ ބ ަ ކ ު ރ ި ތ ަ ރ ަ ސ`
|
| 207 |
+
3. `ެ . މ ަ ބ ޮ ހ ު ތ ަ ލ ޭ އ ި ހ ެ`
|
| 208 |
+
|
| 209 |
+
**Context Size 2:**
|
| 210 |
+
|
| 211 |
+
1. `ނ ް ނ ު ކ ޮ ޅ ު ތ ު ރ ަ އ ި ބ ަ ބ`
|
| 212 |
+
2. `ަ އ ް ކ ަ ނ ް ފ ަ ހ ަ އ ި ވ ެ . މ`
|
| 213 |
+
3. `އ ި ގ ެ ލ ަ ބ ޫ ވ ާ ކ ަ ށ ް އ ި ހ`
|
| 214 |
+
|
| 215 |
+
**Context Size 3:**
|
| 216 |
+
|
| 217 |
+
1. `ަ އ ި ވ ާ ހ ަ ށ ި ގ ަ ނޑ ު ގ ަ އ ި ނ`
|
| 218 |
+
2. `ެ ވ ެ . ފ ި ލ ް ރ ަ ސ ް ޖ ެ ހ ޭ ވ ަ`
|
| 219 |
+
3. `ު ނ ް ކ ު ރ ެ އ ް ވ ާ ފ ަ އ ި ވ ާ ޔ`
|
| 220 |
+
|
| 221 |
+
**Context Size 4:**
|
| 222 |
+
|
| 223 |
+
1. `ެ ވ ެ . ހ ަ މ ަ އ ި ގ ަ ނ ް ނ ަ އ ި ޖ`
|
| 224 |
+
2. `ގ ަ އ ި މ ި ވ ަ ނ ް ތ ަ ކ ެ ތ ީ ގ ަ އ`
|
| 225 |
+
3. `އ ެ ވ ެ . ފ ަ ތ ަ ށ ް ޢ ަ މ ަ ލ ާ ގ ެ`
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
### Key Findings
|
| 229 |
+
|
| 230 |
+
- **Best Predictability:** Context-2 with 70.1% predictability
|
| 231 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 232 |
+
- **Memory Trade-off:** Larger contexts require more storage (192,399 contexts)
|
| 233 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 234 |
+
|
| 235 |
+
---
|
| 236 |
+
## 4. Vocabulary Analysis
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+
### Statistics
|
| 245 |
+
|
| 246 |
+
| Metric | Value |
|
| 247 |
+
|--------|-------|
|
| 248 |
+
| Vocabulary Size | 6,434 |
|
| 249 |
+
| Total Tokens | 3,460,301 |
|
| 250 |
+
| Mean Frequency | 537.81 |
|
| 251 |
+
| Median Frequency | 3 |
|
| 252 |
+
| Frequency Std Dev | 11173.10 |
|
| 253 |
+
|
| 254 |
+
### Most Common Words
|
| 255 |
+
|
| 256 |
+
| Rank | Word | Frequency |
|
| 257 |
+
|------|------|-----------|
|
| 258 |
+
| 1 | އ | 509,388 |
|
| 259 |
+
| 2 | ނ | 367,732 |
|
| 260 |
+
| 3 | މ | 247,599 |
|
| 261 |
+
| 4 | ރ | 246,229 |
|
| 262 |
+
| 5 | ވ | 242,170 |
|
| 263 |
+
| 6 | ކ | 226,840 |
|
| 264 |
+
| 7 | ގ | 210,999 |
|
| 265 |
+
| 8 | ތ | 158,312 |
|
| 266 |
+
| 9 | ދ | 142,011 |
|
| 267 |
+
| 10 | ހ | 138,134 |
|
| 268 |
+
|
| 269 |
+
### Least Common Words (from vocabulary)
|
| 270 |
+
|
| 271 |
+
| Rank | Word | Frequency |
|
| 272 |
+
|------|------|-----------|
|
| 273 |
+
| 1 | علاء | 2 |
|
| 274 |
+
| 2 | حاشية | 2 |
|
| 275 |
+
| 3 | عابدين | 2 |
|
| 276 |
+
| 4 | ٱق | 2 |
|
| 277 |
+
| 5 | حصن | 2 |
|
| 278 |
+
| 6 | 1972ވ | 2 |
|
| 279 |
+
| 7 | abdul_raheem_abdulla_portrait | 2 |
|
| 280 |
+
| 8 | 112x112pxޢ | 2 |
|
| 281 |
+
| 9 | 282ވ | 2 |
|
| 282 |
+
| 10 | costus | 2 |
|
| 283 |
+
|
| 284 |
+
### Zipf's Law Analysis
|
| 285 |
+
|
| 286 |
+
| Metric | Value |
|
| 287 |
+
|--------|-------|
|
| 288 |
+
| Zipf Coefficient | 1.2153 |
|
| 289 |
+
| R² (Goodness of Fit) | 0.951559 |
|
| 290 |
+
| Adherence Quality | **excellent** |
|
| 291 |
+
|
| 292 |
+
### Coverage Analysis
|
| 293 |
+
|
| 294 |
+
| Top N Words | Coverage |
|
| 295 |
+
|-------------|----------|
|
| 296 |
+
| Top 100 | 98.4% |
|
| 297 |
+
| Top 1,000 | 99.4% |
|
| 298 |
+
| Top 5,000 | 99.9% |
|
| 299 |
+
| Top 10,000 | 0.0% |
|
| 300 |
+
|
| 301 |
+
### Key Findings
|
| 302 |
+
|
| 303 |
+
- **Zipf Compliance:** R²=0.9516 indicates excellent adherence to Zipf's law
|
| 304 |
+
- **High Frequency Dominance:** Top 100 words cover 98.4% of corpus
|
| 305 |
+
- **Long Tail:** -3,566 words needed for remaining 100.0% coverage
|
| 306 |
+
|
| 307 |
+
---
|
| 308 |
+
## 5. Word Embeddings Evaluation
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
|
| 318 |
+
### Model Comparison
|
| 319 |
+
|
| 320 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 321 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 322 |
+
| **mono_32d** | 20,888 | 32 | 3.934 | 0.875 | 0.8870 🏆 |
|
| 323 |
+
| **mono_64d** | 20,888 | 64 | 4.609 | 0.777 | 0.8593 |
|
| 324 |
+
| **mono_128d** | 20,888 | 128 | 5.126 | 0.699 | 0.7135 |
|
| 325 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 326 |
+
|
| 327 |
+
### Key Findings
|
| 328 |
+
|
| 329 |
+
- **Best Isotropy:** mono_32d with 0.8870 (more uniform distribution)
|
| 330 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 331 |
+
- **Vocabulary Coverage:** All models cover 20,888 words
|
| 332 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 333 |
+
|
| 334 |
+
---
|
| 335 |
+
## 6. Summary & Recommendations
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
|
| 339 |
+
### Production Recommendations
|
| 340 |
+
|
| 341 |
+
| Component | Recommended | Rationale |
|
| 342 |
+
|-----------|-------------|-----------|
|
| 343 |
+
| Tokenizer | **32k BPE** | Best compression (6.11x) with low UNK rate |
|
| 344 |
+
| N-gram | **5-gram** | Lowest perplexity (280) |
|
| 345 |
+
| Markov | **Context-4** | Highest predictability (70.1%) |
|
| 346 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 347 |
+
|
| 348 |
+
---
|
| 349 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 350 |
+
|
| 351 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 352 |
+
|
| 353 |
+
### Tokenizer Metrics
|
| 354 |
+
|
| 355 |
+
**Compression Ratio**
|
| 356 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 357 |
+
>
|
| 358 |
+
> *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.
|
| 359 |
+
>
|
| 360 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 361 |
+
|
| 362 |
+
**Average Token Length (Fertility)**
|
| 363 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 364 |
+
>
|
| 365 |
+
> *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.
|
| 366 |
+
>
|
| 367 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 368 |
+
|
| 369 |
+
**Unknown Token Rate (OOV Rate)**
|
| 370 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 371 |
+
>
|
| 372 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 373 |
+
>
|
| 374 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 375 |
+
|
| 376 |
+
### N-gram Model Metrics
|
| 377 |
+
|
| 378 |
+
**Perplexity**
|
| 379 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 380 |
+
>
|
| 381 |
+
> *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.
|
| 382 |
+
>
|
| 383 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 384 |
+
|
| 385 |
+
**Entropy**
|
| 386 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 387 |
+
>
|
| 388 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 389 |
+
>
|
| 390 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 391 |
+
|
| 392 |
+
**Coverage (Top-K)**
|
| 393 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 394 |
+
>
|
| 395 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 396 |
+
>
|
| 397 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 398 |
+
|
| 399 |
+
### Markov Chain Metrics
|
| 400 |
+
|
| 401 |
+
**Average Entropy**
|
| 402 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 403 |
+
>
|
| 404 |
+
> *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).
|
| 405 |
+
>
|
| 406 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 407 |
+
|
| 408 |
+
**Branching Factor**
|
| 409 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 410 |
+
>
|
| 411 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 412 |
+
>
|
| 413 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 414 |
+
|
| 415 |
+
**Predictability**
|
| 416 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 417 |
+
>
|
| 418 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 419 |
+
>
|
| 420 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 421 |
+
|
| 422 |
+
### Vocabulary & Zipf's Law Metrics
|
| 423 |
+
|
| 424 |
+
**Zipf's Coefficient**
|
| 425 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 426 |
+
>
|
| 427 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 428 |
+
>
|
| 429 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 430 |
+
|
| 431 |
+
**R² (Coefficient of Determination)**
|
| 432 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 433 |
+
>
|
| 434 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 435 |
+
>
|
| 436 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 437 |
+
|
| 438 |
+
**Vocabulary Coverage**
|
| 439 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 440 |
+
>
|
| 441 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 442 |
+
>
|
| 443 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 444 |
+
|
| 445 |
+
### Word Embedding Metrics
|
| 446 |
+
|
| 447 |
+
**Isotropy**
|
| 448 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 449 |
+
>
|
| 450 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 451 |
+
>
|
| 452 |
+
> *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.
|
| 453 |
+
|
| 454 |
+
**Average Norm**
|
| 455 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 456 |
+
>
|
| 457 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 458 |
+
>
|
| 459 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 460 |
+
|
| 461 |
+
**Cosine Similarity**
|
| 462 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 463 |
+
>
|
| 464 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 465 |
+
>
|
| 466 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 467 |
+
|
| 468 |
+
**t-SNE Visualization**
|
| 469 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 470 |
+
>
|
| 471 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 472 |
+
>
|
| 473 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 474 |
+
|
| 475 |
+
### General Interpretation Guidelines
|
| 476 |
+
|
| 477 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 478 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 479 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 480 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 481 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
### Visualizations Index
|
| 485 |
+
|
| 486 |
+
| Visualization | Description |
|
| 487 |
+
|---------------|-------------|
|
| 488 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 489 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 490 |
+
| Tokenizer OOV | Unknown token rates |
|
| 491 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 492 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 493 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 494 |
+
| N-gram Coverage | Top pattern coverage |
|
| 495 |
+
| N-gram Unique | Unique n-gram counts |
|
| 496 |
+
| Markov Entropy | Entropy by context size |
|
| 497 |
+
| Markov Branching | Branching factor by context |
|
| 498 |
+
| Markov Contexts | Unique context counts |
|
| 499 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 500 |
+
| Vocab Frequency | Word frequency distribution |
|
| 501 |
+
| Top 20 Words | Most frequent words |
|
| 502 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 503 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 504 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 505 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 506 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 507 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 508 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 509 |
+
| Position Encoding | Encoding method comparison |
|
| 510 |
+
| Model Sizes | Storage requirements |
|
| 511 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 512 |
+
|
| 513 |
+
---
|
| 514 |
+
## About This Project
|
| 515 |
+
|
| 516 |
+
### Data Source
|
| 517 |
+
|
| 518 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 519 |
+
|
| 520 |
+
### Project
|
| 521 |
+
|
| 522 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 523 |
+
|
| 524 |
+
### Maintainer
|
| 525 |
+
|
| 526 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 527 |
+
|
| 528 |
+
### Citation
|
| 529 |
+
|
| 530 |
+
If you use these models in your research, please cite:
|
| 531 |
+
|
| 532 |
+
```bibtex
|
| 533 |
+
@misc{wikilangs2025,
|
| 534 |
+
author = {Kamali, Omar},
|
| 535 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 536 |
+
year = {2025},
|
| 537 |
+
publisher = {HuggingFace},
|
| 538 |
+
url = {https://huggingface.co/wikilangs}
|
| 539 |
+
institution = {Omneity Labs}
|
| 540 |
+
}
|
| 541 |
+
```
|
| 542 |
+
|
| 543 |
+
### License
|
| 544 |
+
|
| 545 |
+
MIT License - Free for academic and commercial use.
|
| 546 |
+
|
| 547 |
+
### Links
|
| 548 |
+
|
| 549 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 550 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 551 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 552 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 553 |
+
---
|
| 554 |
+
*Generated by Wikilangs Models Pipeline*
|
| 555 |
+
|
| 556 |
+
*Report Date: 2025-12-30 08:42:33*
|
models/embeddings/monolingual/dv_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17f06f2e5b33a30261c4b7b077e79cbd4c974eed9dd568506a068811d5b85523
|
| 3 |
+
size 1045966622
|
models/embeddings/monolingual/dv_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "dv", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/dv_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "dv",
|
| 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": 20888
|
| 13 |
+
}
|
models/embeddings/monolingual/dv_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:989d442fa29ab19c3397905afc409c5ea3fb2ac3f7ced4ecef5c5b59e58881c8
|
| 3 |
+
size 261924638
|
models/embeddings/monolingual/dv_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "dv", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/dv_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "dv",
|
| 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": 20888
|
| 13 |
+
}
|
models/embeddings/monolingual/dv_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4c8f3716afafb553389e17fdcee49ce632da31ea6cd2b808bd64ec68e7bdece
|
| 3 |
+
size 523271966
|
models/embeddings/monolingual/dv_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "dv", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/dv_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "dv",
|
| 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": 20888
|
| 13 |
+
}
|
models/subword_markov/dv_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b530227d1a204f72f8b65de1a305ae378f77c4e8b2924dfc23dbddc8dd38662
|
| 3 |
+
size 81302
|
models/subword_markov/dv_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 1139,
|
| 6 |
+
"total_transitions": 8248184
|
| 7 |
+
}
|
models/subword_markov/dv_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3eb962d2bf0387e41cfec8127109760ff53e27cb9bee987ddb74ecf1bca3092
|
| 3 |
+
size 447616
|
models/subword_markov/dv_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 9934,
|
| 6 |
+
"total_transitions": 8243619
|
| 7 |
+
}
|
models/subword_markov/dv_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5988c0a1488f6ee94f379fe5d3c8e0f141b7cdd8004be19dd66020914eed032a
|
| 3 |
+
size 1540276
|
models/subword_markov/dv_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 54858,
|
| 6 |
+
"total_transitions": 8239054
|
| 7 |
+
}
|
models/subword_markov/dv_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:385dd9376ce9fb1f3e0ab8e1dfb784f0bd42cb629f08765bdeacbdd9c859e5d7
|
| 3 |
+
size 4185420
|
models/subword_markov/dv_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 192399,
|
| 6 |
+
"total_transitions": 8234489
|
| 7 |
+
}
|
models/subword_ngram/dv_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc947db07c0da034539c406fe8a1f79e854caae8ba0e21db7a629f743943f4f4
|
| 3 |
+
size 56113
|
models/subword_ngram/dv_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 4183,
|
| 6 |
+
"total_ngrams": 8248184
|
| 7 |
+
}
|
models/subword_ngram/dv_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2de063fc8edb0676cdad6e6286041bbe5f0a9cc4a2d60744c57758a2f1b512be
|
| 3 |
+
size 373741
|
models/subword_ngram/dv_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 28100,
|
| 6 |
+
"total_ngrams": 8243619
|
| 7 |
+
}
|
models/subword_ngram/dv_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a03c4da24aa6e3cbafac8d2e54359f6953d2a058be2d361e5f00d8b80e16540
|
| 3 |
+
size 1401587
|
models/subword_ngram/dv_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 111102,
|
| 6 |
+
"total_ngrams": 8239054
|
| 7 |
+
}
|
models/tokenizer/dv_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b009d0f5075910344a5ec70654b5bb2f1453e75fdf1995842ff06f0a18b68e9
|
| 3 |
+
size 613437
|
models/tokenizer/dv_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/dv_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee60e395f3e281dda1c84ee287ea26df87d132e2cba1b17e96eb62b98922ba28
|
| 3 |
+
size 1013278
|
models/tokenizer/dv_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/dv_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da10dcfbcb21fe494de6a305e8ddfbe3a3b893d20e2f3ce5944c6d8f420440a5
|
| 3 |
+
size 1826708
|
models/tokenizer/dv_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/dv_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7360478c29b2bdf38819aa24a0e676d54c3133a34a63adb669179db4dcfaa256
|
| 3 |
+
size 419002
|
models/tokenizer/dv_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/dv_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78a5a307e9810e9b095653562c638e91d2a71e0b2809564df0072f0c05d3e27b
|
| 3 |
+
size 100935
|
models/vocabulary/dv_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "dv",
|
| 3 |
+
"vocabulary_size": 6434,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.004362639272805053,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.9816569669481213,
|
| 8 |
+
"top_1000": 0.9919847241323944,
|
| 9 |
+
"top_5000": 0.9966653223795554,
|
| 10 |
+
"top_10000": 0.9985200350187273
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 8700,
|
| 13 |
+
"hapax_ratio": 0.5748645434121845,
|
| 14 |
+
"total_documents": 4565
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/dv_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88a9fe6cb63c2277dd80fc088352c0625dfd2fa4ff7477a1b0f56bdee4ab18ce
|
| 3 |
+
size 505042
|
models/word_markov/dv_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 15381,
|
| 6 |
+
"total_transitions": 7006421
|
| 7 |
+
}
|
models/word_markov/dv_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:655358b5e277faeeb357b22e4f035c2e76a94c1762518ad441fd4c2fdae93abb
|
| 3 |
+
size 1283233
|
models/word_markov/dv_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 58771,
|
| 6 |
+
"total_transitions": 7001856
|
| 7 |
+
}
|
models/word_markov/dv_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5cac192494e3e067382873a2d619a1be722628e35c0213e6989f699f4ed8c281
|
| 3 |
+
size 2642738
|
models/word_markov/dv_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 122099,
|
| 6 |
+
"total_transitions": 6997291
|
| 7 |
+
}
|
models/word_markov/dv_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ca07713b8573c3d1c74d4ceb4e1fe6ade380e2f8189e63ad82216f40043c423
|
| 3 |
+
size 5437285
|
models/word_markov/dv_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_contexts": 255795,
|
| 6 |
+
"total_transitions": 6992726
|
| 7 |
+
}
|
models/word_ngram/dv_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:343a156c33aeeac660b85c2f308be4390973e3c45ebcca252ff8b4b2ffcb6df1
|
| 3 |
+
size 83954
|
models/word_ngram/dv_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 6213,
|
| 6 |
+
"total_ngrams": 7006421
|
| 7 |
+
}
|
models/word_ngram/dv_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c6e0926b5288ec9069f3a76ef391fab261dcec0fe9ae0214eb7f2e18ef64b6e
|
| 3 |
+
size 393880
|
models/word_ngram/dv_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 27387,
|
| 6 |
+
"total_ngrams": 7001856
|
| 7 |
+
}
|
models/word_ngram/dv_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ded5d0b5ec14a0c1d229616a7bf1f2fc323bbaa97462b502794e5081e90d6d0e
|
| 3 |
+
size 1427660
|
models/word_ngram/dv_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "dv",
|
| 5 |
+
"unique_ngrams": 108940,
|
| 6 |
+
"total_ngrams": 6997291
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|