Upload all models and assets for gd (latest)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +7 -0
- README.md +766 -0
- models/embeddings/aligned/gd_128d.bin +3 -0
- models/embeddings/aligned/gd_128d.meta.json +1 -0
- models/embeddings/aligned/gd_128d.projection.npy +3 -0
- models/embeddings/aligned/gd_128d_metadata.json +8 -0
- models/embeddings/aligned/gd_32d.bin +3 -0
- models/embeddings/aligned/gd_32d.meta.json +1 -0
- models/embeddings/aligned/gd_32d.projection.npy +3 -0
- models/embeddings/aligned/gd_32d_metadata.json +8 -0
- models/embeddings/aligned/gd_64d.bin +3 -0
- models/embeddings/aligned/gd_64d.meta.json +1 -0
- models/embeddings/aligned/gd_64d.projection.npy +3 -0
- models/embeddings/aligned/gd_64d_metadata.json +8 -0
- models/embeddings/monolingual/gd_128d.bin +3 -0
- models/embeddings/monolingual/gd_128d.meta.json +1 -0
- models/embeddings/monolingual/gd_128d_metadata.json +15 -0
- models/embeddings/monolingual/gd_32d.bin +3 -0
- models/embeddings/monolingual/gd_32d.meta.json +1 -0
- models/embeddings/monolingual/gd_32d_metadata.json +15 -0
- models/embeddings/monolingual/gd_64d.bin +3 -0
- models/embeddings/monolingual/gd_64d.meta.json +1 -0
- models/embeddings/monolingual/gd_64d_metadata.json +15 -0
- models/subword_markov/gd_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/gd_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/gd_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/gd_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/gd_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/gd_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/gd_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/gd_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/gd_2gram_subword.parquet +3 -0
- models/subword_ngram/gd_2gram_subword_metadata.json +7 -0
- models/subword_ngram/gd_3gram_subword.parquet +3 -0
- models/subword_ngram/gd_3gram_subword_metadata.json +7 -0
- models/subword_ngram/gd_4gram_subword.parquet +3 -0
- models/subword_ngram/gd_4gram_subword_metadata.json +7 -0
- models/subword_ngram/gd_5gram_subword.parquet +3 -0
- models/subword_ngram/gd_5gram_subword_metadata.json +7 -0
- models/tokenizer/gd_tokenizer_16k.model +3 -0
- models/tokenizer/gd_tokenizer_16k.vocab +0 -0
- models/tokenizer/gd_tokenizer_32k.model +3 -0
- models/tokenizer/gd_tokenizer_32k.vocab +0 -0
- models/tokenizer/gd_tokenizer_64k.model +3 -0
- models/tokenizer/gd_tokenizer_64k.vocab +0 -0
- models/tokenizer/gd_tokenizer_8k.model +3 -0
- models/tokenizer/gd_tokenizer_8k.vocab +0 -0
- models/vocabulary/gd_vocabulary.parquet +3 -0
- models/vocabulary/gd_vocabulary_metadata.json +17 -0
- models/word_markov/gd_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: gd
|
| 3 |
+
language_name: Scottish Gaelic
|
| 4 |
+
language_family: celtic_goidelic
|
| 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-celtic_goidelic
|
| 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.255
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.8836
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-04
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Scottish Gaelic - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Scottish Gaelic** 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.505x | 3.51 | 0.1554% | 361,085 |
|
| 94 |
+
| **16k** | 3.790x | 3.79 | 0.1680% | 333,933 |
|
| 95 |
+
| **32k** | 4.047x | 4.05 | 0.1794% | 312,732 |
|
| 96 |
+
| **64k** | 4.255x 🏆 | 4.26 | 0.1886% | 297,465 |
|
| 97 |
+
|
| 98 |
+
### Tokenization Examples
|
| 99 |
+
|
| 100 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 101 |
+
|
| 102 |
+
**Sample 1:** `Cleachdaidhean eile aig Cuach (soilleireachadh) 'S e baile ann an Contae Dhoire ...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁cleachdaidhean ▁eile ▁aig ▁cu ach ▁( s oilleir eachadh ) ... (+20 more)` | 30 |
|
| 107 |
+
| 16k | `▁cleachdaidhean ▁eile ▁aig ▁cuach ▁( soilleireachadh ) ▁' s ▁e ... (+16 more)` | 26 |
|
| 108 |
+
| 32k | `▁cleachdaidhean ▁eile ▁aig ▁cuach ▁( soilleireachadh ) ▁' s ▁e ... (+16 more)` | 26 |
|
| 109 |
+
| 64k | `▁cleachdaidhean ▁eile ▁aig ▁cuach ▁( soilleireachadh ) ▁' s ▁e ... (+16 more)` | 26 |
|
| 110 |
+
|
| 111 |
+
**Sample 2:** `Fang, feichid, preachan: eun a tha ag ithe beathaichean marbh. Tha sgòrnan fada ...`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁f ang , ▁fe ich id , ▁pr eachan : ... (+16 more)` | 26 |
|
| 116 |
+
| 16k | `▁f ang , ▁fe ich id , ▁pr eachan : ... (+15 more)` | 25 |
|
| 117 |
+
| 32k | `▁fang , ▁fe ich id , ▁pr eachan : ▁eun ... (+13 more)` | 23 |
|
| 118 |
+
| 64k | `▁fang , ▁fe ichid , ▁preachan : ▁eun ▁a ▁tha ... (+11 more)` | 21 |
|
| 119 |
+
|
| 120 |
+
**Sample 3:** `'S e bliadhna-leum a bha ann an (MLXXVI). Tachartasan Breithean Bàsan`
|
| 121 |
+
|
| 122 |
+
| Vocab | Tokens | Count |
|
| 123 |
+
|-------|--------|-------|
|
| 124 |
+
| 8k | `▁' s ▁e ▁bliadhna - leum ▁a ▁bha ▁ann ▁an ... (+8 more)` | 18 |
|
| 125 |
+
| 16k | `▁' s ▁e ▁bliadhna - leum ▁a ▁bha ▁ann ▁an ... (+8 more)` | 18 |
|
| 126 |
+
| 32k | `▁' s ▁e ▁bliadhna - leum ▁a ▁bha ▁ann ▁an ... (+7 more)` | 17 |
|
| 127 |
+
| 64k | `▁' s ▁e ▁bliadhna - leum ▁a ▁bha ▁ann ▁an ... (+7 more)` | 17 |
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
### Key Findings
|
| 131 |
+
|
| 132 |
+
- **Best Compression:** 64k achieves 4.255x compression
|
| 133 |
+
- **Lowest UNK Rate:** 8k with 0.1554% 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 | 7,513 | 12.88 | 45,521 | 23.1% | 48.4% |
|
| 151 |
+
| **2-gram** | Subword | 241 🏆 | 7.91 | 4,942 | 71.6% | 98.7% |
|
| 152 |
+
| **3-gram** | Word | 22,207 | 14.44 | 79,383 | 11.8% | 32.1% |
|
| 153 |
+
| **3-gram** | Subword | 1,855 | 10.86 | 33,559 | 33.3% | 74.9% |
|
| 154 |
+
| **4-gram** | Word | 49,301 | 15.59 | 146,615 | 8.5% | 23.6% |
|
| 155 |
+
| **4-gram** | Subword | 9,340 | 13.19 | 158,296 | 18.3% | 46.8% |
|
| 156 |
+
| **5-gram** | Word | 45,346 | 15.47 | 116,302 | 7.6% | 22.5% |
|
| 157 |
+
| **5-gram** | Subword | 29,576 | 14.85 | 374,322 | 11.3% | 32.2% |
|
| 158 |
+
|
| 159 |
+
### Top 5 N-grams by Size
|
| 160 |
+
|
| 161 |
+
**2-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `ann an` | 44,901 |
|
| 166 |
+
| 2 | `s e` | 15,127 |
|
| 167 |
+
| 3 | `na h` | 12,468 |
|
| 168 |
+
| 4 | `an t` | 11,551 |
|
| 169 |
+
| 5 | `a tha` | 10,609 |
|
| 170 |
+
|
| 171 |
+
**3-grams (Word):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `na h alba` | 6,088 |
|
| 176 |
+
| 2 | `a th ann` | 4,967 |
|
| 177 |
+
| 3 | `a tha ann` | 4,917 |
|
| 178 |
+
| 4 | `ceanglaichean a mach` | 3,964 |
|
| 179 |
+
| 5 | `tha ann an` | 3,533 |
|
| 180 |
+
|
| 181 |
+
**4-grams (Word):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `a tha ann an` | 3,497 |
|
| 186 |
+
| 2 | `a th ann an` | 2,302 |
|
| 187 |
+
| 3 | `iomraidhean ceanglaichean a mach` | 2,128 |
|
| 188 |
+
| 4 | `a tha ann am` | 1,042 |
|
| 189 |
+
| 5 | `os cionn ìre na` | 1,011 |
|
| 190 |
+
|
| 191 |
+
**5-grams (Word):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `os cionn ìre na mara` | 957 |
|
| 196 |
+
| 2 | `a rèir a chunntais shluaigh` | 730 |
|
| 197 |
+
| 3 | `an duais nobel ann an` | 688 |
|
| 198 |
+
| 4 | `a chunntais shluaigh ann an` | 668 |
|
| 199 |
+
| 5 | `rèir a chunntais shluaigh ann` | 667 |
|
| 200 |
+
|
| 201 |
+
**2-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `_ a` | 512,441 |
|
| 206 |
+
| 2 | `a n` | 416,454 |
|
| 207 |
+
| 3 | `n _` | 394,988 |
|
| 208 |
+
| 4 | `a i` | 315,323 |
|
| 209 |
+
| 5 | `c h` | 267,240 |
|
| 210 |
+
|
| 211 |
+
**3-grams (Subword):**
|
| 212 |
+
|
| 213 |
+
| Rank | N-gram | Count |
|
| 214 |
+
|------|--------|-------|
|
| 215 |
+
| 1 | `a n _` | 225,121 |
|
| 216 |
+
| 2 | `_ a n` | 207,360 |
|
| 217 |
+
| 3 | `a c h` | 122,355 |
|
| 218 |
+
| 4 | `n _ a` | 119,942 |
|
| 219 |
+
| 5 | `a n n` | 106,926 |
|
| 220 |
+
|
| 221 |
+
**4-grams (Subword):**
|
| 222 |
+
|
| 223 |
+
| Rank | N-gram | Count |
|
| 224 |
+
|------|--------|-------|
|
| 225 |
+
| 1 | `_ a n _` | 121,672 |
|
| 226 |
+
| 2 | `_ a n n` | 77,613 |
|
| 227 |
+
| 3 | `a n n _` | 71,439 |
|
| 228 |
+
| 4 | `n n _ a` | 66,595 |
|
| 229 |
+
| 5 | `n _ a n` | 59,630 |
|
| 230 |
+
|
| 231 |
+
**5-grams (Subword):**
|
| 232 |
+
|
| 233 |
+
| Rank | N-gram | Count |
|
| 234 |
+
|------|--------|-------|
|
| 235 |
+
| 1 | `a n n _ a` | 59,213 |
|
| 236 |
+
| 2 | `_ a n n _` | 58,945 |
|
| 237 |
+
| 3 | `n _ a n _` | 50,924 |
|
| 238 |
+
| 4 | `n n _ a n` | 48,309 |
|
| 239 |
+
| 5 | `_ a g u s` | 39,355 |
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
### Key Findings
|
| 243 |
+
|
| 244 |
+
- **Best Perplexity:** 2-gram (subword) with 241
|
| 245 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 246 |
+
- **Coverage:** Top-1000 patterns cover ~32% 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.8527 | 1.806 | 5.97 | 117,662 | 14.7% |
|
| 263 |
+
| **1** | Subword | 0.8777 | 1.837 | 6.88 | 2,032 | 12.2% |
|
| 264 |
+
| **2** | Word | 0.2808 | 1.215 | 1.75 | 699,420 | 71.9% |
|
| 265 |
+
| **2** | Subword | 0.8889 | 1.852 | 5.20 | 13,963 | 11.1% |
|
| 266 |
+
| **3** | Word | 0.1273 | 1.092 | 1.27 | 1,221,448 | 87.3% |
|
| 267 |
+
| **3** | Subword | 0.7487 | 1.680 | 3.81 | 72,603 | 25.1% |
|
| 268 |
+
| **4** | Word | 0.0625 🏆 | 1.044 | 1.11 | 1,546,357 | 93.7% |
|
| 269 |
+
| **4** | Subword | 0.6229 | 1.540 | 2.73 | 276,636 | 37.7% |
|
| 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. `an aghaidh poileasaidh airson na h uile dùinte a th ann an old man wins nobel`
|
| 278 |
+
2. `a tha denver na gàidhealtachd agus thogadh e dìreach ri bràthair agus tha co chruthachd còmhla`
|
| 279 |
+
3. `ann an t ainm oifigeil na h alba pàrlamaid à alba chlach ghràin a mhoncaidh lùchairt`
|
| 280 |
+
|
| 281 |
+
**Context Size 2:**
|
| 282 |
+
|
| 283 |
+
1. `ann an sealtainn eadar unst agus fetlar a tha ealantach cruthachail air cuan dubh drilseach bho n`
|
| 284 |
+
2. `s e 0 5 km 0 3 km 1 7 ha 4 7 acair s e am`
|
| 285 |
+
3. `na h alba a stiuireadh rugbaidh ann an altaibh air teicneòlasaibh mar eisimpleir theirear gun robh c...`
|
| 286 |
+
|
| 287 |
+
**Context Size 3:**
|
| 288 |
+
|
| 289 |
+
1. `na h alba a tha ann an càrn deas tha e ainmeil gus ar làithean lunds universitetchaochail an`
|
| 290 |
+
2. `a th ann an ainmean àite cuideachd mar eispimpleir sgùrr alasdair a bheinn as àirde ann an agri`
|
| 291 |
+
3. `a tha ann an sgoil air a bheil shambellie house trust iomraidhean na h eilbheise suidhichte ri taobh`
|
| 292 |
+
|
| 293 |
+
**Context Size 4:**
|
| 294 |
+
|
| 295 |
+
1. `a tha ann an diospròsium le samhla dy agus àireamh atamach 66 s e meatailt bog agus lantanach a`
|
| 296 |
+
2. `a th ann an chernihivska oblast ucràinis черні́гівська о́бласть ainm neo fhoirmeil khmelnychchyna s ...`
|
| 297 |
+
3. `iomraidhean ceanglaichean a mach dealbhan aig geograph org na h alba ann an arcaibh`
|
| 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. `_botile_lbr.omin`
|
| 307 |
+
2. `achnnnnomzogheat`
|
| 308 |
+
3. `nnbhchùtiaseir_m`
|
| 309 |
+
|
| 310 |
+
**Context Size 2:**
|
| 311 |
+
|
| 312 |
+
1. `_an_logha_ghearai`
|
| 313 |
+
2. `an_na_daidhe_fhom`
|
| 314 |
+
3. `n_bh_a_'s_jonzoli`
|
| 315 |
+
|
| 316 |
+
**Context Size 3:**
|
| 317 |
+
|
| 318 |
+
1. `an_nan_breithrìomh`
|
| 319 |
+
2. `_an-riagh_sìos_(ga`
|
| 320 |
+
3. `ach_(pàrt_aireadh_`
|
| 321 |
+
|
| 322 |
+
**Context Size 4:**
|
| 323 |
+
|
| 324 |
+
1. `_an_àitean_cervus_e`
|
| 325 |
+
2. `_ann_an_ierus_cionn`
|
| 326 |
+
3. `ann_an_na_phàrtaidh`
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
### Key Findings
|
| 330 |
+
|
| 331 |
+
- **Best Predictability:** Context-4 (word) with 93.7% predictability
|
| 332 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 333 |
+
- **Memory Trade-off:** Larger contexts require more storage (276,636 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 | 52,313 |
|
| 350 |
+
| Total Tokens | 2,168,944 |
|
| 351 |
+
| Mean Frequency | 41.46 |
|
| 352 |
+
| Median Frequency | 4 |
|
| 353 |
+
| Frequency Std Dev | 965.84 |
|
| 354 |
+
|
| 355 |
+
### Most Common Words
|
| 356 |
+
|
| 357 |
+
| Rank | Word | Frequency |
|
| 358 |
+
|------|------|-----------|
|
| 359 |
+
| 1 | an | 124,281 |
|
| 360 |
+
| 2 | a | 122,798 |
|
| 361 |
+
| 3 | ann | 64,022 |
|
| 362 |
+
| 4 | na | 56,811 |
|
| 363 |
+
| 5 | e | 46,001 |
|
| 364 |
+
| 6 | tha | 39,597 |
|
| 365 |
+
| 7 | agus | 39,434 |
|
| 366 |
+
| 8 | air | 34,639 |
|
| 367 |
+
| 9 | s | 20,787 |
|
| 368 |
+
| 10 | am | 19,741 |
|
| 369 |
+
|
| 370 |
+
### Least Common Words (from vocabulary)
|
| 371 |
+
|
| 372 |
+
| Rank | Word | Frequency |
|
| 373 |
+
|------|------|-----------|
|
| 374 |
+
| 1 | według | 2 |
|
| 375 |
+
| 2 | kodu | 2 |
|
| 376 |
+
| 3 | grup | 2 |
|
| 377 |
+
| 4 | zawodowych | 2 |
|
| 378 |
+
| 5 | sztuka | 2 |
|
| 379 |
+
| 6 | muzea | 2 |
|
| 380 |
+
| 7 | britishpedia | 2 |
|
| 381 |
+
| 8 | osobistości | 2 |
|
| 382 |
+
| 9 | bph | 2 |
|
| 383 |
+
| 10 | frightened | 2 |
|
| 384 |
+
|
| 385 |
+
### Zipf's Law Analysis
|
| 386 |
+
|
| 387 |
+
| Metric | Value |
|
| 388 |
+
|--------|-------|
|
| 389 |
+
| Zipf Coefficient | 1.1387 |
|
| 390 |
+
| R² (Goodness of Fit) | 0.997741 |
|
| 391 |
+
| Adherence Quality | **excellent** |
|
| 392 |
+
|
| 393 |
+
### Coverage Analysis
|
| 394 |
+
|
| 395 |
+
| Top N Words | Coverage |
|
| 396 |
+
|-------------|----------|
|
| 397 |
+
| Top 100 | 47.5% |
|
| 398 |
+
| Top 1,000 | 72.9% |
|
| 399 |
+
| Top 5,000 | 86.6% |
|
| 400 |
+
| Top 10,000 | 91.4% |
|
| 401 |
+
|
| 402 |
+
### Key Findings
|
| 403 |
+
|
| 404 |
+
- **Zipf Compliance:** R²=0.9977 indicates excellent adherence to Zipf's law
|
| 405 |
+
- **High Frequency Dominance:** Top 100 words cover 47.5% of corpus
|
| 406 |
+
- **Long Tail:** 42,313 words needed for remaining 8.6% 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.8836 | 0.3460 | N/A | N/A |
|
| 432 |
+
| **mono_64d** | 64 | 0.8732 | 0.2710 | N/A | N/A |
|
| 433 |
+
| **mono_128d** | 128 | 0.8209 | 0.2012 | N/A | N/A |
|
| 434 |
+
| **aligned_32d** | 32 | 0.8836 🏆 | 0.3541 | 0.0940 | 0.4500 |
|
| 435 |
+
| **aligned_64d** | 64 | 0.8732 | 0.2677 | 0.1360 | 0.4920 |
|
| 436 |
+
| **aligned_128d** | 128 | 0.8209 | 0.2012 | 0.2460 | 0.6360 |
|
| 437 |
+
|
| 438 |
+
### Key Findings
|
| 439 |
+
|
| 440 |
+
- **Best Isotropy:** aligned_32d with 0.8836 (more uniform distribution)
|
| 441 |
+
- **Semantic Density:** Average pairwise similarity of 0.2735. Lower values indicate better semantic separation.
|
| 442 |
+
- **Alignment Quality:** Aligned models achieve up to 24.6% 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.299** | 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 |
+
| `-ch` | chlabhier, chraobh, chleachdaidhean |
|
| 465 |
+
|
| 466 |
+
#### Productive Suffixes
|
| 467 |
+
| Suffix | Examples |
|
| 468 |
+
|--------|----------|
|
| 469 |
+
| `-n` | elfyn, newton, pàisdean |
|
| 470 |
+
| `-h` | dhiadhaidh, dhùnleibh, uralach |
|
| 471 |
+
| `-an` | pàisdean, seaghan, bliadhaichean |
|
| 472 |
+
| `-ch` | uralach, catailiseach, shealbhach |
|
| 473 |
+
| `-dh` | dhiadhaidh, tràghaidh, bhrathadh |
|
| 474 |
+
| `-ach` | uralach, catailiseach, shealbhach |
|
| 475 |
+
| `-ean` | pàisdean, bliadhaichean, bawean |
|
| 476 |
+
| `-adh` | bhrathadh, fòrladh, caochladh |
|
| 477 |
+
|
| 478 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 479 |
+
|
| 480 |
+
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.
|
| 481 |
+
|
| 482 |
+
| Stem | Cohesion | Substitutability | Examples |
|
| 483 |
+
|------|----------|------------------|----------|
|
| 484 |
+
| `ilea` | 1.69x | 137 contexts | eilean, àilean, bileag |
|
| 485 |
+
| `irea` | 1.60x | 117 contexts | coirea, èireas, uiread |
|
| 486 |
+
| `aidh` | 1.48x | 165 contexts | taidh, uaidh, faidh |
|
| 487 |
+
| `raid` | 1.74x | 75 contexts | òraid, àraid, braid |
|
| 488 |
+
| `inne` | 1.47x | 158 contexts | rinne, tinne, inner |
|
| 489 |
+
| `reac` | 1.87x | 51 contexts | reach, breac, creach |
|
| 490 |
+
| `isea` | 1.53x | 112 contexts | isean, lùisea, misean |
|
| 491 |
+
| `ainn` | 1.61x | 81 contexts | uainn, rainn, lainn |
|
| 492 |
+
| `hean` | 1.74x | 56 contexts | bhean, shean, mhean |
|
| 493 |
+
| `bhai` | 1.45x | 112 contexts | bhain, bhail, ubhail |
|
| 494 |
+
| `hadh` | 2.17x | 20 contexts | achadh, chadha, iadhadh |
|
| 495 |
+
| `chai` | 1.45x | 89 contexts | chain, chaid, chair |
|
| 496 |
+
|
| 497 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 498 |
+
|
| 499 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 500 |
+
|
| 501 |
+
| Prefix | Suffix | Frequency | Examples |
|
| 502 |
+
|--------|--------|-----------|----------|
|
| 503 |
+
| `-ch` | `-h` | 75 words | choltach, chraoibh |
|
| 504 |
+
| `-ch` | `-n` | 62 words | chomharran, christiaan |
|
| 505 |
+
| `-ch` | `-ch` | 35 words | choltach, chòigeach |
|
| 506 |
+
| `-ch` | `-an` | 29 words | chomharran, christiaan |
|
| 507 |
+
| `-ch` | `-dh` | 29 words | chòmhradh, cheasnachadh |
|
| 508 |
+
| `-ch` | `-ach` | 23 words | choltach, chòigeach |
|
| 509 |
+
| `-ch` | `-ean` | 17 words | chomharraidhean, chlachairean |
|
| 510 |
+
| `-ch` | `-adh` | 17 words | chòmhradh, cheasnachadh |
|
| 511 |
+
| `-ch` | `-in` | 12 words | chruinnein, chaocháin |
|
| 512 |
+
| `-ch` | `-idh` | 12 words | chàraidh, chnagaidh |
|
| 513 |
+
|
| 514 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 515 |
+
|
| 516 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 517 |
+
|
| 518 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 519 |
+
|------|-----------------|------------|------|
|
| 520 |
+
| cruthachadh | **`cruth-ach-adh`** | 6.0 | `cruth` |
|
| 521 |
+
| teasachadh | **`teas-ach-adh`** | 6.0 | `teas` |
|
| 522 |
+
| blàthachadh | **`blàth-ach-adh`** | 6.0 | `blàth` |
|
| 523 |
+
| adhartachadh | **`adhart-ach-adh`** | 6.0 | `adhart` |
|
| 524 |
+
| srònachadh | **`sròn-ach-adh`** | 6.0 | `sròn` |
|
| 525 |
+
| ceàrnaidhean | **`ceàrna-idh-ean`** | 6.0 | `ceàrna` |
|
| 526 |
+
| ràitheachan | **`ràithe-ach-an`** | 6.0 | `ràithe` |
|
| 527 |
+
| itealachadh | **`iteal-ach-adh`** | 6.0 | `iteal` |
|
| 528 |
+
| ealainean | **`eala-in-ean`** | 6.0 | `eala` |
|
| 529 |
+
| chliathach | **`ch-liath-ach`** | 6.0 | `liath` |
|
| 530 |
+
| sinnsirean | **`sinnsir-ean`** | 4.5 | `sinnsir` |
|
| 531 |
+
| prionnsabalan | **`prionnsabal-an`** | 4.5 | `prionnsabal` |
|
| 532 |
+
| feumalachdan | **`feumalachd-an`** | 4.5 | `feumalachd` |
|
| 533 |
+
| sheinneadairean | **`sheinneadair-ean`** | 4.5 | `sheinneadair` |
|
| 534 |
+
| breitheamhan | **`breitheamh-an`** | 4.5 | `breitheamh` |
|
| 535 |
+
|
| 536 |
+
### 6.6 Linguistic Interpretation
|
| 537 |
+
|
| 538 |
+
> **Automated Insight:**
|
| 539 |
+
The language Scottish Gaelic shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
|
| 540 |
+
|
| 541 |
+
---
|
| 542 |
+
## 7. Summary & Recommendations
|
| 543 |
+
|
| 544 |
+

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