Upload all models and assets for gpe (latest)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +7 -0
- README.md +762 -0
- models/embeddings/aligned/gpe_128d.bin +3 -0
- models/embeddings/aligned/gpe_128d.meta.json +1 -0
- models/embeddings/aligned/gpe_128d.projection.npy +3 -0
- models/embeddings/aligned/gpe_128d_metadata.json +8 -0
- models/embeddings/aligned/gpe_32d.bin +3 -0
- models/embeddings/aligned/gpe_32d.meta.json +1 -0
- models/embeddings/aligned/gpe_32d.projection.npy +3 -0
- models/embeddings/aligned/gpe_32d_metadata.json +8 -0
- models/embeddings/aligned/gpe_64d.bin +3 -0
- models/embeddings/aligned/gpe_64d.meta.json +1 -0
- models/embeddings/aligned/gpe_64d.projection.npy +3 -0
- models/embeddings/aligned/gpe_64d_metadata.json +8 -0
- models/embeddings/monolingual/gpe_128d.bin +3 -0
- models/embeddings/monolingual/gpe_128d.meta.json +1 -0
- models/embeddings/monolingual/gpe_128d_metadata.json +15 -0
- models/embeddings/monolingual/gpe_32d.bin +3 -0
- models/embeddings/monolingual/gpe_32d.meta.json +1 -0
- models/embeddings/monolingual/gpe_32d_metadata.json +15 -0
- models/embeddings/monolingual/gpe_64d.bin +3 -0
- models/embeddings/monolingual/gpe_64d.meta.json +1 -0
- models/embeddings/monolingual/gpe_64d_metadata.json +15 -0
- models/subword_markov/gpe_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/gpe_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/gpe_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/gpe_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/gpe_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/gpe_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/gpe_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/gpe_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/gpe_2gram_subword.parquet +3 -0
- models/subword_ngram/gpe_2gram_subword_metadata.json +7 -0
- models/subword_ngram/gpe_3gram_subword.parquet +3 -0
- models/subword_ngram/gpe_3gram_subword_metadata.json +7 -0
- models/subword_ngram/gpe_4gram_subword.parquet +3 -0
- models/subword_ngram/gpe_4gram_subword_metadata.json +7 -0
- models/subword_ngram/gpe_5gram_subword.parquet +3 -0
- models/subword_ngram/gpe_5gram_subword_metadata.json +7 -0
- models/tokenizer/gpe_tokenizer_16k.model +3 -0
- models/tokenizer/gpe_tokenizer_16k.vocab +0 -0
- models/tokenizer/gpe_tokenizer_32k.model +3 -0
- models/tokenizer/gpe_tokenizer_32k.vocab +0 -0
- models/tokenizer/gpe_tokenizer_64k.model +3 -0
- models/tokenizer/gpe_tokenizer_64k.vocab +0 -0
- models/tokenizer/gpe_tokenizer_8k.model +3 -0
- models/tokenizer/gpe_tokenizer_8k.vocab +0 -0
- models/vocabulary/gpe_vocabulary.parquet +3 -0
- models/vocabulary/gpe_vocabulary_metadata.json +17 -0
- models/word_markov/gpe_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/t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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: gpe
|
| 3 |
+
language_name: Ghanaian Pidgin English
|
| 4 |
+
language_family: germanic_west_anglofrisian
|
| 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-germanic_west_anglofrisian
|
| 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.789
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.8645
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-09
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Ghanaian Pidgin English - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Ghanaian Pidgin English** 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** | 4.124x | 4.13 | 0.1031% | 720,937 |
|
| 94 |
+
| **16k** | 4.434x | 4.44 | 0.1108% | 670,476 |
|
| 95 |
+
| **32k** | 4.661x | 4.66 | 0.1165% | 637,864 |
|
| 96 |
+
| **64k** | 4.789x 🏆 | 4.79 | 0.1197% | 620,843 |
|
| 97 |
+
|
| 98 |
+
### Tokenization Examples
|
| 99 |
+
|
| 100 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 101 |
+
|
| 102 |
+
**Sample 1:** `Institutions Abourso CHPs References insyd Ghana insyd Eastern Region (Ghana) pl...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁institutions ▁ab ours o ▁ch ps ▁references ▁insyd ▁ghana ▁insyd ... (+13 more)` | 23 |
|
| 107 |
+
| 16k | `▁institutions ▁ab ours o ▁chps ▁references ▁insyd ▁ghana ▁insyd ▁eastern ... (+12 more)` | 22 |
|
| 108 |
+
| 32k | `▁institutions ▁ab ours o ▁chps ▁references ▁insyd ▁ghana ▁insyd ▁eastern ... (+12 more)` | 22 |
|
| 109 |
+
| 64k | `▁institutions ▁ab ours o ▁chps ▁references ▁insyd ▁ghana ▁insyd ▁eastern ... (+12 more)` | 22 |
|
| 110 |
+
|
| 111 |
+
**Sample 2:** `References newspapers media insyd Ghana publish insyd Ghana publish insyd Africa`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁references ▁newspapers ▁media ▁insyd ▁ghana ▁publish ▁insyd ▁ghana ▁publish ▁insyd ... (+1 more)` | 11 |
|
| 116 |
+
| 16k | `▁references ▁newspapers ▁media ▁insyd ▁ghana ▁publish ▁insyd ▁ghana ▁publish ▁insyd ... (+1 more)` | 11 |
|
| 117 |
+
| 32k | `▁references ▁newspapers ▁media ▁insyd ▁ghana ▁publish ▁insyd ▁ghana ▁publish ▁insyd ... (+1 more)` | 11 |
|
| 118 |
+
| 64k | `▁references ▁newspapers ▁media ▁insyd ▁ghana ▁publish ▁insyd ▁ghana ▁publish ▁insyd ... (+1 more)` | 11 |
|
| 119 |
+
|
| 120 |
+
**Sample 3:** `References insyd Ghana insyd Ashanti Region places for Ashanti Region insyd`
|
| 121 |
+
|
| 122 |
+
| Vocab | Tokens | Count |
|
| 123 |
+
|-------|--------|-------|
|
| 124 |
+
| 8k | `▁references ▁insyd ▁ghana ▁insyd ▁ashanti ▁region ▁places ▁for ▁ashanti ▁region ... (+1 more)` | 11 |
|
| 125 |
+
| 16k | `▁references ▁insyd ▁ghana ▁insyd ▁ashanti ▁region ▁places ▁for ▁ashanti ▁region ... (+1 more)` | 11 |
|
| 126 |
+
| 32k | `▁references ▁insyd ▁ghana ▁insyd ▁ashanti ▁region ▁places ▁for ▁ashanti ▁region ... (+1 more)` | 11 |
|
| 127 |
+
| 64k | `▁references ▁insyd ▁ghana ▁insyd ▁ashanti ▁region ▁places ▁for ▁ashanti ▁region ... (+1 more)` | 11 |
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
### Key Findings
|
| 131 |
+
|
| 132 |
+
- **Best Compression:** 64k achieves 4.789x compression
|
| 133 |
+
- **Lowest UNK Rate:** 8k with 0.1031% 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 | 21,240 | 14.37 | 78,160 | 14.3% | 31.9% |
|
| 151 |
+
| **2-gram** | Subword | 267 🏆 | 8.06 | 3,973 | 67.1% | 99.4% |
|
| 152 |
+
| **3-gram** | Word | 53,111 | 15.70 | 117,024 | 7.0% | 18.8% |
|
| 153 |
+
| **3-gram** | Subword | 2,195 | 11.10 | 30,848 | 25.8% | 72.0% |
|
| 154 |
+
| **4-gram** | Word | 94,293 | 16.52 | 171,368 | 5.3% | 13.6% |
|
| 155 |
+
| **4-gram** | Subword | 11,353 | 13.47 | 164,542 | 14.5% | 40.0% |
|
| 156 |
+
| **5-gram** | Word | 63,802 | 15.96 | 106,259 | 5.8% | 14.6% |
|
| 157 |
+
| **5-gram** | Subword | 38,013 | 15.21 | 434,778 | 9.2% | 27.0% |
|
| 158 |
+
|
| 159 |
+
### Top 5 N-grams by Size
|
| 160 |
+
|
| 161 |
+
**2-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `of de` | 20,308 |
|
| 166 |
+
| 2 | `for de` | 13,045 |
|
| 167 |
+
| 3 | `insyd de` | 12,862 |
|
| 168 |
+
| 4 | `wey dey` | 10,251 |
|
| 169 |
+
| 5 | `na dem` | 7,893 |
|
| 170 |
+
|
| 171 |
+
**3-grams (Word):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `from the original` | 4,522 |
|
| 176 |
+
| 2 | `archived from the` | 4,424 |
|
| 177 |
+
| 3 | `the original on` | 4,295 |
|
| 178 |
+
| 4 | `de university of` | 1,482 |
|
| 179 |
+
| 5 | `references external links` | 1,398 |
|
| 180 |
+
|
| 181 |
+
**4-grams (Word):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `archived from the original` | 4,424 |
|
| 186 |
+
| 2 | `from the original on` | 4,295 |
|
| 187 |
+
| 3 | `at the wayback machine` | 842 |
|
| 188 |
+
| 4 | `of de national assembly` | 704 |
|
| 189 |
+
| 5 | `be one of de` | 605 |
|
| 190 |
+
|
| 191 |
+
**5-grams (Word):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `archived from the original on` | 4,199 |
|
| 196 |
+
| 2 | `national assembly of south africa` | 578 |
|
| 197 |
+
| 3 | `de national assembly of south` | 560 |
|
| 198 |
+
| 4 | `of de national assembly of` | 550 |
|
| 199 |
+
| 5 | `from the original on retrieved` | 523 |
|
| 200 |
+
|
| 201 |
+
**2-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `e _` | 512,209 |
|
| 206 |
+
| 2 | `_ d` | 373,324 |
|
| 207 |
+
| 3 | `d e` | 362,084 |
|
| 208 |
+
| 4 | `i n` | 287,429 |
|
| 209 |
+
| 5 | `n _` | 274,000 |
|
| 210 |
+
|
| 211 |
+
**3-grams (Subword):**
|
| 212 |
+
|
| 213 |
+
| Rank | N-gram | Count |
|
| 214 |
+
|------|--------|-------|
|
| 215 |
+
| 1 | `_ d e` | 304,465 |
|
| 216 |
+
| 2 | `d e _` | 147,839 |
|
| 217 |
+
| 3 | `_ i n` | 103,335 |
|
| 218 |
+
| 4 | `_ o f` | 102,797 |
|
| 219 |
+
| 5 | `o f _` | 98,533 |
|
| 220 |
+
|
| 221 |
+
**4-grams (Subword):**
|
| 222 |
+
|
| 223 |
+
| Rank | N-gram | Count |
|
| 224 |
+
|------|--------|-------|
|
| 225 |
+
| 1 | `_ d e _` | 134,879 |
|
| 226 |
+
| 2 | `_ o f _` | 96,992 |
|
| 227 |
+
| 3 | `_ f o r` | 70,879 |
|
| 228 |
+
| 4 | `t i o n` | 67,685 |
|
| 229 |
+
| 5 | `_ i n s` | 65,269 |
|
| 230 |
+
|
| 231 |
+
**5-grams (Subword):**
|
| 232 |
+
|
| 233 |
+
| Rank | N-gram | Count |
|
| 234 |
+
|------|--------|-------|
|
| 235 |
+
| 1 | `_ f o r _` | 62,539 |
|
| 236 |
+
| 2 | `i n s y d` | 58,915 |
|
| 237 |
+
| 3 | `_ i n s y` | 58,082 |
|
| 238 |
+
| 4 | `n s y d _` | 53,327 |
|
| 239 |
+
| 5 | `_ d e n _` | 48,301 |
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
### Key Findings
|
| 243 |
+
|
| 244 |
+
- **Best Perplexity:** 2-gram (subword) with 267
|
| 245 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 246 |
+
- **Coverage:** Top-1000 patterns cover ~27% 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 | 1.0024 | 2.003 | 9.14 | 112,922 | 0.0% |
|
| 263 |
+
| **1** | Subword | 0.8797 | 1.840 | 6.38 | 1,680 | 12.0% |
|
| 264 |
+
| **2** | Word | 0.3635 | 1.287 | 2.00 | 1,031,914 | 63.6% |
|
| 265 |
+
| **2** | Subword | 0.9207 | 1.893 | 5.68 | 10,718 | 7.9% |
|
| 266 |
+
| **3** | Word | 0.1363 | 1.099 | 1.26 | 2,064,281 | 86.4% |
|
| 267 |
+
| **3** | Subword | 0.8539 | 1.807 | 4.49 | 60,872 | 14.6% |
|
| 268 |
+
| **4** | Word | 0.0524 🏆 | 1.037 | 1.08 | 2,589,043 | 94.8% |
|
| 269 |
+
| **4** | Subword | 0.6904 | 1.614 | 3.06 | 273,196 | 31.0% |
|
| 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. `de grand slams for ein birth before he finally establish dis celebration of dakar get one`
|
| 278 |
+
2. `of science for di original on retrieved 13 may 7 6 10 of health science report`
|
| 279 |
+
3. `for de quarterfinals wer na she participate insyd a quarrel between tropical wey don decide am`
|
| 280 |
+
|
| 281 |
+
**Context Size 2:**
|
| 282 |
+
|
| 283 |
+
1. `of de prayer hall give students de degree of specialization wey range from 56 for de total`
|
| 284 |
+
2. `for de standard entry times oqt oct paris swimming info world aquatics championshipsfukuoka july mol...`
|
| 285 |
+
3. `insyd de centuries na dem enact by ordering all of ein permanent campus na de average millennial`
|
| 286 |
+
|
| 287 |
+
**Context Size 3:**
|
| 288 |
+
|
| 289 |
+
1. `from the original on 27 june on top convention peoples party c p p plus some other arab`
|
| 290 |
+
2. `archived from the original on 13 march retrieved 7 march insyd de ghana premier league club al hilal`
|
| 291 |
+
3. `the original on 29 september de electoral authority come talk say de cave be de original owners as`
|
| 292 |
+
|
| 293 |
+
**Context Size 4:**
|
| 294 |
+
|
| 295 |
+
1. `archived from the original on 3 january retrieved 17 may references of education winneba institution...`
|
| 296 |
+
2. `from the original on 11 july retrieved 31 july early life den education dem born pravin gordhan on 1...`
|
| 297 |
+
3. `at the wayback machine cricketarchive retrieved 2 january elizabeth tracing the journey the vice cha...`
|
| 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. `_om_oon_o-orof_d`
|
| 307 |
+
2. `es_a_fangaplmala`
|
| 308 |
+
3. `al,_3_wirintmptt`
|
| 309 |
+
|
| 310 |
+
**Context Size 2:**
|
| 311 |
+
|
| 312 |
+
1. `e_nes_ber's_beent`
|
| 313 |
+
2. `_distrycle_fish_a`
|
| 314 |
+
3. `dento_di_clu_bas_`
|
| 315 |
+
|
| 316 |
+
**Context Size 3:**
|
| 317 |
+
|
| 318 |
+
1. `_dey_dey_for_65._e`
|
| 319 |
+
2. `de_politadiye,_buf`
|
| 320 |
+
3. `_infor_de_greem),_`
|
| 321 |
+
|
| 322 |
+
**Context Size 4:**
|
| 323 |
+
|
| 324 |
+
1. `_de_wale,_municipal`
|
| 325 |
+
2. `_of_convictories_di`
|
| 326 |
+
3. `_for_south_dis_gran`
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
### Key Findings
|
| 330 |
+
|
| 331 |
+
- **Best Predictability:** Context-4 (word) with 94.8% predictability
|
| 332 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 333 |
+
- **Memory Trade-off:** Larger contexts require more storage (273,196 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 | 53,888 |
|
| 350 |
+
| Total Tokens | 3,007,969 |
|
| 351 |
+
| Mean Frequency | 55.82 |
|
| 352 |
+
| Median Frequency | 4 |
|
| 353 |
+
| Frequency Std Dev | 1006.84 |
|
| 354 |
+
|
| 355 |
+
### Most Common Words
|
| 356 |
+
|
| 357 |
+
| Rank | Word | Frequency |
|
| 358 |
+
|------|------|-----------|
|
| 359 |
+
| 1 | de | 136,329 |
|
| 360 |
+
| 2 | of | 97,116 |
|
| 361 |
+
| 3 | for | 62,865 |
|
| 362 |
+
| 4 | insyd | 58,595 |
|
| 363 |
+
| 5 | den | 48,591 |
|
| 364 |
+
| 6 | dem | 45,328 |
|
| 365 |
+
| 7 | wey | 45,073 |
|
| 366 |
+
| 8 | dey | 39,231 |
|
| 367 |
+
| 9 | be | 34,093 |
|
| 368 |
+
| 10 | ein | 30,298 |
|
| 369 |
+
|
| 370 |
+
### Least Common Words (from vocabulary)
|
| 371 |
+
|
| 372 |
+
| Rank | Word | Frequency |
|
| 373 |
+
|------|------|-----------|
|
| 374 |
+
| 1 | tɔra | 2 |
|
| 375 |
+
| 2 | ntebe | 2 |
|
| 376 |
+
| 3 | principia | 2 |
|
| 377 |
+
| 4 | malingering | 2 |
|
| 378 |
+
| 5 | fdis | 2 |
|
| 379 |
+
| 6 | catlett | 2 |
|
| 380 |
+
| 7 | modif | 2 |
|
| 381 |
+
| 8 | outbursts | 2 |
|
| 382 |
+
| 9 | impulse | 2 |
|
| 383 |
+
| 10 | excoriation | 2 |
|
| 384 |
+
|
| 385 |
+
### Zipf's Law Analysis
|
| 386 |
+
|
| 387 |
+
| Metric | Value |
|
| 388 |
+
|--------|-------|
|
| 389 |
+
| Zipf Coefficient | 1.1693 |
|
| 390 |
+
| R² (Goodness of Fit) | 0.988970 |
|
| 391 |
+
| Adherence Quality | **excellent** |
|
| 392 |
+
|
| 393 |
+
### Coverage Analysis
|
| 394 |
+
|
| 395 |
+
| Top N Words | Coverage |
|
| 396 |
+
|-------------|----------|
|
| 397 |
+
| Top 100 | 41.6% |
|
| 398 |
+
| Top 1,000 | 69.9% |
|
| 399 |
+
| Top 5,000 | 87.3% |
|
| 400 |
+
| Top 10,000 | 92.6% |
|
| 401 |
+
|
| 402 |
+
### Key Findings
|
| 403 |
+
|
| 404 |
+
- **Zipf Compliance:** R²=0.9890 indicates excellent adherence to Zipf's law
|
| 405 |
+
- **High Frequency Dominance:** Top 100 words cover 41.6% of corpus
|
| 406 |
+
- **Long Tail:** 43,888 words needed for remaining 7.4% 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.8634 | 0.3326 | N/A | N/A |
|
| 432 |
+
| **mono_64d** | 64 | 0.8645 | 0.2673 | N/A | N/A |
|
| 433 |
+
| **mono_128d** | 128 | 0.8465 | 0.1986 | N/A | N/A |
|
| 434 |
+
| **aligned_32d** | 32 | 0.8634 | 0.3488 | 0.2620 | 0.6480 |
|
| 435 |
+
| **aligned_64d** | 64 | 0.8645 🏆 | 0.2624 | 0.4380 | 0.8040 |
|
| 436 |
+
| **aligned_128d** | 128 | 0.8465 | 0.1961 | 0.5700 | 0.8700 |
|
| 437 |
+
|
| 438 |
+
### Key Findings
|
| 439 |
+
|
| 440 |
+
- **Best Isotropy:** aligned_64d with 0.8645 (more uniform distribution)
|
| 441 |
+
- **Semantic Density:** Average pairwise similarity of 0.2677. Lower values indicate better semantic separation.
|
| 442 |
+
- **Alignment Quality:** Aligned models achieve up to 57.0% 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.460** | 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 |
+
| `-co` | commendations, consumption, corona |
|
| 465 |
+
|
| 466 |
+
#### Productive Suffixes
|
| 467 |
+
| Suffix | Examples |
|
| 468 |
+
|--------|----------|
|
| 469 |
+
| `-s` | étoiles, ibs, seriesjenifas |
|
| 470 |
+
| `-es` | étoiles, cinématographiques, bapes |
|
| 471 |
+
| `-ng` | offsetting, subverting, visiting |
|
| 472 |
+
| `-on` | koomson, rodinson, consumption |
|
| 473 |
+
| `-ed` | administered, categorized, overcrowded |
|
| 474 |
+
| `-ing` | offsetting, subverting, visiting |
|
| 475 |
+
| `-er` | mulder, turnover, longer |
|
| 476 |
+
|
| 477 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 478 |
+
|
| 479 |
+
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.
|
| 480 |
+
|
| 481 |
+
| Stem | Cohesion | Substitutability | Examples |
|
| 482 |
+
|------|----------|------------------|----------|
|
| 483 |
+
| `nter` | 1.66x | 48 contexts | unter, inter, enter |
|
| 484 |
+
| `atio` | 1.56x | 49 contexts | natio, ratio, ratios |
|
| 485 |
+
| `tion` | 1.44x | 64 contexts | option, lation, notion |
|
| 486 |
+
| `ment` | 1.51x | 46 contexts | mente, lament, moment |
|
| 487 |
+
| `ican` | 1.96x | 17 contexts | rican, vatican, pelican |
|
| 488 |
+
| `ence` | 1.70x | 27 contexts | pence, fence, hence |
|
| 489 |
+
| `iver` | 1.52x | 35 contexts | hiver, giver, river |
|
| 490 |
+
| `mber` | 1.74x | 21 contexts | mberi, amber, member |
|
| 491 |
+
| `ersi` | 1.78x | 19 contexts | persia, versity, version |
|
| 492 |
+
| `embe` | 1.80x | 18 contexts | embed, lembe, kpembe |
|
| 493 |
+
| `ieve` | 1.83x | 14 contexts | nieve, thieves, achieve |
|
| 494 |
+
| `nive` | 2.19x | 8 contexts | niven, nivera, univen |
|
| 495 |
+
|
| 496 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 497 |
+
|
| 498 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 499 |
+
|
| 500 |
+
| Prefix | Suffix | Frequency | Examples |
|
| 501 |
+
|--------|--------|-----------|----------|
|
| 502 |
+
| `-co` | `-s` | 39 words | contributes, conservations |
|
| 503 |
+
| `-co` | `-on` | 16 words | contraception, constitution |
|
| 504 |
+
| `-co` | `-ed` | 13 words | committed, commanded |
|
| 505 |
+
| `-co` | `-ng` | 10 words | counselling, connecting |
|
| 506 |
+
| `-co` | `-ing` | 9 words | counselling, connecting |
|
| 507 |
+
| `-co` | `-es` | 8 words | contributes, comprises |
|
| 508 |
+
| `-co` | `-er` | 5 words | contender, colder |
|
| 509 |
+
|
| 510 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 511 |
+
|
| 512 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 513 |
+
|
| 514 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 515 |
+
|------|-----------------|------------|------|
|
| 516 |
+
| descended | **`descend-ed`** | 4.5 | `descend` |
|
| 517 |
+
| assaulted | **`assault-ed`** | 4.5 | `assault` |
|
| 518 |
+
| requested | **`request-ed`** | 4.5 | `request` |
|
| 519 |
+
| approaching | **`approach-ing`** | 4.5 | `approach` |
|
| 520 |
+
| universes | **`univers-es`** | 4.5 | `univers` |
|
| 521 |
+
| distracted | **`distract-ed`** | 4.5 | `distract` |
|
| 522 |
+
| encompasses | **`encompass-es`** | 4.5 | `encompass` |
|
| 523 |
+
| choreographed | **`choreograph-ed`** | 4.5 | `choreograph` |
|
| 524 |
+
| fermented | **`ferment-ed`** | 4.5 | `ferment` |
|
| 525 |
+
| reprinted | **`reprint-ed`** | 4.5 | `reprint` |
|
| 526 |
+
| abstained | **`abstain-ed`** | 4.5 | `abstain` |
|
| 527 |
+
| transformed | **`transform-ed`** | 4.5 | `transform` |
|
| 528 |
+
| mistresses | **`mistress-es`** | 4.5 | `mistress` |
|
| 529 |
+
| reporting | **`report-ing`** | 4.5 | `report` |
|
| 530 |
+
| entertainer | **`entertain-er`** | 4.5 | `entertain` |
|
| 531 |
+
|
| 532 |
+
### 6.6 Linguistic Interpretation
|
| 533 |
+
|
| 534 |
+
> **Automated Insight:**
|
| 535 |
+
The language Ghanaian Pidgin English shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
|
| 536 |
+
|
| 537 |
+
---
|
| 538 |
+
## 7. Summary & Recommendations
|
| 539 |
+
|
| 540 |
+

|
| 541 |
+
|
| 542 |
+
### Production Recommendations
|
| 543 |
+
|
| 544 |
+
| Component | Recommended | Rationale |
|
| 545 |
+
|-----------|-------------|-----------|
|
| 546 |
+
| Tokenizer | **64k BPE** | Best compression (4.79x) |
|
| 547 |
+
| N-gram | **2-gram** | Lowest perplexity (267) |
|
| 548 |
+
| Markov | **Context-4** | Highest predictability (94.8%) |
|
| 549 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
---
|
| 553 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 554 |
+
|
| 555 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 556 |
+
|
| 557 |
+
### Tokenizer Metrics
|
| 558 |
+
|
| 559 |
+
**Compression Ratio**
|
| 560 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 561 |
+
>
|
| 562 |
+
> *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.
|
| 563 |
+
>
|
| 564 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 565 |
+
|
| 566 |
+
**Average Token Length (Fertility)**
|
| 567 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 568 |
+
>
|
| 569 |
+
> *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.
|
| 570 |
+
>
|
| 571 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 572 |
+
|
| 573 |
+
**Unknown Token Rate (OOV Rate)**
|
| 574 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 575 |
+
>
|
| 576 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 577 |
+
>
|
| 578 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 579 |
+
|
| 580 |
+
### N-gram Model Metrics
|
| 581 |
+
|
| 582 |
+
**Perplexity**
|
| 583 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 584 |
+
>
|
| 585 |
+
> *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.
|
| 586 |
+
>
|
| 587 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 588 |
+
|
| 589 |
+
**Entropy**
|
| 590 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 591 |
+
>
|
| 592 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 593 |
+
>
|
| 594 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 595 |
+
|
| 596 |
+
**Coverage (Top-K)**
|
| 597 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 598 |
+
>
|
| 599 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 600 |
+
>
|
| 601 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 602 |
+
|
| 603 |
+
### Markov Chain Metrics
|
| 604 |
+
|
| 605 |
+
**Average Entropy**
|
| 606 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 607 |
+
>
|
| 608 |
+
> *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).
|
| 609 |
+
>
|
| 610 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 611 |
+
|
| 612 |
+
**Branching Factor**
|
| 613 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 614 |
+
>
|
| 615 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 616 |
+
>
|
| 617 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 618 |
+
|
| 619 |
+
**Predictability**
|
| 620 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 621 |
+
>
|
| 622 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 623 |
+
>
|
| 624 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 625 |
+
|
| 626 |
+
### Vocabulary & Zipf's Law Metrics
|
| 627 |
+
|
| 628 |
+
**Zipf's Coefficient**
|
| 629 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 630 |
+
>
|
| 631 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 632 |
+
>
|
| 633 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 634 |
+
|
| 635 |
+
**R² (Coefficient of Determination)**
|
| 636 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 637 |
+
>
|
| 638 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 639 |
+
>
|
| 640 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 641 |
+
|
| 642 |
+
**Vocabulary Coverage**
|
| 643 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 644 |
+
>
|
| 645 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 646 |
+
>
|
| 647 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 648 |
+
|
| 649 |
+
### Word Embedding Metrics
|
| 650 |
+
|
| 651 |
+
**Isotropy**
|
| 652 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 653 |
+
>
|
| 654 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 655 |
+
>
|
| 656 |
+
> *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.
|
| 657 |
+
|
| 658 |
+
**Average Norm**
|
| 659 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 660 |
+
>
|
| 661 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 662 |
+
>
|
| 663 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 664 |
+
|
| 665 |
+
**Cosine Similarity**
|
| 666 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 667 |
+
>
|
| 668 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 669 |
+
>
|
| 670 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 671 |
+
|
| 672 |
+
**t-SNE Visualization**
|
| 673 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 674 |
+
>
|
| 675 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 676 |
+
>
|
| 677 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 678 |
+
|
| 679 |
+
### General Interpretation Guidelines
|
| 680 |
+
|
| 681 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 682 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 683 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 684 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 685 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
### Visualizations Index
|
| 689 |
+
|
| 690 |
+
| Visualization | Description |
|
| 691 |
+
|---------------|-------------|
|
| 692 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 693 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 694 |
+
| Tokenizer OOV | Unknown token rates |
|
| 695 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 696 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 697 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 698 |
+
| N-gram Coverage | Top pattern coverage |
|
| 699 |
+
| N-gram Unique | Unique n-gram counts |
|
| 700 |
+
| Markov Entropy | Entropy by context size |
|
| 701 |
+
| Markov Branching | Branching factor by context |
|
| 702 |
+
| Markov Contexts | Unique context counts |
|
| 703 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 704 |
+
| Vocab Frequency | Word frequency distribution |
|
| 705 |
+
| Top 20 Words | Most frequent words |
|
| 706 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 707 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 708 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 709 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 710 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 711 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 712 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 713 |
+
| Position Encoding | Encoding method comparison |
|
| 714 |
+
| Model Sizes | Storage requirements |
|
| 715 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 716 |
+
|
| 717 |
+
---
|
| 718 |
+
## About This Project
|
| 719 |
+
|
| 720 |
+
### Data Source
|
| 721 |
+
|
| 722 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 723 |
+
|
| 724 |
+
### Project
|
| 725 |
+
|
| 726 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 727 |
+
|
| 728 |
+
### Maintainer
|
| 729 |
+
|
| 730 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 731 |
+
|
| 732 |
+
### Citation
|
| 733 |
+
|
| 734 |
+
If you use these models in your research, please cite:
|
| 735 |
+
|
| 736 |
+
```bibtex
|
| 737 |
+
@misc{wikilangs2025,
|
| 738 |
+
author = {Kamali, Omar},
|
| 739 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 740 |
+
year = {2025},
|
| 741 |
+
doi = {10.5281/zenodo.18073153},
|
| 742 |
+
publisher = {Zenodo},
|
| 743 |
+
url = {https://huggingface.co/wikilangs}
|
| 744 |
+
institution = {Omneity Labs}
|
| 745 |
+
}
|
| 746 |
+
```
|
| 747 |
+
|
| 748 |
+
### License
|
| 749 |
+
|
| 750 |
+
MIT License - Free for academic and commercial use.
|
| 751 |
+
|
| 752 |
+
### Links
|
| 753 |
+
|
| 754 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 755 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 756 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 757 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 758 |
+
- 🤝 Sponsor: [Featherless AI](https://featherless.ai)
|
| 759 |
+
---
|
| 760 |
+
*Generated by Wikilangs Models Pipeline*
|
| 761 |
+
|
| 762 |
+
*Report Date: 2026-01-09 23:55:27*
|
models/embeddings/aligned/gpe_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:602f1b6f269d392fb1e24bf8270506708f516d2ae8b140ecef4a203844206efd
|
| 3 |
+
size 1061954022
|
models/embeddings/aligned/gpe_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 128, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/gpe_128d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b0829e8811dbda942c20424b2555ab03524769d6497c55c6ff700e407292e71
|
| 3 |
+
size 65664
|
models/embeddings/aligned/gpe_128d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 32062,
|
| 7 |
+
"vocab_size": 36453
|
| 8 |
+
}
|
models/embeddings/aligned/gpe_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66941dd266b6dad1e6000d1beb6a46cf6b8e84ef09405fc85514bb55dd86cbf4
|
| 3 |
+
size 265958118
|
models/embeddings/aligned/gpe_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 32, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/gpe_32d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50a9171c40ba0b4e4ed933845d89ae852c8358280dfbd85e70673796e637ee89
|
| 3 |
+
size 4224
|
models/embeddings/aligned/gpe_32d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 32062,
|
| 7 |
+
"vocab_size": 36453
|
| 8 |
+
}
|
models/embeddings/aligned/gpe_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e029bb987ba7f75efc70d142e1d49404953a6eed38c8cace72e1fd376882a8
|
| 3 |
+
size 531290086
|
models/embeddings/aligned/gpe_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 64, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/gpe_64d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f9de440165e0f7db989d5c53baf6096a06493a285bbaed790b53827d0e8242a
|
| 3 |
+
size 16512
|
models/embeddings/aligned/gpe_64d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 32062,
|
| 7 |
+
"vocab_size": 36453
|
| 8 |
+
}
|
models/embeddings/monolingual/gpe_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:602f1b6f269d392fb1e24bf8270506708f516d2ae8b140ecef4a203844206efd
|
| 3 |
+
size 1061954022
|
models/embeddings/monolingual/gpe_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/gpe_128d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 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": 36453
|
| 15 |
+
}
|
models/embeddings/monolingual/gpe_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66941dd266b6dad1e6000d1beb6a46cf6b8e84ef09405fc85514bb55dd86cbf4
|
| 3 |
+
size 265958118
|
models/embeddings/monolingual/gpe_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/gpe_32d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 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": 36453
|
| 15 |
+
}
|
models/embeddings/monolingual/gpe_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e029bb987ba7f75efc70d142e1d49404953a6eed38c8cace72e1fd376882a8
|
| 3 |
+
size 531290086
|
models/embeddings/monolingual/gpe_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "gpe", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/gpe_64d_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 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": 36453
|
| 15 |
+
}
|
models/subword_markov/gpe_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7862ee8a7b1e2d39d440eebb6aae755c17129a146e43a7f8c0702a11021cc397
|
| 3 |
+
size 88469
|
models/subword_markov/gpe_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_contexts": 1680,
|
| 6 |
+
"total_transitions": 18889505
|
| 7 |
+
}
|
models/subword_markov/gpe_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c401b84662ae53cbe0e0e985b8850a063aca5005b8f3316a8a88d68efe3e4bfa
|
| 3 |
+
size 510203
|
models/subword_markov/gpe_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_contexts": 10718,
|
| 6 |
+
"total_transitions": 18885230
|
| 7 |
+
}
|
models/subword_markov/gpe_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bc0071409f147e249f6ce9f229c1b71c3847bb1514f466f380b25e25b211bfa
|
| 3 |
+
size 2072642
|
models/subword_markov/gpe_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_contexts": 60872,
|
| 6 |
+
"total_transitions": 18880955
|
| 7 |
+
}
|
models/subword_markov/gpe_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac486715c0d47cb5069c94842d347354efd85d88d975d3e103c0b29de49fb20a
|
| 3 |
+
size 6547234
|
models/subword_markov/gpe_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_contexts": 273196,
|
| 6 |
+
"total_transitions": 18876680
|
| 7 |
+
}
|
models/subword_ngram/gpe_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:764da9ff434a1e429fba12a2709733ebf5a23ff045bee316455430c426bc0c4e
|
| 3 |
+
size 53205
|
models/subword_ngram/gpe_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_ngrams": 3973,
|
| 6 |
+
"total_ngrams": 18889505
|
| 7 |
+
}
|
models/subword_ngram/gpe_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8572587cc69579c48327b066cdd7a98803f8cf6f8112227365d27df83970ff7c
|
| 3 |
+
size 384660
|
models/subword_ngram/gpe_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_ngrams": 30848,
|
| 6 |
+
"total_ngrams": 18885230
|
| 7 |
+
}
|
models/subword_ngram/gpe_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0010c3909cb9a3b8612914ba19dacb1d3ed4538a688e6d0413631a08cb2ce83
|
| 3 |
+
size 1830728
|
models/subword_ngram/gpe_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_ngrams": 164542,
|
| 6 |
+
"total_ngrams": 18880955
|
| 7 |
+
}
|
models/subword_ngram/gpe_5gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35ed6a8ca1469162263b3741d91204d78a9722bbbf05fdeb73b999402dda3527
|
| 3 |
+
size 4965803
|
models/subword_ngram/gpe_5gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 5,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "gpe",
|
| 5 |
+
"unique_ngrams": 434778,
|
| 6 |
+
"total_ngrams": 18876680
|
| 7 |
+
}
|
models/tokenizer/gpe_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2a5526711c085829d675a6dbc5ae5a134e568d89f7751c9fadfad04d199f3c1
|
| 3 |
+
size 508761
|
models/tokenizer/gpe_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/gpe_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:408864cc1f7b6ce1ce7ed18f621e654710de261f5c87192fd71867d6144adfbe
|
| 3 |
+
size 783619
|
models/tokenizer/gpe_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/gpe_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d7eab1bd3c0e9e90702b13230ba7ea833b12a5b5ab4ef12c0546f83dcf4ae1f
|
| 3 |
+
size 1341822
|
models/tokenizer/gpe_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/gpe_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:957f1ec5ce29d9094360ec45725439d83bbbf4dc80dd73507261d215da0d1af5
|
| 3 |
+
size 374598
|
models/tokenizer/gpe_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/gpe_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65ffe7a3a252e76b76cd16fdd98cec2398c96ffe4b4949bcfa20d26158392fb3
|
| 3 |
+
size 940330
|
models/vocabulary/gpe_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "gpe",
|
| 3 |
+
"vocabulary_size": 53888,
|
| 4 |
+
"variant": "full",
|
| 5 |
+
"statistics": {
|
| 6 |
+
"type_token_ratio": 0.03682369205287217,
|
| 7 |
+
"coverage": {
|
| 8 |
+
"top_100": 0.4078923515334103,
|
| 9 |
+
"top_1000": 0.6855403616539834,
|
| 10 |
+
"top_5000": 0.8561486393958957,
|
| 11 |
+
"top_10000": 0.9078620289401439
|
| 12 |
+
},
|
| 13 |
+
"hapax_count": 59051,
|
| 14 |
+
"hapax_ratio": 0.5228574717325282,
|
| 15 |
+
"total_documents": 4275
|
| 16 |
+
}
|
| 17 |
+
}
|
models/word_markov/gpe_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae9e43682766af23f4176e3eb56295de3527178fb3b5103589934a6b12ff27fe
|
| 3 |
+
size 6615786
|