Upload all models and assets for fat (latest)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +7 -0
- README.md +748 -0
- models/embeddings/aligned/fat_128d.bin +3 -0
- models/embeddings/aligned/fat_128d.meta.json +1 -0
- models/embeddings/aligned/fat_128d.projection.npy +3 -0
- models/embeddings/aligned/fat_128d_metadata.json +8 -0
- models/embeddings/aligned/fat_32d.bin +3 -0
- models/embeddings/aligned/fat_32d.meta.json +1 -0
- models/embeddings/aligned/fat_32d.projection.npy +3 -0
- models/embeddings/aligned/fat_32d_metadata.json +8 -0
- models/embeddings/aligned/fat_64d.bin +3 -0
- models/embeddings/aligned/fat_64d.meta.json +1 -0
- models/embeddings/aligned/fat_64d.projection.npy +3 -0
- models/embeddings/aligned/fat_64d_metadata.json +8 -0
- models/embeddings/monolingual/fat_128d.bin +3 -0
- models/embeddings/monolingual/fat_128d.meta.json +1 -0
- models/embeddings/monolingual/fat_128d_metadata.json +15 -0
- models/embeddings/monolingual/fat_32d.bin +3 -0
- models/embeddings/monolingual/fat_32d.meta.json +1 -0
- models/embeddings/monolingual/fat_32d_metadata.json +15 -0
- models/embeddings/monolingual/fat_64d.bin +3 -0
- models/embeddings/monolingual/fat_64d.meta.json +1 -0
- models/embeddings/monolingual/fat_64d_metadata.json +15 -0
- models/subword_markov/fat_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/fat_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/fat_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/fat_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/fat_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/fat_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/fat_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/fat_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/fat_2gram_subword.parquet +3 -0
- models/subword_ngram/fat_2gram_subword_metadata.json +7 -0
- models/subword_ngram/fat_3gram_subword.parquet +3 -0
- models/subword_ngram/fat_3gram_subword_metadata.json +7 -0
- models/subword_ngram/fat_4gram_subword.parquet +3 -0
- models/subword_ngram/fat_4gram_subword_metadata.json +7 -0
- models/subword_ngram/fat_5gram_subword.parquet +3 -0
- models/subword_ngram/fat_5gram_subword_metadata.json +7 -0
- models/tokenizer/fat_tokenizer_16k.model +3 -0
- models/tokenizer/fat_tokenizer_16k.vocab +0 -0
- models/tokenizer/fat_tokenizer_32k.model +3 -0
- models/tokenizer/fat_tokenizer_32k.vocab +0 -0
- models/tokenizer/fat_tokenizer_64k.model +3 -0
- models/tokenizer/fat_tokenizer_64k.vocab +0 -0
- models/tokenizer/fat_tokenizer_8k.model +3 -0
- models/tokenizer/fat_tokenizer_8k.vocab +0 -0
- models/vocabulary/fat_vocabulary.parquet +3 -0
- models/vocabulary/fat_vocabulary_metadata.json +17 -0
- models/word_markov/fat_markov_ctx1_word.parquet +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ 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
|
| 40 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/tsne_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: fat
|
| 3 |
+
language_name: Fanti
|
| 4 |
+
language_family: atlantic_kwa
|
| 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-atlantic_kwa
|
| 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: 4.360
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.8158
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-04
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Fanti - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Fanti** 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** | 3.878x | 3.88 | 0.0773% | 470,672 |
|
| 94 |
+
| **16k** | 4.117x | 4.12 | 0.0821% | 443,393 |
|
| 95 |
+
| **32k** | 4.264x | 4.27 | 0.0850% | 428,052 |
|
| 96 |
+
| **64k** | 4.360x 🏆 | 4.36 | 0.0870% | 418,619 |
|
| 97 |
+
|
| 98 |
+
### Tokenization Examples
|
| 99 |
+
|
| 100 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 101 |
+
|
| 102 |
+
**Sample 1:** `Bishop Herman Nsɔwdo Skuul, a wɔsan frɛ no BIHECO yɛ mbanyin skuul a ɔwɔ Kpando ...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁bishop ▁her man ▁nsɔwdo ▁skuul , ▁a ▁wɔsan ▁frɛ ▁no ... (+23 more)` | 33 |
|
| 107 |
+
| 16k | `▁bishop ▁herman ▁nsɔwdo ▁skuul , ▁a ▁wɔsan ▁frɛ ▁no ▁bi ... (+22 more)` | 32 |
|
| 108 |
+
| 32k | `▁bishop ▁herman ▁nsɔwdo ▁skuul , ▁a ▁wɔsan ▁frɛ ▁no ▁bi ... (+22 more)` | 32 |
|
| 109 |
+
| 64k | `▁bishop ▁herman ▁nsɔwdo ▁skuul , ▁a ▁wɔsan ▁frɛ ▁no ▁biheco ... (+20 more)` | 30 |
|
| 110 |
+
|
| 111 |
+
**Sample 2:** `St. Monica's Senior High School yɛ mbasiafo nsɔwdo skuul a ɔwɔ Mampong wɔ Esuant...`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁st . ▁monica ' s ▁senior ▁high ▁school ▁yɛ ▁mbasiafo ... (+12 more)` | 22 |
|
| 116 |
+
| 16k | `▁st . ▁monica ' s ▁senior ▁high ▁school ▁yɛ ▁mbasiafo ... (+12 more)` | 22 |
|
| 117 |
+
| 32k | `▁st . ▁monica ' s ▁senior ▁high ▁school ▁yɛ ▁mbasiafo ... (+12 more)` | 22 |
|
| 118 |
+
| 64k | `▁st . ▁monica ' s ▁senior ▁high ▁school ▁yɛ ▁mbasiafo ... (+12 more)` | 22 |
|
| 119 |
+
|
| 120 |
+
**Sample 3:** `Sherry Ayittey (wɔwoo no yɛ Ghananyi biochemist, amanyɛnyi na mbasiafo ntamgyina...`
|
| 121 |
+
|
| 122 |
+
| Vocab | Tokens | Count |
|
| 123 |
+
|-------|--------|-------|
|
| 124 |
+
| 8k | `▁sh er ry ▁ayi t tey ▁( wɔwoo ▁no ▁yɛ ... (+12 more)` | 22 |
|
| 125 |
+
| 16k | `▁sh er ry ▁ayi t tey ▁( wɔwoo ▁no ▁yɛ ... (+10 more)` | 20 |
|
| 126 |
+
| 32k | `▁sherry ▁ayittey ▁( wɔwoo ▁no ▁yɛ ▁ghananyi ▁biochemist , ▁amanyɛnyi ... (+4 more)` | 14 |
|
| 127 |
+
| 64k | `▁sherry ▁ayittey ▁( wɔwoo ▁no ▁yɛ ▁ghananyi ▁biochemist , ▁amanyɛnyi ... (+4 more)` | 14 |
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
### Key Findings
|
| 131 |
+
|
| 132 |
+
- **Best Compression:** 64k achieves 4.360x compression
|
| 133 |
+
- **Lowest UNK Rate:** 8k with 0.0773% unknown tokens
|
| 134 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 135 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 136 |
+
|
| 137 |
+
---
|
| 138 |
+
## 2. N-gram Model Evaluation
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
### Results
|
| 147 |
+
|
| 148 |
+
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 149 |
+
|--------|---------|------------|---------|----------------|------------------|-------------------|
|
| 150 |
+
| **2-gram** | Word | 4,526 | 12.14 | 15,127 | 23.6% | 52.6% |
|
| 151 |
+
| **2-gram** | Subword | 248 🏆 | 7.95 | 1,938 | 67.4% | 99.6% |
|
| 152 |
+
| **3-gram** | Word | 9,962 | 13.28 | 23,467 | 14.2% | 38.0% |
|
| 153 |
+
| **3-gram** | Subword | 1,776 | 10.79 | 15,671 | 30.6% | 75.8% |
|
| 154 |
+
| **4-gram** | Word | 18,783 | 14.20 | 36,546 | 9.7% | 28.4% |
|
| 155 |
+
| **4-gram** | Subword | 7,938 | 12.95 | 70,574 | 17.1% | 48.4% |
|
| 156 |
+
| **5-gram** | Word | 15,862 | 13.95 | 25,853 | 8.7% | 27.5% |
|
| 157 |
+
| **5-gram** | Subword | 21,806 | 14.41 | 152,670 | 11.1% | 34.6% |
|
| 158 |
+
|
| 159 |
+
### Top 5 N-grams by Size
|
| 160 |
+
|
| 161 |
+
**2-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `no mu` | 5,071 |
|
| 166 |
+
| 2 | `mu wɔ` | 3,646 |
|
| 167 |
+
| 3 | `a ɔwɔ` | 3,608 |
|
| 168 |
+
| 4 | `wɔ afe` | 3,273 |
|
| 169 |
+
| 5 | `mu no` | 3,153 |
|
| 170 |
+
|
| 171 |
+
**3-grams (Word):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `wɔ afe mu` | 1,655 |
|
| 176 |
+
| 2 | `a ɔtɔ do` | 1,549 |
|
| 177 |
+
| 3 | `mu wɔ ghana` | 1,277 |
|
| 178 |
+
| 4 | `mantɔw mu wɔ` | 1,012 |
|
| 179 |
+
| 5 | `afe mu no` | 926 |
|
| 180 |
+
|
| 181 |
+
**4-grams (Word):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `mantɔw mu wɔ ghana` | 820 |
|
| 186 |
+
| 2 | `a ɔtɔ do anan` | 604 |
|
| 187 |
+
| 3 | `wɔ afe mu no` | 460 |
|
| 188 |
+
| 4 | `mbrahyɛbagua a ɔtɔ do` | 370 |
|
| 189 |
+
| 5 | `a ogyina hɔ ma` | 356 |
|
| 190 |
+
|
| 191 |
+
**5-grams (Word):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `wɔ mbrahyɛbagua a ɔtɔ do` | 207 |
|
| 196 |
+
| 2 | `a ɔtɔ do anan 4` | 169 |
|
| 197 |
+
| 3 | `a ɔtɔ do anan no` | 167 |
|
| 198 |
+
| 4 | `a ɔtɔ do anan mu` | 155 |
|
| 199 |
+
| 5 | `ghana amansan abatow no mu` | 151 |
|
| 200 |
+
|
| 201 |
+
**2-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `a _` | 136,241 |
|
| 206 |
+
| 2 | `_ a` | 102,913 |
|
| 207 |
+
| 3 | `_ n` | 97,571 |
|
| 208 |
+
| 4 | `a n` | 64,359 |
|
| 209 |
+
| 5 | `o _` | 62,300 |
|
| 210 |
+
|
| 211 |
+
**3-grams (Subword):**
|
| 212 |
+
|
| 213 |
+
| Rank | N-gram | Count |
|
| 214 |
+
|------|--------|-------|
|
| 215 |
+
| 1 | `_ w ɔ` | 39,784 |
|
| 216 |
+
| 2 | `_ a _` | 32,667 |
|
| 217 |
+
| 3 | `n a _` | 32,487 |
|
| 218 |
+
| 4 | `w ɔ _` | 31,620 |
|
| 219 |
+
| 5 | `_ n o` | 30,963 |
|
| 220 |
+
|
| 221 |
+
**4-grams (Subword):**
|
| 222 |
+
|
| 223 |
+
| Rank | N-gram | Count |
|
| 224 |
+
|------|--------|-------|
|
| 225 |
+
| 1 | `_ w ɔ _` | 26,115 |
|
| 226 |
+
| 2 | `_ n o _` | 24,203 |
|
| 227 |
+
| 3 | `_ n a _` | 18,686 |
|
| 228 |
+
| 4 | `_ m u _` | 15,392 |
|
| 229 |
+
| 5 | `_ a _ ɔ` | 13,463 |
|
| 230 |
+
|
| 231 |
+
**5-grams (Subword):**
|
| 232 |
+
|
| 233 |
+
| Rank | N-gram | Count |
|
| 234 |
+
|------|--------|-------|
|
| 235 |
+
| 1 | `g h a n a` | 9,543 |
|
| 236 |
+
| 2 | `_ g h a n` | 9,134 |
|
| 237 |
+
| 3 | `_ w ɔ _ a` | 6,691 |
|
| 238 |
+
| 4 | `_ a _ w ɔ` | 6,509 |
|
| 239 |
+
| 5 | `h a n a _` | 6,384 |
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
### Key Findings
|
| 243 |
+
|
| 244 |
+
- **Best Perplexity:** 2-gram (subword) with 248
|
| 245 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 246 |
+
- **Coverage:** Top-1000 patterns cover ~35% of corpus
|
| 247 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 248 |
+
|
| 249 |
+
---
|
| 250 |
+
## 3. Markov Chain Evaluation
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+
### Results
|
| 259 |
+
|
| 260 |
+
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 261 |
+
|---------|---------|-------------|------------|------------------|-----------------|----------------|
|
| 262 |
+
| **1** | Word | 0.8862 | 1.848 | 5.88 | 39,173 | 11.4% |
|
| 263 |
+
| **1** | Subword | 0.9055 | 1.873 | 6.35 | 857 | 9.5% |
|
| 264 |
+
| **2** | Word | 0.3085 | 1.238 | 1.80 | 229,817 | 69.1% |
|
| 265 |
+
| **2** | Subword | 0.9056 | 1.873 | 5.56 | 5,435 | 9.4% |
|
| 266 |
+
| **3** | Word | 0.1281 | 1.093 | 1.24 | 411,747 | 87.2% |
|
| 267 |
+
| **3** | Subword | 0.8400 | 1.790 | 3.99 | 30,194 | 16.0% |
|
| 268 |
+
| **4** | Word | 0.0556 🏆 | 1.039 | 1.09 | 508,226 | 94.4% |
|
| 269 |
+
| **4** | Subword | 0.6158 | 1.532 | 2.58 | 120,416 | 38.4% |
|
| 270 |
+
|
| 271 |
+
### Generated Text Samples (Word-based)
|
| 272 |
+
|
| 273 |
+
Below are text samples generated from each word-based Markov chain model:
|
| 274 |
+
|
| 275 |
+
**Context Size 1:**
|
| 276 |
+
|
| 277 |
+
1. `a no ono na ɔyɛ hausa kooko ahorow efi etsifi mantɔwmu grace omaboe maame nna ɔko`
|
| 278 |
+
2. `no odzii nyia ɔnye dwodze a na ɔka ho esian wɔ hɔ na ebien nsɔwdo skuul`
|
| 279 |
+
3. `wɔ ɔberɛfɛw mu maa fomena mpasuar wɔ ablekuma west african bush and entrepreneur citation needed wɔk...`
|
| 280 |
+
|
| 281 |
+
**Context Size 2:**
|
| 282 |
+
|
| 283 |
+
1. `no mu a netflix kyerɛwtohɔ no mu no bosoom sanda mu wɔ sunyani polytechnic ɔsanso wɔ mba`
|
| 284 |
+
2. `mu wɔ ghana mbrahyɛbagua ambato mu no wɔpaaw no dɛ house prefect wɔ pickard parker house wɔ`
|
| 285 |
+
3. `a ɔwɔ mpɔtamu hɔ nye pan african forum pan african mbrahyɛbagua no munyi a ɔgyina hɔ ma`
|
| 286 |
+
|
| 287 |
+
**Context Size 3:**
|
| 288 |
+
|
| 289 |
+
1. `wɔ afe mu edwuma namoale yɛ kuadwuma ho ɔbenfo agronomist wɔ n edwuma mu lawyer by profession amanyɛ...`
|
| 290 |
+
2. `a ɔtɔ do anan no mbrahyɛbagua a ɔdzi kan a ɔdzii amanyɛsɛm kuw kɛse bi enyim wɔ ghana`
|
| 291 |
+
3. `mu wɔ ghana onyaa ne bachelor of education abɔdzin krataa wɔ ghana institute of journalism na ɔbɔɔ n`
|
| 292 |
+
|
| 293 |
+
**Context Size 4:**
|
| 294 |
+
|
| 295 |
+
1. `mantɔw mu wɔ ghana wɔ mbrahyɛbagua a ɔtɔ do akrɔn a ɔwɔ fourth republic no mu wɔ ghana dze`
|
| 296 |
+
2. `a ɔtɔ do anan 4ɔ no mbrahyɛ bagua a ɔtɔ do enum 5 wɔ ghana amansin a ɔtɔ do`
|
| 297 |
+
3. `wɔ afe mu no skuul no hyɛase dze hɔn ho hyɛɛ nkɔmbɔdzi na ɔyɛkyerɛ a mu ahyɛse no nhyiamu`
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
### Generated Text Samples (Subword-based)
|
| 301 |
+
|
| 302 |
+
Below are text samples generated from each subword-based Markov chain model:
|
| 303 |
+
|
| 304 |
+
**Context Size 1:**
|
| 305 |
+
|
| 306 |
+
1. `_ahyesak._ɔyinit`
|
| 307 |
+
2. `ana_ɔro_ɔ_muer_f`
|
| 308 |
+
3. `no_a_poonarafamu`
|
| 309 |
+
|
| 310 |
+
**Context Size 2:**
|
| 311 |
+
|
| 312 |
+
1. `a_nyimadzii_yɛ_fo`
|
| 313 |
+
2. `_abagen_yɔsoseens`
|
| 314 |
+
3. `_nna_oso_antakyɛb`
|
| 315 |
+
|
| 316 |
+
**Context Size 3:**
|
| 317 |
+
|
| 318 |
+
1. `_wɔyɛ_gholicturany`
|
| 319 |
+
2. `_a_ɔkyekunyi_nyim_`
|
| 320 |
+
3. `na_ma_yi_no_no_mum`
|
| 321 |
+
|
| 322 |
+
**Context Size 4:**
|
| 323 |
+
|
| 324 |
+
1. `_wɔ_sempɔnhen_ho_ɔs`
|
| 325 |
+
2. `_no_so_boayikuw_no_`
|
| 326 |
+
3. `_na_ɔyɛ_ato_no_ekyi`
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
### Key Findings
|
| 330 |
+
|
| 331 |
+
- **Best Predictability:** Context-4 (word) with 94.4% predictability
|
| 332 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 333 |
+
- **Memory Trade-off:** Larger contexts require more storage (120,416 contexts)
|
| 334 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 335 |
+
|
| 336 |
+
---
|
| 337 |
+
## 4. Vocabulary Analysis
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
|
| 345 |
+
### Statistics
|
| 346 |
+
|
| 347 |
+
| Metric | Value |
|
| 348 |
+
|--------|-------|
|
| 349 |
+
| Vocabulary Size | 18,588 |
|
| 350 |
+
| Total Tokens | 611,715 |
|
| 351 |
+
| Mean Frequency | 32.91 |
|
| 352 |
+
| Median Frequency | 4 |
|
| 353 |
+
| Frequency Std Dev | 474.47 |
|
| 354 |
+
|
| 355 |
+
### Most Common Words
|
| 356 |
+
|
| 357 |
+
| Rank | Word | Frequency |
|
| 358 |
+
|------|------|-----------|
|
| 359 |
+
| 1 | a | 33,761 |
|
| 360 |
+
| 2 | no | 29,750 |
|
| 361 |
+
| 3 | wɔ | 26,234 |
|
| 362 |
+
| 4 | mu | 22,593 |
|
| 363 |
+
| 5 | na | 18,784 |
|
| 364 |
+
| 6 | ghana | 8,469 |
|
| 365 |
+
| 7 | do | 7,315 |
|
| 366 |
+
| 8 | dɛ | 7,230 |
|
| 367 |
+
| 9 | ho | 5,744 |
|
| 368 |
+
| 10 | afe | 5,715 |
|
| 369 |
+
|
| 370 |
+
### Least Common Words (from vocabulary)
|
| 371 |
+
|
| 372 |
+
| Rank | Word | Frequency |
|
| 373 |
+
|------|------|-----------|
|
| 374 |
+
| 1 | tampuli | 2 |
|
| 375 |
+
| 2 | gcpp | 2 |
|
| 376 |
+
| 3 | akomeah | 2 |
|
| 377 |
+
| 4 | miif | 2 |
|
| 378 |
+
| 5 | agyapa | 2 |
|
| 379 |
+
| 6 | sdo | 2 |
|
| 380 |
+
| 7 | dzɛmdzi | 2 |
|
| 381 |
+
| 8 | wta | 2 |
|
| 382 |
+
| 9 | slam | 2 |
|
| 383 |
+
| 10 | excision | 2 |
|
| 384 |
+
|
| 385 |
+
### Zipf's Law Analysis
|
| 386 |
+
|
| 387 |
+
| Metric | Value |
|
| 388 |
+
|--------|-------|
|
| 389 |
+
| Zipf Coefficient | 1.1854 |
|
| 390 |
+
| R² (Goodness of Fit) | 0.994799 |
|
| 391 |
+
| Adherence Quality | **excellent** |
|
| 392 |
+
|
| 393 |
+
### Coverage Analysis
|
| 394 |
+
|
| 395 |
+
| Top N Words | Coverage |
|
| 396 |
+
|-------------|----------|
|
| 397 |
+
| Top 100 | 50.5% |
|
| 398 |
+
| Top 1,000 | 77.9% |
|
| 399 |
+
| Top 5,000 | 92.1% |
|
| 400 |
+
| Top 10,000 | 96.7% |
|
| 401 |
+
|
| 402 |
+
### Key Findings
|
| 403 |
+
|
| 404 |
+
- **Zipf Compliance:** R²=0.9948 indicates excellent adherence to Zipf's law
|
| 405 |
+
- **High Frequency Dominance:** Top 100 words cover 50.5% of corpus
|
| 406 |
+
- **Long Tail:** 8,588 words needed for remaining 3.3% coverage
|
| 407 |
+
|
| 408 |
+
---
|
| 409 |
+
## 5. Word Embeddings Evaluation
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
### 5.1 Cross-Lingual Alignment
|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
### 5.2 Model Comparison
|
| 428 |
+
|
| 429 |
+
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
|
| 430 |
+
|-------|-----------|----------|------------------|---------------|----------------|
|
| 431 |
+
| **mono_32d** | 32 | 0.8158 | 0.3399 | N/A | N/A |
|
| 432 |
+
| **mono_64d** | 64 | 0.6643 | 0.2886 | N/A | N/A |
|
| 433 |
+
| **mono_128d** | 128 | 0.2510 | 0.2768 | N/A | N/A |
|
| 434 |
+
| **aligned_32d** | 32 | 0.8158 🏆 | 0.3415 | 0.0320 | 0.1880 |
|
| 435 |
+
| **aligned_64d** | 64 | 0.6643 | 0.2904 | 0.0540 | 0.2820 |
|
| 436 |
+
| **aligned_128d** | 128 | 0.2510 | 0.2769 | 0.0980 | 0.3500 |
|
| 437 |
+
|
| 438 |
+
### Key Findings
|
| 439 |
+
|
| 440 |
+
- **Best Isotropy:** aligned_32d with 0.8158 (more uniform distribution)
|
| 441 |
+
- **Semantic Density:** Average pairwise similarity of 0.3023. Lower values indicate better semantic separation.
|
| 442 |
+
- **Alignment Quality:** Aligned models achieve up to 9.8% R@1 in cross-lingual retrieval.
|
| 443 |
+
- **Recommendation:** 128d aligned for best cross-lingual performance
|
| 444 |
+
|
| 445 |
+
---
|
| 446 |
+
## 6. Morphological Analysis (Experimental)
|
| 447 |
+
|
| 448 |
+
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.
|
| 449 |
+
|
| 450 |
+
### 6.1 Productivity & Complexity
|
| 451 |
+
|
| 452 |
+
| Metric | Value | Interpretation | Recommendation |
|
| 453 |
+
|--------|-------|----------------|----------------|
|
| 454 |
+
| Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
|
| 455 |
+
| Idiomaticity Gap | **-0.206** | Low formulaic content | - |
|
| 456 |
+
|
| 457 |
+
### 6.2 Affix Inventory (Productive Units)
|
| 458 |
+
|
| 459 |
+
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.
|
| 460 |
+
|
| 461 |
+
#### Productive Prefixes
|
| 462 |
+
| Prefix | Examples |
|
| 463 |
+
|--------|----------|
|
| 464 |
+
|
| 465 |
+
#### Productive Suffixes
|
| 466 |
+
| Suffix | Examples |
|
| 467 |
+
|--------|----------|
|
| 468 |
+
| `-fo` | mamfo, skuulfo, nkontaabufo |
|
| 469 |
+
|
| 470 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 471 |
+
|
| 472 |
+
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.
|
| 473 |
+
|
| 474 |
+
| Stem | Cohesion | Substitutability | Examples |
|
| 475 |
+
|------|----------|------------------|----------|
|
| 476 |
+
| `yerɛ` | 1.92x | 49 contexts | kyerɛ, ɔkyerɛ, ɛkyerɛ |
|
| 477 |
+
| `yina` | 1.87x | 52 contexts | oyina, gyina, nyina |
|
| 478 |
+
| `gyin` | 1.86x | 44 contexts | egyin, gyina, agyin |
|
| 479 |
+
| `wuma` | 1.82x | 38 contexts | dwuma, adwuma, edwuma |
|
| 480 |
+
| `atio` | 1.94x | 17 contexts | ratio, nation, ratios |
|
| 481 |
+
| `dwum` | 1.76x | 22 contexts | dwuma, adwuma, edwuma |
|
| 482 |
+
| `kuul` | 2.22x | 11 contexts | skuul, skuuls, skuula |
|
| 483 |
+
| `tion` | 1.78x | 17 contexts | nation, action, option |
|
| 484 |
+
| `abat` | 1.97x | 11 contexts | abata, abato, abatoɔ |
|
| 485 |
+
| `bato` | 1.93x | 11 contexts | abato, ambato, abatoɔ |
|
| 486 |
+
| `brah` | 2.28x | 5 contexts | debrah, ibrahim, mbrahyɛ |
|
| 487 |
+
| `pany` | 1.96x | 7 contexts | panyin, mpanyin, opanyin |
|
| 488 |
+
|
| 489 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 490 |
+
|
| 491 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 492 |
+
|
| 493 |
+
*No significant affix co-occurrences detected.*
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 497 |
+
|
| 498 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 499 |
+
|
| 500 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 501 |
+
|------|-----------------|------------|------|
|
| 502 |
+
| semeiskiefo | **`semeiskie-fo`** | 4.5 | `semeiskie` |
|
| 503 |
+
| abedziekyirfo | **`abedziekyir-fo`** | 4.5 | `abedziekyir` |
|
| 504 |
+
| britainfo | **`britain-fo`** | 4.5 | `britain` |
|
| 505 |
+
| finlandfo | **`finland-fo`** | 4.5 | `finland` |
|
| 506 |
+
| ekyingyefo | **`ekyingye-fo`** | 4.5 | `ekyingye` |
|
| 507 |
+
| mpanyinfo | **`mpanyin-fo`** | 4.5 | `mpanyin` |
|
| 508 |
+
| edwindzefo | **`edwindze-fo`** | 4.5 | `edwindze` |
|
| 509 |
+
| albaniafo | **`albania-fo`** | 4.5 | `albania` |
|
| 510 |
+
| turkmenfo | **`turkmen-fo`** | 4.5 | `turkmen` |
|
| 511 |
+
| armeniafo | **`armenia-fo`** | 4.5 | `armenia` |
|
| 512 |
+
| dagombafo | **`dagomba-fo`** | 4.5 | `dagomba` |
|
| 513 |
+
| nyimdzefo | **`nyimdze-fo`** | 4.5 | `nyimdze` |
|
| 514 |
+
| konyimdzifo | **`konyimdzi-fo`** | 4.5 | `konyimdzi` |
|
| 515 |
+
| amandzebɔfo | **`amandzebɔ-fo`** | 4.5 | `amandzebɔ` |
|
| 516 |
+
| akandzifo | **`akandzi-fo`** | 4.5 | `akandzi` |
|
| 517 |
+
|
| 518 |
+
### 6.6 Linguistic Interpretation
|
| 519 |
+
|
| 520 |
+
> **Automated Insight:**
|
| 521 |
+
The language Fanti shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
|
| 522 |
+
|
| 523 |
+
---
|
| 524 |
+
## 7. Summary & Recommendations
|
| 525 |
+
|
| 526 |
+

|
| 527 |
+
|
| 528 |
+
### Production Recommendations
|
| 529 |
+
|
| 530 |
+
| Component | Recommended | Rationale |
|
| 531 |
+
|-----------|-------------|-----------|
|
| 532 |
+
| Tokenizer | **64k BPE** | Best compression (4.36x) |
|
| 533 |
+
| N-gram | **2-gram** | Lowest perplexity (248) |
|
| 534 |
+
| Markov | **Context-4** | Highest predictability (94.4%) |
|
| 535 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
---
|
| 539 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 540 |
+
|
| 541 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 542 |
+
|
| 543 |
+
### Tokenizer Metrics
|
| 544 |
+
|
| 545 |
+
**Compression Ratio**
|
| 546 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 547 |
+
>
|
| 548 |
+
> *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.
|
| 549 |
+
>
|
| 550 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 551 |
+
|
| 552 |
+
**Average Token Length (Fertility)**
|
| 553 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 554 |
+
>
|
| 555 |
+
> *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.
|
| 556 |
+
>
|
| 557 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 558 |
+
|
| 559 |
+
**Unknown Token Rate (OOV Rate)**
|
| 560 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 561 |
+
>
|
| 562 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 563 |
+
>
|
| 564 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 565 |
+
|
| 566 |
+
### N-gram Model Metrics
|
| 567 |
+
|
| 568 |
+
**Perplexity**
|
| 569 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 570 |
+
>
|
| 571 |
+
> *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.
|
| 572 |
+
>
|
| 573 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 574 |
+
|
| 575 |
+
**Entropy**
|
| 576 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 577 |
+
>
|
| 578 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 579 |
+
>
|
| 580 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 581 |
+
|
| 582 |
+
**Coverage (Top-K)**
|
| 583 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 584 |
+
>
|
| 585 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 586 |
+
>
|
| 587 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 588 |
+
|
| 589 |
+
### Markov Chain Metrics
|
| 590 |
+
|
| 591 |
+
**Average Entropy**
|
| 592 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 593 |
+
>
|
| 594 |
+
> *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).
|
| 595 |
+
>
|
| 596 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 597 |
+
|
| 598 |
+
**Branching Factor**
|
| 599 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 600 |
+
>
|
| 601 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 602 |
+
>
|
| 603 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 604 |
+
|
| 605 |
+
**Predictability**
|
| 606 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 607 |
+
>
|
| 608 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 609 |
+
>
|
| 610 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 611 |
+
|
| 612 |
+
### Vocabulary & Zipf's Law Metrics
|
| 613 |
+
|
| 614 |
+
**Zipf's Coefficient**
|
| 615 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 616 |
+
>
|
| 617 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 618 |
+
>
|
| 619 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 620 |
+
|
| 621 |
+
**R² (Coefficient of Determination)**
|
| 622 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 623 |
+
>
|
| 624 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 625 |
+
>
|
| 626 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 627 |
+
|
| 628 |
+
**Vocabulary Coverage**
|
| 629 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 630 |
+
>
|
| 631 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 632 |
+
>
|
| 633 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 634 |
+
|
| 635 |
+
### Word Embedding Metrics
|
| 636 |
+
|
| 637 |
+
**Isotropy**
|
| 638 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 639 |
+
>
|
| 640 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 641 |
+
>
|
| 642 |
+
> *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.
|
| 643 |
+
|
| 644 |
+
**Average Norm**
|
| 645 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 646 |
+
>
|
| 647 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 648 |
+
>
|
| 649 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 650 |
+
|
| 651 |
+
**Cosine Similarity**
|
| 652 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 653 |
+
>
|
| 654 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 655 |
+
>
|
| 656 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 657 |
+
|
| 658 |
+
**t-SNE Visualization**
|
| 659 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 660 |
+
>
|
| 661 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 662 |
+
>
|
| 663 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 664 |
+
|
| 665 |
+
### General Interpretation Guidelines
|
| 666 |
+
|
| 667 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 668 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 669 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 670 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 671 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 672 |
+
|
| 673 |
+
|
| 674 |
+
### Visualizations Index
|
| 675 |
+
|
| 676 |
+
| Visualization | Description |
|
| 677 |
+
|---------------|-------------|
|
| 678 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 679 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 680 |
+
| Tokenizer OOV | Unknown token rates |
|
| 681 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 682 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 683 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 684 |
+
| N-gram Coverage | Top pattern coverage |
|
| 685 |
+
| N-gram Unique | Unique n-gram counts |
|
| 686 |
+
| Markov Entropy | Entropy by context size |
|
| 687 |
+
| Markov Branching | Branching factor by context |
|
| 688 |
+
| Markov Contexts | Unique context counts |
|
| 689 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 690 |
+
| Vocab Frequency | Word frequency distribution |
|
| 691 |
+
| Top 20 Words | Most frequent words |
|
| 692 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 693 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 694 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 695 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 696 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 697 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 698 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 699 |
+
| Position Encoding | Encoding method comparison |
|
| 700 |
+
| Model Sizes | Storage requirements |
|
| 701 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 702 |
+
|
| 703 |
+
---
|
| 704 |
+
## About This Project
|
| 705 |
+
|
| 706 |
+
### Data Source
|
| 707 |
+
|
| 708 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 709 |
+
|
| 710 |
+
### Project
|
| 711 |
+
|
| 712 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 713 |
+
|
| 714 |
+
### Maintainer
|
| 715 |
+
|
| 716 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 717 |
+
|
| 718 |
+
### Citation
|
| 719 |
+
|
| 720 |
+
If you use these models in your research, please cite:
|
| 721 |
+
|
| 722 |
+
```bibtex
|
| 723 |
+
@misc{wikilangs2025,
|
| 724 |
+
author = {Kamali, Omar},
|
| 725 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 726 |
+
year = {2025},
|
| 727 |
+
doi = {10.5281/zenodo.18073153},
|
| 728 |
+
publisher = {Zenodo},
|
| 729 |
+
url = {https://huggingface.co/wikilangs}
|
| 730 |
+
institution = {Omneity Labs}
|
| 731 |
+
}
|
| 732 |
+
```
|
| 733 |
+
|
| 734 |
+
### License
|
| 735 |
+
|
| 736 |
+
MIT License - Free for academic and commercial use.
|
| 737 |
+
|
| 738 |
+
### Links
|
| 739 |
+
|
| 740 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 741 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 742 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 743 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 744 |
+
- 🤝 Sponsor: [Featherless AI](https://featherless.ai)
|
| 745 |
+
---
|
| 746 |
+
*Generated by Wikilangs Models Pipeline*
|
| 747 |
+
|
| 748 |
+
*Report Date: 2026-01-04 14:49:17*
|
models/embeddings/aligned/fat_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3101f5603e20e145fab32a4ee087f6d3f9975635405ce559bc39dddf8a26d5b6
|
| 3 |
+
size 1033726494
|
models/embeddings/aligned/fat_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 128, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/fat_128d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c54c503e40f99adc6305bf8de3b7fe2b7c1fa7709651c342f45b003fbf33849
|
| 3 |
+
size 65664
|
models/embeddings/aligned/fat_128d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3557,
|
| 7 |
+
"vocab_size": 9348
|
| 8 |
+
}
|
models/embeddings/aligned/fat_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d468c945a8f5de82603a3d8a1c0cc9ef9b589a27e8dba2c0f19e718f64cb6ab
|
| 3 |
+
size 258547230
|
models/embeddings/aligned/fat_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 32, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/fat_32d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baef116e2b80e4e53c305e08682fb2d9c851a49b33333b77dc4fe392e7775a91
|
| 3 |
+
size 4224
|
models/embeddings/aligned/fat_32d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3557,
|
| 7 |
+
"vocab_size": 9348
|
| 8 |
+
}
|
models/embeddings/aligned/fat_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abc6e250ae775fdfc8f5c1c20b20b10aeb34afcb8bd36c0198ed129cc1399b21
|
| 3 |
+
size 516940318
|
models/embeddings/aligned/fat_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 64, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/fat_64d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a48cc6234d10d0cb72b2e9884525fab22776e255ddcbb6e999e1ae6350ba01fa
|
| 3 |
+
size 16512
|
models/embeddings/aligned/fat_64d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3557,
|
| 7 |
+
"vocab_size": 9348
|
| 8 |
+
}
|
models/embeddings/monolingual/fat_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3101f5603e20e145fab32a4ee087f6d3f9975635405ce559bc39dddf8a26d5b6
|
| 3 |
+
size 1033726494
|
models/embeddings/monolingual/fat_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/fat_128d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 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 |
+
},
|
| 14 |
+
"vocab_size": 9348
|
| 15 |
+
}
|
models/embeddings/monolingual/fat_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d468c945a8f5de82603a3d8a1c0cc9ef9b589a27e8dba2c0f19e718f64cb6ab
|
| 3 |
+
size 258547230
|
models/embeddings/monolingual/fat_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/fat_32d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 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 |
+
},
|
| 14 |
+
"vocab_size": 9348
|
| 15 |
+
}
|
models/embeddings/monolingual/fat_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abc6e250ae775fdfc8f5c1c20b20b10aeb34afcb8bd36c0198ed129cc1399b21
|
| 3 |
+
size 516940318
|
models/embeddings/monolingual/fat_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "fat", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/fat_64d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 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 |
+
},
|
| 14 |
+
"vocab_size": 9348
|
| 15 |
+
}
|
models/subword_markov/fat_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72b7f3cdd9adad187dbe055e833fd4373e73fd0de09954528c19d8235eb80746
|
| 3 |
+
size 46331
|
models/subword_markov/fat_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_contexts": 857,
|
| 6 |
+
"total_transitions": 3450862
|
| 7 |
+
}
|
models/subword_markov/fat_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba2780feea5c0420ff2df742724d626dc2543fa409ef78ee0ef21406e6e94b4a
|
| 3 |
+
size 254205
|
models/subword_markov/fat_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_contexts": 5435,
|
| 6 |
+
"total_transitions": 3448751
|
| 7 |
+
}
|
models/subword_markov/fat_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79eac25fb67887cc82c0f224087ec080a8662a46fea1cb9260a773707363d197
|
| 3 |
+
size 947588
|
models/subword_markov/fat_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_contexts": 30194,
|
| 6 |
+
"total_transitions": 3446640
|
| 7 |
+
}
|
models/subword_markov/fat_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdfbcd0a5b59a9790d0c3cfca2c2dee7e7e96c6111689e9e51ee1ec359afe64b
|
| 3 |
+
size 2440889
|
models/subword_markov/fat_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_contexts": 120416,
|
| 6 |
+
"total_transitions": 3444529
|
| 7 |
+
}
|
models/subword_ngram/fat_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:522308e55ba26a45ce7a9934cb568006bc642b6cb59e659848fd14c7ba84e0d2
|
| 3 |
+
size 27644
|
models/subword_ngram/fat_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_ngrams": 1938,
|
| 6 |
+
"total_ngrams": 3450862
|
| 7 |
+
}
|
models/subword_ngram/fat_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ef622bfe07a17a12cb8e3b973f4ee505a075f880c3825b02f842b6a2ad3fa7e
|
| 3 |
+
size 185098
|
models/subword_ngram/fat_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_ngrams": 15671,
|
| 6 |
+
"total_ngrams": 3448751
|
| 7 |
+
}
|
models/subword_ngram/fat_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c14d418928b7f679949543ca7a82f597324a1bd076dcbd04d6ae13d7a2bd382d
|
| 3 |
+
size 824552
|
models/subword_ngram/fat_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_ngrams": 70574,
|
| 6 |
+
"total_ngrams": 3446640
|
| 7 |
+
}
|
models/subword_ngram/fat_5gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9f85008e44a1406772c35de7926bcbae72d19239928d342782c51c218b72179
|
| 3 |
+
size 1779222
|
models/subword_ngram/fat_5gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 5,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "fat",
|
| 5 |
+
"unique_ngrams": 152670,
|
| 6 |
+
"total_ngrams": 3444529
|
| 7 |
+
}
|
models/tokenizer/fat_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce51c79c144f7b84fdbabe94bf6400c4510cb0ea13ea8a11763c7c4dae538786
|
| 3 |
+
size 506643
|
models/tokenizer/fat_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/fat_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d28c1dd1f295f3cd9ccb150d47bc210ad5fc8287ef9d92291986c9e2bc3f7f3
|
| 3 |
+
size 784445
|
models/tokenizer/fat_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/fat_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed4248586e2b604163ef403ae5e088f75f76d08eb5c70ae2d119548e5068862d
|
| 3 |
+
size 1302807
|
models/tokenizer/fat_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/fat_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f9d38e9a0f5dc4ddc014edaf46d0c840c07c832e0f87f23399e75ccf8268d2e
|
| 3 |
+
size 373403
|
models/tokenizer/fat_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/fat_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89afac90009a5067f3123341782a6d7ea59c23188de5fe682546dcdec913d31d
|
| 3 |
+
size 308461
|
models/vocabulary/fat_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "fat",
|
| 3 |
+
"vocabulary_size": 18588,
|
| 4 |
+
"variant": "full",
|
| 5 |
+
"statistics": {
|
| 6 |
+
"type_token_ratio": 0.062046640932502374,
|
| 7 |
+
"coverage": {
|
| 8 |
+
"top_100": 0.4884014403119727,
|
| 9 |
+
"top_1000": 0.7532524831465471,
|
| 10 |
+
"top_5000": 0.8912017306515403,
|
| 11 |
+
"top_10000": 0.935389957982994
|
| 12 |
+
},
|
| 13 |
+
"hapax_count": 20648,
|
| 14 |
+
"hapax_ratio": 0.5262514017738811,
|
| 15 |
+
"total_documents": 2111
|
| 16 |
+
}
|
| 17 |
+
}
|
models/word_markov/fat_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eae23e70e29fc6a972489696ad4f7b853829015b908247ab893b39ae9ca07273
|
| 3 |
+
size 1570287
|