Upload all models and assets for ng (latest)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +4 -0
- README.md +698 -0
- models/embeddings/aligned/ng_128d.bin +3 -0
- models/embeddings/aligned/ng_128d.meta.json +1 -0
- models/embeddings/aligned/ng_128d.projection.npy +3 -0
- models/embeddings/aligned/ng_128d_metadata.json +8 -0
- models/embeddings/aligned/ng_32d.bin +3 -0
- models/embeddings/aligned/ng_32d.meta.json +1 -0
- models/embeddings/aligned/ng_32d.projection.npy +3 -0
- models/embeddings/aligned/ng_32d_metadata.json +8 -0
- models/embeddings/aligned/ng_64d.bin +3 -0
- models/embeddings/aligned/ng_64d.meta.json +1 -0
- models/embeddings/aligned/ng_64d.projection.npy +3 -0
- models/embeddings/aligned/ng_64d_metadata.json +8 -0
- models/embeddings/monolingual/ng_128d.bin +3 -0
- models/embeddings/monolingual/ng_128d.meta.json +1 -0
- models/embeddings/monolingual/ng_128d_metadata.json +16 -0
- models/embeddings/monolingual/ng_32d.bin +3 -0
- models/embeddings/monolingual/ng_32d.meta.json +1 -0
- models/embeddings/monolingual/ng_32d_metadata.json +16 -0
- models/embeddings/monolingual/ng_64d.bin +3 -0
- models/embeddings/monolingual/ng_64d.meta.json +1 -0
- models/embeddings/monolingual/ng_64d_metadata.json +16 -0
- models/subword_markov/ng_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ng_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ng_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ng_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ng_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ng_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ng_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ng_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ng_2gram_subword.parquet +3 -0
- models/subword_ngram/ng_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ng_3gram_subword.parquet +3 -0
- models/subword_ngram/ng_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ng_4gram_subword.parquet +3 -0
- models/subword_ngram/ng_4gram_subword_metadata.json +7 -0
- models/subword_ngram/ng_5gram_subword.parquet +3 -0
- models/subword_ngram/ng_5gram_subword_metadata.json +7 -0
- models/tokenizer/ng_tokenizer_8k.model +3 -0
- models/tokenizer/ng_tokenizer_8k.vocab +0 -0
- models/vocabulary/ng_vocabulary.parquet +3 -0
- models/vocabulary/ng_vocabulary_metadata.json +15 -0
- models/word_markov/ng_markov_ctx1_word.parquet +3 -0
- models/word_markov/ng_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ng_markov_ctx2_word.parquet +3 -0
- models/word_markov/ng_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ng_markov_ctx3_word.parquet +3 -0
- models/word_markov/ng_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ng_markov_ctx4_word.parquet +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ 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/embedding_tsne_multilingual.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,698 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: ng
|
| 3 |
+
language_name: Ndonga
|
| 4 |
+
language_family: bantu_central
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- feature-extraction
|
| 14 |
+
- sentence-similarity
|
| 15 |
+
- tokenization
|
| 16 |
+
- n-grams
|
| 17 |
+
- markov-chain
|
| 18 |
+
- text-mining
|
| 19 |
+
- fasttext
|
| 20 |
+
- babelvec
|
| 21 |
+
- vocabulous
|
| 22 |
+
- vocabulary
|
| 23 |
+
- monolingual
|
| 24 |
+
- family-bantu_central
|
| 25 |
+
license: mit
|
| 26 |
+
library_name: wikilangs
|
| 27 |
+
pipeline_tag: text-generation
|
| 28 |
+
datasets:
|
| 29 |
+
- omarkamali/wikipedia-monthly
|
| 30 |
+
dataset_info:
|
| 31 |
+
name: wikipedia-monthly
|
| 32 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 33 |
+
metrics:
|
| 34 |
+
- name: best_compression_ratio
|
| 35 |
+
type: compression
|
| 36 |
+
value: 2.981
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.0034
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-10
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Ndonga - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Ndonga** Wikipedia data.
|
| 50 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 51 |
+
|
| 52 |
+
## 📋 Repository Contents
|
| 53 |
+
|
| 54 |
+
### Models & Assets
|
| 55 |
+
|
| 56 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 57 |
+
- N-gram models (2, 3, 4, 5-gram)
|
| 58 |
+
- Markov chains (context of 1, 2, 3, 4 and 5)
|
| 59 |
+
- Subword N-gram and Markov chains
|
| 60 |
+
- Embeddings in various sizes and dimensions (aligned and unaligned)
|
| 61 |
+
- Language Vocabulary
|
| 62 |
+
- Language Statistics
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
### Analysis and Evaluation
|
| 67 |
+
|
| 68 |
+
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
|
| 69 |
+
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
|
| 70 |
+
- [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
|
| 71 |
+
- [4. Vocabulary Analysis](#4-vocabulary-analysis)
|
| 72 |
+
- [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
|
| 73 |
+
- [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
|
| 74 |
+
- [7. Summary & Recommendations](#7-summary--recommendations)
|
| 75 |
+
- [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
|
| 76 |
+
- [Visualizations Index](#visualizations-index)
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
## 1. Tokenizer Evaluation
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
|
| 89 |
+
### Results
|
| 90 |
+
|
| 91 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 92 |
+
|------------|-------------|---------------|----------|--------------|
|
| 93 |
+
| **8k** | 2.981x 🏆 | 2.98 | 1.0627% | 13,080 |
|
| 94 |
+
|
| 95 |
+
### Tokenization Examples
|
| 96 |
+
|
| 97 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
### Key Findings
|
| 101 |
+
|
| 102 |
+
- **Best Compression:** 8k achieves 2.981x compression
|
| 103 |
+
- **Lowest UNK Rate:** 8k with 1.0627% unknown tokens
|
| 104 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 105 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 106 |
+
|
| 107 |
+
---
|
| 108 |
+
## 2. N-gram Model Evaluation
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
|
| 116 |
+
### Results
|
| 117 |
+
|
| 118 |
+
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 119 |
+
|--------|---------|------------|---------|----------------|------------------|-------------------|
|
| 120 |
+
| **2-gram** | Word | 17 | 4.12 | 22 | 100.0% | 100.0% |
|
| 121 |
+
| **2-gram** | Subword | 286 | 8.16 | 589 | 60.1% | 100.0% |
|
| 122 |
+
| **3-gram** | Word | 13 | 3.74 | 23 | 100.0% | 100.0% |
|
| 123 |
+
| **3-gram** | Subword | 1,258 | 10.30 | 2,328 | 29.4% | 80.5% |
|
| 124 |
+
| **4-gram** | Word | 16 | 4.02 | 29 | 100.0% | 100.0% |
|
| 125 |
+
| **4-gram** | Subword | 2,459 | 11.26 | 4,677 | 22.5% | 61.8% |
|
| 126 |
+
| **5-gram** | Word | 9 🏆 | 3.17 | 15 | 100.0% | 100.0% |
|
| 127 |
+
| **5-gram** | Subword | 2,457 | 11.26 | 4,586 | 24.2% | 59.4% |
|
| 128 |
+
|
| 129 |
+
### Top 5 N-grams by Size
|
| 130 |
+
|
| 131 |
+
**2-grams (Word):**
|
| 132 |
+
|
| 133 |
+
| Rank | N-gram | Count |
|
| 134 |
+
|------|--------|-------|
|
| 135 |
+
| 1 | `nowy dwór` | 35 |
|
| 136 |
+
| 2 | `dwór królewski` | 35 |
|
| 137 |
+
| 3 | `na uuthemba` | 31 |
|
| 138 |
+
| 4 | `omuntu kehe` | 29 |
|
| 139 |
+
| 5 | `oku na` | 29 |
|
| 140 |
+
|
| 141 |
+
**3-grams (Word):**
|
| 142 |
+
|
| 143 |
+
| Rank | N-gram | Count |
|
| 144 |
+
|------|--------|-------|
|
| 145 |
+
| 1 | `nowy dwór królewski` | 35 |
|
| 146 |
+
| 2 | `omuntu kehe oku` | 27 |
|
| 147 |
+
| 3 | `kehe oku na` | 27 |
|
| 148 |
+
| 4 | `oku na uuthemba` | 26 |
|
| 149 |
+
| 5 | `zh min nan` | 12 |
|
| 150 |
+
|
| 151 |
+
**4-grams (Word):**
|
| 152 |
+
|
| 153 |
+
| Rank | N-gram | Count |
|
| 154 |
+
|------|--------|-------|
|
| 155 |
+
| 1 | `omuntu kehe oku na` | 27 |
|
| 156 |
+
| 2 | `kehe oku na uuthemba` | 24 |
|
| 157 |
+
| 3 | `nekofungama ar sefala angubo` | 3 |
|
| 158 |
+
| 4 | `harranga nekofungama ar sefala` | 3 |
|
| 159 |
+
| 5 | `ast harranga nekofungama ar` | 3 |
|
| 160 |
+
|
| 161 |
+
**5-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `omuntu kehe oku na uuthemba` | 24 |
|
| 166 |
+
| 2 | `harranga nekofungama ar sefala angubo` | 3 |
|
| 167 |
+
| 3 | `ast harranga nekofungama ar sefala` | 3 |
|
| 168 |
+
| 4 | `nekofungama ar sefala angubo andusat` | 3 |
|
| 169 |
+
| 5 | `kape na nando omuntu e` | 3 |
|
| 170 |
+
|
| 171 |
+
**2-grams (Subword):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `a _` | 1,406 |
|
| 176 |
+
| 2 | `a n` | 583 |
|
| 177 |
+
| 3 | `e _` | 427 |
|
| 178 |
+
| 4 | `n g` | 419 |
|
| 179 |
+
| 5 | `e n` | 411 |
|
| 180 |
+
|
| 181 |
+
**3-grams (Subword):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `i a _` | 277 |
|
| 186 |
+
| 2 | `n a _` | 275 |
|
| 187 |
+
| 3 | `e r s` | 197 |
|
| 188 |
+
| 4 | `e n _` | 193 |
|
| 189 |
+
| 5 | `t e r` | 177 |
|
| 190 |
+
|
| 191 |
+
**4-grams (Subword):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `e r s e` | 175 |
|
| 196 |
+
| 2 | `t e r s` | 169 |
|
| 197 |
+
| 3 | `r s e n` | 169 |
|
| 198 |
+
| 4 | `e t e r` | 169 |
|
| 199 |
+
| 5 | `u e t e` | 168 |
|
| 200 |
+
|
| 201 |
+
**5-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `e r s e n` | 169 |
|
| 206 |
+
| 2 | `t e r s e` | 169 |
|
| 207 |
+
| 3 | `u e t e r` | 168 |
|
| 208 |
+
| 4 | `e t e r s` | 168 |
|
| 209 |
+
| 5 | `r s e n _` | 167 |
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
### Key Findings
|
| 213 |
+
|
| 214 |
+
- **Best Perplexity:** 5-gram (word) with 9
|
| 215 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 216 |
+
- **Coverage:** Top-1000 patterns cover ~59% of corpus
|
| 217 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 218 |
+
|
| 219 |
+
---
|
| 220 |
+
## 3. Markov Chain Evaluation
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
|
| 228 |
+
### Results
|
| 229 |
+
|
| 230 |
+
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 231 |
+
|---------|---------|-------------|------------|------------------|-----------------|----------------|
|
| 232 |
+
| **1** | Word | 0.4936 | 1.408 | 2.30 | 2,515 | 50.6% |
|
| 233 |
+
| **1** | Subword | 0.5935 | 1.509 | 3.07 | 1,104 | 40.6% |
|
| 234 |
+
| **2** | Word | 0.0333 | 1.023 | 1.06 | 5,756 | 96.7% |
|
| 235 |
+
| **2** | Subword | 0.4561 | 1.372 | 2.43 | 3,389 | 54.4% |
|
| 236 |
+
| **3** | Word | 0.0092 | 1.006 | 1.02 | 6,060 | 99.1% |
|
| 237 |
+
| **3** | Subword | 0.4100 | 1.329 | 1.84 | 8,218 | 59.0% |
|
| 238 |
+
| **4** | Word | 0.0036 🏆 | 1.002 | 1.01 | 6,160 | 99.6% |
|
| 239 |
+
| **4** | Subword | 0.2372 | 1.179 | 1.40 | 15,074 | 76.3% |
|
| 240 |
+
|
| 241 |
+
### Generated Text Samples (Word-based)
|
| 242 |
+
|
| 243 |
+
Below are text samples generated from each word-based Markov chain model:
|
| 244 |
+
|
| 245 |
+
**Context Size 1:**
|
| 246 |
+
|
| 247 |
+
1. `uetersen nds asien li azië nn geografi sw jamhuri ya uvuneka kutya otashi gandja uuthemba wokugamenw...`
|
| 248 |
+
2. `wikipedia id turki sq uetersen tl turkiya crh asiya hak asasi manusia io kulturo es uetersen`
|
| 249 |
+
3. `na nando omuntu kehe ngoka ha baibûl hak ngùi kî pak khô haw ākia he אנגלית`
|
| 250 |
+
|
| 251 |
+
**Context Size 2:**
|
| 252 |
+
|
| 253 |
+
1. `nowy dwór królewski tr nowy dwór królewski en nowy dwór królewski nn nowy dwór królewski pt nowy`
|
| 254 |
+
2. `dwór królewski en nowy dwór królewski nn nowy dwór królewski en nowy dwór królewski et nowy dwór`
|
| 255 |
+
3. `na uuthemba womuthika omwaanawa gwonkalamwenyo memanguluko iya andjagana uuna iilyo yiilongo ya uvun...`
|
| 256 |
+
|
| 257 |
+
**Context Size 3:**
|
| 258 |
+
|
| 259 |
+
1. `nowy dwór królewski ff nowy dwór królewski tum nowy dwór królewski pl nowy dwór królewski de nowy dw...`
|
| 260 |
+
2. `kehe oku na uuthemba womuthika omwaanawa gwonkalamwenyo gwa yeleka uukolele nonkalo ombwanawa ye mwe...`
|
| 261 |
+
3. `omuntu kehe oku na uuthemba welandulathano iyopankalathano nolyomuuyuni moka uuthemba nemanguluko nd...`
|
| 262 |
+
|
| 263 |
+
**Context Size 4:**
|
| 264 |
+
|
| 265 |
+
1. `omuntu kehe oku na uuthemba wokutota nokuninga oshilyo shehangano iyaaniilonga opo a gamene uuwanawa...`
|
| 266 |
+
2. `kehe oku na uuthemba womafutilo ngele okwa kulupa nenge a mona oshiponga moshilongo she nenge paigwa...`
|
| 267 |
+
3. `ar sefala angubo andusat ace bahsa inggréh af engels ak english als englische sprache am እንግሊዝኛ an i...`
|
| 268 |
+
|
| 269 |
+
|
| 270 |
+
### Generated Text Samples (Subword-based)
|
| 271 |
+
|
| 272 |
+
Below are text samples generated from each subword-based Markov chain model:
|
| 273 |
+
|
| 274 |
+
**Context Size 1:**
|
| 275 |
+
|
| 276 |
+
1. `_inoghe_अधिकारों_sk:`
|
| 277 |
+
2. `a:tesen_ndulidur`
|
| 278 |
+
3. `entueneburs'at_b`
|
| 279 |
+
|
| 280 |
+
**Context Size 2:**
|
| 281 |
+
|
| 282 |
+
1. `a_a_vica_op_an_uu`
|
| 283 |
+
2. `an_she:ויקיפדיה_l`
|
| 284 |
+
3. `e_papublisencia_k`
|
| 285 |
+
|
| 286 |
+
**Context Size 3:**
|
| 287 |
+
|
| 288 |
+
1. `ia_bm:hadan_mwl:bi`
|
| 289 |
+
2. `na_nga_nomakwa_uvu`
|
| 290 |
+
3. `ersen_wu_li:una_oy`
|
| 291 |
+
|
| 292 |
+
**Context Size 4:**
|
| 293 |
+
|
| 294 |
+
1. `ersen_wuukwa,_a_kut`
|
| 295 |
+
2. `etersen_su:wikipiki`
|
| 296 |
+
3. `tersele_nokoompumbi`
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
### Key Findings
|
| 300 |
+
|
| 301 |
+
- **Best Predictability:** Context-4 (word) with 99.6% predictability
|
| 302 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 303 |
+
- **Memory Trade-off:** Larger contexts require more storage (15,074 contexts)
|
| 304 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 305 |
+
|
| 306 |
+
---
|
| 307 |
+
## 4. Vocabulary Analysis
|
| 308 |
+
|
| 309 |
+

|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
|
| 315 |
+
### Statistics
|
| 316 |
+
|
| 317 |
+
| Metric | Value |
|
| 318 |
+
|--------|-------|
|
| 319 |
+
| Vocabulary Size | 648 |
|
| 320 |
+
| Total Tokens | 4,436 |
|
| 321 |
+
| Mean Frequency | 6.85 |
|
| 322 |
+
| Median Frequency | 4 |
|
| 323 |
+
| Frequency Std Dev | 10.46 |
|
| 324 |
+
|
| 325 |
+
### Most Common Words
|
| 326 |
+
|
| 327 |
+
| Rank | Word | Frequency |
|
| 328 |
+
|------|------|-----------|
|
| 329 |
+
| 1 | uetersen | 168 |
|
| 330 |
+
| 2 | wikipedia | 87 |
|
| 331 |
+
| 3 | na | 78 |
|
| 332 |
+
| 4 | ghana | 71 |
|
| 333 |
+
| 5 | uuthemba | 50 |
|
| 334 |
+
| 6 | asia | 49 |
|
| 335 |
+
| 7 | pigazzano | 47 |
|
| 336 |
+
| 8 | zh | 44 |
|
| 337 |
+
| 9 | de | 42 |
|
| 338 |
+
| 10 | kehe | 37 |
|
| 339 |
+
|
| 340 |
+
### Least Common Words (from vocabulary)
|
| 341 |
+
|
| 342 |
+
| Rank | Word | Frequency |
|
| 343 |
+
|------|------|-----------|
|
| 344 |
+
| 1 | turecko | 2 |
|
| 345 |
+
| 2 | τουρκία | 2 |
|
| 346 |
+
| 3 | tuirc | 2 |
|
| 347 |
+
| 4 | तुर्किये | 2 |
|
| 348 |
+
| 5 | germany | 2 |
|
| 349 |
+
| 6 | ঘানা | 2 |
|
| 350 |
+
| 7 | thumb | 2 |
|
| 351 |
+
| 8 | italy | 2 |
|
| 352 |
+
| 9 | piasensa | 2 |
|
| 353 |
+
| 10 | двор | 2 |
|
| 354 |
+
|
| 355 |
+
### Zipf's Law Analysis
|
| 356 |
+
|
| 357 |
+
| Metric | Value |
|
| 358 |
+
|--------|-------|
|
| 359 |
+
| Zipf Coefficient | 0.8074 |
|
| 360 |
+
| R² (Goodness of Fit) | 0.939699 |
|
| 361 |
+
| Adherence Quality | **excellent** |
|
| 362 |
+
|
| 363 |
+
### Coverage Analysis
|
| 364 |
+
|
| 365 |
+
| Top N Words | Coverage |
|
| 366 |
+
|-------------|----------|
|
| 367 |
+
| Top 100 | 49.3% |
|
| 368 |
+
| Top 1,000 | 0.0% |
|
| 369 |
+
| Top 5,000 | 0.0% |
|
| 370 |
+
| Top 10,000 | 0.0% |
|
| 371 |
+
|
| 372 |
+
### Key Findings
|
| 373 |
+
|
| 374 |
+
- **Zipf Compliance:** R²=0.9397 indicates excellent adherence to Zipf's law
|
| 375 |
+
- **High Frequency Dominance:** Top 100 words cover 49.3% of corpus
|
| 376 |
+
- **Long Tail:** -9,352 words needed for remaining 100.0% coverage
|
| 377 |
+
|
| 378 |
+
---
|
| 379 |
+
## 5. Word Embeddings Evaluation
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
### 5.1 Cross-Lingual Alignment
|
| 391 |
+
|
| 392 |
+

|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
### 5.2 Model Comparison
|
| 396 |
+
|
| 397 |
+
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
|
| 398 |
+
|-------|-----------|----------|------------------|---------------|----------------|
|
| 399 |
+
| **mono_32d** | 32 | 0.0034 🏆 | 0.0000 | N/A | N/A |
|
| 400 |
+
| **mono_64d** | 64 | 0.0001 | 0.0000 | N/A | N/A |
|
| 401 |
+
| **mono_128d** | 128 | 0.0000 | 0.0000 | N/A | N/A |
|
| 402 |
+
| **aligned_32d** | 32 | 0.0034 | 0.0000 | 0.0000 | 0.0000 |
|
| 403 |
+
| **aligned_64d** | 64 | 0.0001 | 0.0000 | 0.0000 | 0.0000 |
|
| 404 |
+
| **aligned_128d** | 128 | 0.0000 | 0.0000 | 0.0000 | 0.0000 |
|
| 405 |
+
|
| 406 |
+
### Key Findings
|
| 407 |
+
|
| 408 |
+
- **Best Isotropy:** mono_32d with 0.0034 (more uniform distribution)
|
| 409 |
+
- **Semantic Density:** Average pairwise similarity of 0.0000. Lower values indicate better semantic separation.
|
| 410 |
+
- **Alignment Quality:** Aligned models evaluated but achieved 0% recall.
|
| 411 |
+
- **Recommendation:** 128d aligned for best cross-lingual performance
|
| 412 |
+
|
| 413 |
+
---
|
| 414 |
+
## 6. Morphological Analysis (Experimental)
|
| 415 |
+
|
| 416 |
+
This section presents an automated morphological analysis derived from the statistical divergence between word-level and subword-level models. By analyzing where subword predictability spikes and where word-level coverage fails, we can infer linguistic structures without supervised data.
|
| 417 |
+
|
| 418 |
+
### 6.1 Productivity & Complexity
|
| 419 |
+
|
| 420 |
+
| Metric | Value | Interpretation | Recommendation |
|
| 421 |
+
|--------|-------|----------------|----------------|
|
| 422 |
+
| Productivity Index | **1.124** | High morphological productivity | Reliable analysis |
|
| 423 |
+
| Idiomaticity Gap | **0.683** | High formulaic/idiomatic content | - |
|
| 424 |
+
|
| 425 |
+
### 6.2 Affix Inventory (Productive Units)
|
| 426 |
+
|
| 427 |
+
These are the most productive prefixes and suffixes identified by sampling the vocabulary for global substitutability patterns. A unit is considered an affix if stripping it leaves a valid stem that appears in other contexts.
|
| 428 |
+
|
| 429 |
+
#### Productive Prefixes
|
| 430 |
+
| Prefix | Examples |
|
| 431 |
+
|--------|----------|
|
| 432 |
+
|
| 433 |
+
#### Productive Suffixes
|
| 434 |
+
| Suffix | Examples |
|
| 435 |
+
|--------|----------|
|
| 436 |
+
| `-a` | mpoka, ehyia, kaa |
|
| 437 |
+
|
| 438 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 439 |
+
|
| 440 |
+
Bound stems are high-frequency subword units that are semantically cohesive but rarely appear as standalone words. These often correspond to the 'core' of a word that requires inflection or derivation to be valid.
|
| 441 |
+
|
| 442 |
+
*No significant bound stems detected.*
|
| 443 |
+
|
| 444 |
+
|
| 445 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 446 |
+
|
| 447 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 448 |
+
|
| 449 |
+
*No significant affix co-occurrences detected.*
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 453 |
+
|
| 454 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 455 |
+
|
| 456 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 457 |
+
|------|-----------------|------------|------|
|
| 458 |
+
| universala | **`universal-a`** | 4.5 | `universal` |
|
| 459 |
+
| geografia | **`geografi-a`** | 4.5 | `geografi` |
|
| 460 |
+
| republika | **`republik-a`** | 4.5 | `republik` |
|
| 461 |
+
| kwatelela | **`kwatelel-a`** | 1.5 | `kwatelel` |
|
| 462 |
+
| manguluka | **`manguluk-a`** | 1.5 | `manguluk` |
|
| 463 |
+
| wikipedya | **`wikipedy-a`** | 1.5 | `wikipedy` |
|
| 464 |
+
| geographia | **`geographi-a`** | 1.5 | `geographi` |
|
| 465 |
+
|
| 466 |
+
### 6.6 Linguistic Interpretation
|
| 467 |
+
|
| 468 |
+
> **Automated Insight:**
|
| 469 |
+
The language Ndonga shows moderate morphological complexity. There is a balanced trade-off between whole-word memorization and subword composition.
|
| 470 |
+
|
| 471 |
+
> **Note on Idiomaticity:** The high Idiomaticity Gap suggests a large number of frequent multi-word expressions or formulaic sequences that are statistically distinct from their component parts.
|
| 472 |
+
|
| 473 |
+
---
|
| 474 |
+
## 7. Summary & Recommendations
|
| 475 |
+
|
| 476 |
+

|
| 477 |
+
|
| 478 |
+
### Production Recommendations
|
| 479 |
+
|
| 480 |
+
| Component | Recommended | Rationale |
|
| 481 |
+
|-----------|-------------|-----------|
|
| 482 |
+
| Tokenizer | **8k BPE** | Best compression (2.98x) |
|
| 483 |
+
| N-gram | **5-gram** | Lowest perplexity (9) |
|
| 484 |
+
| Markov | **Context-4** | Highest predictability (99.6%) |
|
| 485 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
---
|
| 489 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 490 |
+
|
| 491 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 492 |
+
|
| 493 |
+
### Tokenizer Metrics
|
| 494 |
+
|
| 495 |
+
**Compression Ratio**
|
| 496 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 497 |
+
>
|
| 498 |
+
> *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.
|
| 499 |
+
>
|
| 500 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 501 |
+
|
| 502 |
+
**Average Token Length (Fertility)**
|
| 503 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 504 |
+
>
|
| 505 |
+
> *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.
|
| 506 |
+
>
|
| 507 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 508 |
+
|
| 509 |
+
**Unknown Token Rate (OOV Rate)**
|
| 510 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 511 |
+
>
|
| 512 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 513 |
+
>
|
| 514 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 515 |
+
|
| 516 |
+
### N-gram Model Metrics
|
| 517 |
+
|
| 518 |
+
**Perplexity**
|
| 519 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 520 |
+
>
|
| 521 |
+
> *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.
|
| 522 |
+
>
|
| 523 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 524 |
+
|
| 525 |
+
**Entropy**
|
| 526 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 527 |
+
>
|
| 528 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 529 |
+
>
|
| 530 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 531 |
+
|
| 532 |
+
**Coverage (Top-K)**
|
| 533 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 534 |
+
>
|
| 535 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 536 |
+
>
|
| 537 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 538 |
+
|
| 539 |
+
### Markov Chain Metrics
|
| 540 |
+
|
| 541 |
+
**Average Entropy**
|
| 542 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 543 |
+
>
|
| 544 |
+
> *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).
|
| 545 |
+
>
|
| 546 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 547 |
+
|
| 548 |
+
**Branching Factor**
|
| 549 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 550 |
+
>
|
| 551 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 552 |
+
>
|
| 553 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 554 |
+
|
| 555 |
+
**Predictability**
|
| 556 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 557 |
+
>
|
| 558 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 559 |
+
>
|
| 560 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 561 |
+
|
| 562 |
+
### Vocabulary & Zipf's Law Metrics
|
| 563 |
+
|
| 564 |
+
**Zipf's Coefficient**
|
| 565 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 566 |
+
>
|
| 567 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 568 |
+
>
|
| 569 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 570 |
+
|
| 571 |
+
**R² (Coefficient of Determination)**
|
| 572 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 573 |
+
>
|
| 574 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 575 |
+
>
|
| 576 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 577 |
+
|
| 578 |
+
**Vocabulary Coverage**
|
| 579 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 580 |
+
>
|
| 581 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 582 |
+
>
|
| 583 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 584 |
+
|
| 585 |
+
### Word Embedding Metrics
|
| 586 |
+
|
| 587 |
+
**Isotropy**
|
| 588 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 589 |
+
>
|
| 590 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 591 |
+
>
|
| 592 |
+
> *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.
|
| 593 |
+
|
| 594 |
+
**Average Norm**
|
| 595 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 596 |
+
>
|
| 597 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 598 |
+
>
|
| 599 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 600 |
+
|
| 601 |
+
**Cosine Similarity**
|
| 602 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 603 |
+
>
|
| 604 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 605 |
+
>
|
| 606 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 607 |
+
|
| 608 |
+
**t-SNE Visualization**
|
| 609 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 610 |
+
>
|
| 611 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 612 |
+
>
|
| 613 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 614 |
+
|
| 615 |
+
### General Interpretation Guidelines
|
| 616 |
+
|
| 617 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 618 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 619 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 620 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 621 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 622 |
+
|
| 623 |
+
|
| 624 |
+
### Visualizations Index
|
| 625 |
+
|
| 626 |
+
| Visualization | Description |
|
| 627 |
+
|---------------|-------------|
|
| 628 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 629 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 630 |
+
| Tokenizer OOV | Unknown token rates |
|
| 631 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 632 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 633 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 634 |
+
| N-gram Coverage | Top pattern coverage |
|
| 635 |
+
| N-gram Unique | Unique n-gram counts |
|
| 636 |
+
| Markov Entropy | Entropy by context size |
|
| 637 |
+
| Markov Branching | Branching factor by context |
|
| 638 |
+
| Markov Contexts | Unique context counts |
|
| 639 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 640 |
+
| Vocab Frequency | Word frequency distribution |
|
| 641 |
+
| Top 20 Words | Most frequent words |
|
| 642 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 643 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 644 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 645 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 646 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 647 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 648 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 649 |
+
| Position Encoding | Encoding method comparison |
|
| 650 |
+
| Model Sizes | Storage requirements |
|
| 651 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 652 |
+
|
| 653 |
+
---
|
| 654 |
+
## About This Project
|
| 655 |
+
|
| 656 |
+
### Data Source
|
| 657 |
+
|
| 658 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 659 |
+
|
| 660 |
+
### Project
|
| 661 |
+
|
| 662 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 663 |
+
|
| 664 |
+
### Maintainer
|
| 665 |
+
|
| 666 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 667 |
+
|
| 668 |
+
### Citation
|
| 669 |
+
|
| 670 |
+
If you use these models in your research, please cite:
|
| 671 |
+
|
| 672 |
+
```bibtex
|
| 673 |
+
@misc{wikilangs2025,
|
| 674 |
+
author = {Kamali, Omar},
|
| 675 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 676 |
+
year = {2025},
|
| 677 |
+
doi = {10.5281/zenodo.18073153},
|
| 678 |
+
publisher = {Zenodo},
|
| 679 |
+
url = {https://huggingface.co/wikilangs}
|
| 680 |
+
institution = {Omneity Labs}
|
| 681 |
+
}
|
| 682 |
+
```
|
| 683 |
+
|
| 684 |
+
### License
|
| 685 |
+
|
| 686 |
+
MIT License - Free for academic and commercial use.
|
| 687 |
+
|
| 688 |
+
### Links
|
| 689 |
+
|
| 690 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 691 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 692 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 693 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 694 |
+
- 🤝 Sponsor: [Featherless AI](https://featherless.ai)
|
| 695 |
+
---
|
| 696 |
+
*Generated by Wikilangs Models Pipeline*
|
| 697 |
+
|
| 698 |
+
*Report Date: 2026-01-10 14:50:35*
|
models/embeddings/aligned/ng_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34bf2a399fd128262456f17fe7df20a1e629cc9c5143947550b6d3d9cd66c209
|
| 3 |
+
size 1024056189
|
models/embeddings/aligned/ng_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 128, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/ng_128d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e051c021f38d27c84ab4d6df44c89e9fbf3706c78ffd6fdf9b8d3763c34e7c5
|
| 3 |
+
size 65664
|
models/embeddings/aligned/ng_128d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 28,
|
| 7 |
+
"vocab_size": 54
|
| 8 |
+
}
|
models/embeddings/aligned/ng_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa58d081dda754238780d73dc92ccd9120de5c25f3e7700818762f81f1912421
|
| 3 |
+
size 256014717
|
models/embeddings/aligned/ng_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 32, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/ng_32d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cf7f47d8f65cbe8641d49e2139bec4461ffe42210102fe78b31e529c0f04a39
|
| 3 |
+
size 4224
|
models/embeddings/aligned/ng_32d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 28,
|
| 7 |
+
"vocab_size": 54
|
| 8 |
+
}
|
models/embeddings/aligned/ng_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9408eae8053e83895873acb3dc744c69420075e2bdbd1f96b4425f7b1ad9e5f1
|
| 3 |
+
size 512028541
|
models/embeddings/aligned/ng_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 64, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/ng_64d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a53262ac6a66e2ba0fb6f696fa834f7c1926c9d514fbceeb93869590b4c9efa4
|
| 3 |
+
size 16512
|
models/embeddings/aligned/ng_64d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 28,
|
| 7 |
+
"vocab_size": 54
|
| 8 |
+
}
|
models/embeddings/monolingual/ng_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34bf2a399fd128262456f17fe7df20a1e629cc9c5143947550b6d3d9cd66c209
|
| 3 |
+
size 1024056189
|
models/embeddings/monolingual/ng_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ng_128d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 128,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 54
|
| 16 |
+
}
|
models/embeddings/monolingual/ng_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa58d081dda754238780d73dc92ccd9120de5c25f3e7700818762f81f1912421
|
| 3 |
+
size 256014717
|
models/embeddings/monolingual/ng_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ng_32d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 32,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 54
|
| 16 |
+
}
|
models/embeddings/monolingual/ng_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9408eae8053e83895873acb3dc744c69420075e2bdbd1f96b4425f7b1ad9e5f1
|
| 3 |
+
size 512028541
|
models/embeddings/monolingual/ng_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ng", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ng_64d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 64,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 54
|
| 16 |
+
}
|
models/subword_markov/ng_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:297baf033d4f418727d23b17b2108aba4409f4ea17bae25bd29f1580df216092
|
| 3 |
+
size 33198
|
models/subword_markov/ng_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 1104,
|
| 6 |
+
"total_transitions": 38341
|
| 7 |
+
}
|
models/subword_markov/ng_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f30b0fa204f3f0a19f033013fa4c7884427471a22cbab856e5e408f33f630da6
|
| 3 |
+
size 75678
|
models/subword_markov/ng_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 3389,
|
| 6 |
+
"total_transitions": 38324
|
| 7 |
+
}
|
models/subword_markov/ng_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47216f438bc6170fc0f32910e081ffaf456b5de4c17ffca2533aa3520fd1facb
|
| 3 |
+
size 144981
|
models/subword_markov/ng_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 8218,
|
| 6 |
+
"total_transitions": 38307
|
| 7 |
+
}
|
models/subword_markov/ng_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb3e5cb24aabaaacc0f8e8680e997948f9312aba47d7375aee3edf8ca4e07335
|
| 3 |
+
size 229202
|
models/subword_markov/ng_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 15074,
|
| 6 |
+
"total_transitions": 38290
|
| 7 |
+
}
|
models/subword_ngram/ng_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3799c029a3bf65b745ec32c27679ee1a5d3843f53b46739f065ec13d802b1729
|
| 3 |
+
size 7920
|
models/subword_ngram/ng_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_ngrams": 589,
|
| 6 |
+
"total_ngrams": 38341
|
| 7 |
+
}
|
models/subword_ngram/ng_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f090be70859a8466b7bd471c964709db1599df83218c6edddd011139c6ef36f2
|
| 3 |
+
size 24223
|
models/subword_ngram/ng_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_ngrams": 2328,
|
| 6 |
+
"total_ngrams": 38324
|
| 7 |
+
}
|
models/subword_ngram/ng_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c1a682779981406d6788f56d88cae10731da840fbfb06ca0848e91d204759e1
|
| 3 |
+
size 52059
|
models/subword_ngram/ng_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_ngrams": 4677,
|
| 6 |
+
"total_ngrams": 38307
|
| 7 |
+
}
|
models/subword_ngram/ng_5gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:470c9a91a994623fba445802bfc4106d6dcefe3031163d2744104d5977372b72
|
| 3 |
+
size 54535
|
models/subword_ngram/ng_5gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 5,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_ngrams": 4586,
|
| 6 |
+
"total_ngrams": 38290
|
| 7 |
+
}
|
models/tokenizer/ng_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:004c7de7524ff61123c7c67c10ee7f6aa5781b98f2e0b1a5096bd56e82ddbb50
|
| 3 |
+
size 367292
|
models/tokenizer/ng_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ng_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:583c51c99cbd4e09740abcdcc5df7576ce2cc8f7d16aea843b7775033cfdee22
|
| 3 |
+
size 12196
|
models/vocabulary/ng_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ng",
|
| 3 |
+
"vocabulary_size": 648,
|
| 4 |
+
"variant": "full",
|
| 5 |
+
"statistics": {
|
| 6 |
+
"type_token_ratio": 0.39977816510854064,
|
| 7 |
+
"coverage": {
|
| 8 |
+
"top_100": 0.3463793376643955,
|
| 9 |
+
"top_1000": 0.7586753287909999
|
| 10 |
+
},
|
| 11 |
+
"hapax_count": 1875,
|
| 12 |
+
"hapax_ratio": 0.7431629013079667,
|
| 13 |
+
"total_documents": 17
|
| 14 |
+
}
|
| 15 |
+
}
|
models/word_markov/ng_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4976d02f4a3b7f9cc67d5838410cd03eccc8de754cbeed9f8e625b7ca718171
|
| 3 |
+
size 72378
|
models/word_markov/ng_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 2515,
|
| 6 |
+
"total_transitions": 6294
|
| 7 |
+
}
|
models/word_markov/ng_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e32567790fc33a99257fd8adb8e7ad0ce3344ca7d3a3eb520e45837f02b8aa0e
|
| 3 |
+
size 109970
|
models/word_markov/ng_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 5756,
|
| 6 |
+
"total_transitions": 6277
|
| 7 |
+
}
|
models/word_markov/ng_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baacbbfa77ed4700cf8770e496208dc10568de3ddfb7d70f04d448e9c80f629a
|
| 3 |
+
size 129320
|
models/word_markov/ng_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ng",
|
| 5 |
+
"unique_contexts": 6060,
|
| 6 |
+
"total_transitions": 6260
|
| 7 |
+
}
|
models/word_markov/ng_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:895d3a6d2039026439c7f454c74fe99ddf6e0ef21d4295442199e0aefa21c515
|
| 3 |
+
size 141586
|