Upload all models and assets for ch (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +547 -0
- models/embeddings/monolingual/ch_128d.bin +3 -0
- models/embeddings/monolingual/ch_128d.meta.json +1 -0
- models/embeddings/monolingual/ch_128d_metadata.json +13 -0
- models/embeddings/monolingual/ch_32d.bin +3 -0
- models/embeddings/monolingual/ch_32d.meta.json +1 -0
- models/embeddings/monolingual/ch_32d_metadata.json +13 -0
- models/embeddings/monolingual/ch_64d.bin +3 -0
- models/embeddings/monolingual/ch_64d.meta.json +1 -0
- models/embeddings/monolingual/ch_64d_metadata.json +13 -0
- models/subword_markov/ch_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/ch_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/ch_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/ch_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/ch_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/ch_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/ch_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/ch_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/ch_2gram_subword.parquet +3 -0
- models/subword_ngram/ch_2gram_subword_metadata.json +7 -0
- models/subword_ngram/ch_3gram_subword.parquet +3 -0
- models/subword_ngram/ch_3gram_subword_metadata.json +7 -0
- models/subword_ngram/ch_4gram_subword.parquet +3 -0
- models/subword_ngram/ch_4gram_subword_metadata.json +7 -0
- models/tokenizer/ch_tokenizer_16k.model +3 -0
- models/tokenizer/ch_tokenizer_16k.vocab +0 -0
- models/tokenizer/ch_tokenizer_8k.model +3 -0
- models/tokenizer/ch_tokenizer_8k.vocab +0 -0
- models/vocabulary/ch_vocabulary.parquet +3 -0
- models/vocabulary/ch_vocabulary_metadata.json +15 -0
- models/word_markov/ch_markov_ctx1_word.parquet +3 -0
- models/word_markov/ch_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/ch_markov_ctx2_word.parquet +3 -0
- models/word_markov/ch_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/ch_markov_ctx3_word.parquet +3 -0
- models/word_markov/ch_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/ch_markov_ctx4_word.parquet +3 -0
- models/word_markov/ch_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/ch_2gram_word.parquet +3 -0
- models/word_ngram/ch_2gram_word_metadata.json +7 -0
- models/word_ngram/ch_3gram_word.parquet +3 -0
- models/word_ngram/ch_3gram_word_metadata.json +7 -0
- models/word_ngram/ch_4gram_word.parquet +3 -0
- models/word_ngram/ch_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.png +0 -0
- visualizations/embedding_norms.png +0 -0
- visualizations/embedding_similarity.png +3 -0
- visualizations/markov_branching.png +0 -0
- visualizations/markov_contexts.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: ch
|
| 3 |
+
language_name: CH
|
| 4 |
+
language_family: austronesian_oceanic_other
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-austronesian_oceanic_other
|
| 15 |
+
license: mit
|
| 16 |
+
library_name: wikilangs
|
| 17 |
+
pipeline_tag: feature-extraction
|
| 18 |
+
datasets:
|
| 19 |
+
- omarkamali/wikipedia-monthly
|
| 20 |
+
dataset_info:
|
| 21 |
+
name: wikipedia-monthly
|
| 22 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 23 |
+
metrics:
|
| 24 |
+
- name: best_compression_ratio
|
| 25 |
+
type: compression
|
| 26 |
+
value: 4.113
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.0314
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 2085
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# CH - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **CH** Wikipedia data.
|
| 40 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 41 |
+
|
| 42 |
+
## 📋 Repository Contents
|
| 43 |
+
|
| 44 |
+
### Models & Assets
|
| 45 |
+
|
| 46 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 47 |
+
- N-gram models (2, 3, 4-gram)
|
| 48 |
+
- Markov chains (context of 1, 2, 3 and 4)
|
| 49 |
+
- Subword N-gram and Markov chains
|
| 50 |
+
- Embeddings in various sizes and dimensions
|
| 51 |
+
- Language Vocabulary
|
| 52 |
+
- Language Statistics
|
| 53 |
+

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

|
| 70 |
+
|
| 71 |
+
### Results
|
| 72 |
+
|
| 73 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 74 |
+
|------------|-------------|---------------|----------|--------------|
|
| 75 |
+
| **8k** | 3.833x | 3.79 | 0.1107% | 46,087 |
|
| 76 |
+
| **16k** | 4.113x 🏆 | 4.07 | 0.1187% | 42,948 |
|
| 77 |
+
|
| 78 |
+
### Tokenization Examples
|
| 79 |
+
|
| 80 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 81 |
+
|
| 82 |
+
**Sample 1:** `+ 125px 125px 300px
|
| 83 |
+
Bulgaria, capitat Sofia.`
|
| 84 |
+
|
| 85 |
+
| Vocab | Tokens | Count |
|
| 86 |
+
|-------|--------|-------|
|
| 87 |
+
| 8k | `▁+ ▁ 1 2 5 px ▁ 1 2 5 ... (+12 more)` | 22 |
|
| 88 |
+
| 16k | `▁+ ▁ 1 2 5 px ▁ 1 2 5 ... (+11 more)` | 21 |
|
| 89 |
+
|
| 90 |
+
**Sample 2:** `Giacomo Puccini (1858, Lucca, Italia - 1924, Bruselas, Belgica), un danderu åtmo...`
|
| 91 |
+
|
| 92 |
+
| Vocab | Tokens | Count |
|
| 93 |
+
|-------|--------|-------|
|
| 94 |
+
| 8k | `▁gi a com o ▁pu ccini ▁( 1 8 5 ... (+29 more)` | 39 |
|
| 95 |
+
| 16k | `▁giacomo ▁puccini ▁( 1 8 5 8 , ▁lucca , ... (+25 more)` | 35 |
|
| 96 |
+
|
| 97 |
+
**Sample 3:** `I Sisteman Laibirihan Pupbleko Guåhan este na ufsiåt na sistema para i islan Guå...`
|
| 98 |
+
|
| 99 |
+
| Vocab | Tokens | Count |
|
| 100 |
+
|-------|--------|-------|
|
| 101 |
+
| 8k | `▁i ▁sisteman ▁lai birihan ▁pupble ko ▁guåhan ▁este ▁na ▁ufsiåt ... (+7 more)` | 17 |
|
| 102 |
+
| 16k | `▁i ▁sisteman ▁laibirihan ▁pupbleko ▁guåhan ▁este ▁na ▁ufsiåt ▁na ▁sistema ... (+5 more)` | 15 |
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
### Key Findings
|
| 106 |
+
|
| 107 |
+
- **Best Compression:** 16k achieves 4.113x compression
|
| 108 |
+
- **Lowest UNK Rate:** 8k with 0.1107% unknown tokens
|
| 109 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 110 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
## 2. N-gram Model Evaluation
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
|
| 119 |
+
### Results
|
| 120 |
+
|
| 121 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 122 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 123 |
+
| **2-gram** | 304 🏆 | 8.25 | 836 | 61.4% | 100.0% |
|
| 124 |
+
| **2-gram** | 262 🏆 | 8.03 | 1,028 | 68.2% | 99.9% |
|
| 125 |
+
| **3-gram** | 367 | 8.52 | 1,276 | 58.0% | 93.7% |
|
| 126 |
+
| **3-gram** | 1,384 | 10.43 | 5,255 | 35.7% | 78.3% |
|
| 127 |
+
| **4-gram** | 472 | 8.88 | 1,937 | 54.6% | 83.8% |
|
| 128 |
+
| **4-gram** | 3,626 | 11.82 | 13,909 | 27.2% | 58.1% |
|
| 129 |
+
|
| 130 |
+
### Top 5 N-grams by Size
|
| 131 |
+
|
| 132 |
+
**2-grams:**
|
| 133 |
+
|
| 134 |
+
| Rank | N-gram | Count |
|
| 135 |
+
|------|--------|-------|
|
| 136 |
+
| 1 | `katigoria :` | 774 |
|
| 137 |
+
| 2 | `estados unidos` | 443 |
|
| 138 |
+
| 3 | `. katigoria` | 411 |
|
| 139 |
+
| 4 | `i sengsong` | 364 |
|
| 140 |
+
| 5 | `. guåha` | 328 |
|
| 141 |
+
|
| 142 |
+
**3-grams:**
|
| 143 |
+
|
| 144 |
+
| Rank | N-gram | Count |
|
| 145 |
+
|------|--------|-------|
|
| 146 |
+
| 1 | `. katigoria :` | 411 |
|
| 147 |
+
| 2 | `nu i senso` | 308 |
|
| 148 |
+
| 3 | `na populasion i` | 304 |
|
| 149 |
+
| 4 | `na tataogues na` | 304 |
|
| 150 |
+
| 5 | `tataogues na populasion` | 304 |
|
| 151 |
+
|
| 152 |
+
**4-grams:**
|
| 153 |
+
|
| 154 |
+
| Rank | N-gram | Count |
|
| 155 |
+
|------|--------|-------|
|
| 156 |
+
| 1 | `na tataogues na populasion` | 304 |
|
| 157 |
+
| 2 | `tataogues na populasion i` | 303 |
|
| 158 |
+
| 3 | `i sengsong nu i` | 299 |
|
| 159 |
+
| 4 | `populasion i sengsong nu` | 299 |
|
| 160 |
+
| 5 | `na populasion i sengsong` | 299 |
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
### Key Findings
|
| 164 |
+
|
| 165 |
+
- **Best Perplexity:** 2-gram with 262
|
| 166 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 167 |
+
- **Coverage:** Top-1000 patterns cover ~58% of corpus
|
| 168 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 169 |
+
|
| 170 |
+
---
|
| 171 |
+
## 3. Markov Chain Evaluation
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+
### Results
|
| 178 |
+
|
| 179 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 180 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 181 |
+
| **1** | 0.4437 | 1.360 | 2.83 | 5,950 | 55.6% |
|
| 182 |
+
| **1** | 1.1631 | 2.239 | 8.71 | 235 | 0.0% |
|
| 183 |
+
| **2** | 0.1938 | 1.144 | 1.42 | 16,706 | 80.6% |
|
| 184 |
+
| **2** | 1.1662 | 2.244 | 5.45 | 2,042 | 0.0% |
|
| 185 |
+
| **3** | 0.0836 | 1.060 | 1.14 | 23,561 | 91.6% |
|
| 186 |
+
| **3** | 0.7209 | 1.648 | 2.73 | 11,105 | 27.9% |
|
| 187 |
+
| **4** | 0.0382 🏆 | 1.027 | 1.06 | 26,653 | 96.2% |
|
| 188 |
+
| **4** | 0.3731 🏆 | 1.295 | 1.67 | 30,233 | 62.7% |
|
| 189 |
+
|
| 190 |
+
### Generated Text Samples
|
| 191 |
+
|
| 192 |
+
Below are text samples generated from each Markov chain model:
|
| 193 |
+
|
| 194 |
+
**Context Size 1:**
|
| 195 |
+
|
| 196 |
+
1. `i sengsong dong hoi . guåha 1 ] yan i isla ni mineddong - spike barker`
|
| 197 |
+
2. `. guåha 103 , un lepblo - ña , krasnodar ) minisengsóng / web . katigoria`
|
| 198 |
+
3. `' huyong as a ' gue ' aotoridat para otro na populasion i senso 2010 .`
|
| 199 |
+
|
| 200 |
+
**Context Size 2:**
|
| 201 |
+
|
| 202 |
+
1. `katigoria : dangkulo katigoria : chile`
|
| 203 |
+
2. `. katigoria : dangkulo katigoria : china katigoria : yeogråfia katigoria : dangkulo katigoria : esta...`
|
| 204 |
+
3. `i sengsong nu i senso 2010 . katigoria : estados unidos . guåha 4 154 200 na`
|
| 205 |
+
|
| 206 |
+
**Context Size 3:**
|
| 207 |
+
|
| 208 |
+
1. `. katigoria : tiempo`
|
| 209 |
+
2. `nu i senso 2000 . katigoria : dangkulo katigoria : estados unidos`
|
| 210 |
+
3. `na tataogues na populasion i sengsong nu i senso 2016 ( ine ) . katigoria : dangkulo katigoria`
|
| 211 |
+
|
| 212 |
+
**Context Size 4:**
|
| 213 |
+
|
| 214 |
+
1. `na tataogues na populasion i sengsong nu i senso 2010 . katigoria : dangkulo katigoria : estados uni...`
|
| 215 |
+
2. `tataogues na populasion i sengsong nu i senso 2012 . katigoria : chapan katigoria : dangkulo`
|
| 216 |
+
3. `i sengsong nu i senso 2014 . katigoria : dangkulo katigoria : estados unidos`
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
### Key Findings
|
| 220 |
+
|
| 221 |
+
- **Best Predictability:** Context-4 with 96.2% predictability
|
| 222 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 223 |
+
- **Memory Trade-off:** Larger contexts require more storage (30,233 contexts)
|
| 224 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
## 4. Vocabulary Analysis
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
|
| 235 |
+
### Statistics
|
| 236 |
+
|
| 237 |
+
| Metric | Value |
|
| 238 |
+
|--------|-------|
|
| 239 |
+
| Vocabulary Size | 2,085 |
|
| 240 |
+
| Total Tokens | 25,270 |
|
| 241 |
+
| Mean Frequency | 12.12 |
|
| 242 |
+
| Median Frequency | 3 |
|
| 243 |
+
| Frequency Std Dev | 73.61 |
|
| 244 |
+
|
| 245 |
+
### Most Common Words
|
| 246 |
+
|
| 247 |
+
| Rank | Word | Frequency |
|
| 248 |
+
|------|------|-----------|
|
| 249 |
+
| 1 | i | 2,329 |
|
| 250 |
+
| 2 | na | 1,512 |
|
| 251 |
+
| 3 | gi | 982 |
|
| 252 |
+
| 4 | katigoria | 774 |
|
| 253 |
+
| 5 | estados | 459 |
|
| 254 |
+
| 6 | unidos | 448 |
|
| 255 |
+
| 7 | yan | 440 |
|
| 256 |
+
| 8 | sengsong | 370 |
|
| 257 |
+
| 9 | guåha | 356 |
|
| 258 |
+
| 10 | ni | 339 |
|
| 259 |
+
|
| 260 |
+
### Least Common Words (from vocabulary)
|
| 261 |
+
|
| 262 |
+
| Rank | Word | Frequency |
|
| 263 |
+
|------|------|-----------|
|
| 264 |
+
| 1 | säger | 2 |
|
| 265 |
+
| 2 | ett | 2 |
|
| 266 |
+
| 3 | så | 2 |
|
| 267 |
+
| 4 | du | 2 |
|
| 268 |
+
| 5 | skate | 2 |
|
| 269 |
+
| 6 | med | 2 |
|
| 270 |
+
| 7 | smaskiga | 2 |
|
| 271 |
+
| 8 | löken | 2 |
|
| 272 |
+
| 9 | tychy | 2 |
|
| 273 |
+
| 10 | museon | 2 |
|
| 274 |
+
|
| 275 |
+
### Zipf's Law Analysis
|
| 276 |
+
|
| 277 |
+
| Metric | Value |
|
| 278 |
+
|--------|-------|
|
| 279 |
+
| Zipf Coefficient | 0.9652 |
|
| 280 |
+
| R² (Goodness of Fit) | 0.986639 |
|
| 281 |
+
| Adherence Quality | **excellent** |
|
| 282 |
+
|
| 283 |
+
### Coverage Analysis
|
| 284 |
+
|
| 285 |
+
| Top N Words | Coverage |
|
| 286 |
+
|-------------|----------|
|
| 287 |
+
| Top 100 | 62.8% |
|
| 288 |
+
| Top 1,000 | 90.4% |
|
| 289 |
+
| Top 5,000 | 0.0% |
|
| 290 |
+
| Top 10,000 | 0.0% |
|
| 291 |
+
|
| 292 |
+
### Key Findings
|
| 293 |
+
|
| 294 |
+
- **Zipf Compliance:** R²=0.9866 indicates excellent adherence to Zipf's law
|
| 295 |
+
- **High Frequency Dominance:** Top 100 words cover 62.8% of corpus
|
| 296 |
+
- **Long Tail:** -7,915 words needed for remaining 100.0% coverage
|
| 297 |
+
|
| 298 |
+
---
|
| 299 |
+
## 5. Word Embeddings Evaluation
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
|
| 309 |
+
### Model Comparison
|
| 310 |
+
|
| 311 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 312 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 313 |
+
| **mono_32d** | 546 | 32 | 1.807 | 0.436 | 0.0314 🏆 |
|
| 314 |
+
| **mono_64d** | 546 | 64 | 1.773 | 0.400 | 0.0096 |
|
| 315 |
+
| **mono_128d** | 546 | 128 | 1.779 | 0.401 | 0.0020 |
|
| 316 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 317 |
+
|
| 318 |
+
### Key Findings
|
| 319 |
+
|
| 320 |
+
- **Best Isotropy:** mono_32d with 0.0314 (more uniform distribution)
|
| 321 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 322 |
+
- **Vocabulary Coverage:** All models cover 546 words
|
| 323 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 324 |
+
|
| 325 |
+
---
|
| 326 |
+
## 6. Summary & Recommendations
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
|
| 330 |
+
### Production Recommendations
|
| 331 |
+
|
| 332 |
+
| Component | Recommended | Rationale |
|
| 333 |
+
|-----------|-------------|-----------|
|
| 334 |
+
| Tokenizer | **32k BPE** | Best compression (4.11x) with low UNK rate |
|
| 335 |
+
| N-gram | **5-gram** | Lowest perplexity (262) |
|
| 336 |
+
| Markov | **Context-4** | Highest predictability (96.2%) |
|
| 337 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 338 |
+
|
| 339 |
+
---
|
| 340 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 341 |
+
|
| 342 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 343 |
+
|
| 344 |
+
### Tokenizer Metrics
|
| 345 |
+
|
| 346 |
+
**Compression Ratio**
|
| 347 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 348 |
+
>
|
| 349 |
+
> *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.
|
| 350 |
+
>
|
| 351 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 352 |
+
|
| 353 |
+
**Average Token Length (Fertility)**
|
| 354 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 355 |
+
>
|
| 356 |
+
> *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.
|
| 357 |
+
>
|
| 358 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 359 |
+
|
| 360 |
+
**Unknown Token Rate (OOV Rate)**
|
| 361 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 362 |
+
>
|
| 363 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 364 |
+
>
|
| 365 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 366 |
+
|
| 367 |
+
### N-gram Model Metrics
|
| 368 |
+
|
| 369 |
+
**Perplexity**
|
| 370 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 371 |
+
>
|
| 372 |
+
> *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.
|
| 373 |
+
>
|
| 374 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 375 |
+
|
| 376 |
+
**Entropy**
|
| 377 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 378 |
+
>
|
| 379 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 380 |
+
>
|
| 381 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 382 |
+
|
| 383 |
+
**Coverage (Top-K)**
|
| 384 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 385 |
+
>
|
| 386 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 387 |
+
>
|
| 388 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 389 |
+
|
| 390 |
+
### Markov Chain Metrics
|
| 391 |
+
|
| 392 |
+
**Average Entropy**
|
| 393 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 394 |
+
>
|
| 395 |
+
> *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).
|
| 396 |
+
>
|
| 397 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 398 |
+
|
| 399 |
+
**Branching Factor**
|
| 400 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 401 |
+
>
|
| 402 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 403 |
+
>
|
| 404 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 405 |
+
|
| 406 |
+
**Predictability**
|
| 407 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 408 |
+
>
|
| 409 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 410 |
+
>
|
| 411 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 412 |
+
|
| 413 |
+
### Vocabulary & Zipf's Law Metrics
|
| 414 |
+
|
| 415 |
+
**Zipf's Coefficient**
|
| 416 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 417 |
+
>
|
| 418 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 419 |
+
>
|
| 420 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 421 |
+
|
| 422 |
+
**R² (Coefficient of Determination)**
|
| 423 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 424 |
+
>
|
| 425 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 426 |
+
>
|
| 427 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 428 |
+
|
| 429 |
+
**Vocabulary Coverage**
|
| 430 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 431 |
+
>
|
| 432 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 433 |
+
>
|
| 434 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 435 |
+
|
| 436 |
+
### Word Embedding Metrics
|
| 437 |
+
|
| 438 |
+
**Isotropy**
|
| 439 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 440 |
+
>
|
| 441 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 442 |
+
>
|
| 443 |
+
> *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.
|
| 444 |
+
|
| 445 |
+
**Average Norm**
|
| 446 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 447 |
+
>
|
| 448 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 449 |
+
>
|
| 450 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 451 |
+
|
| 452 |
+
**Cosine Similarity**
|
| 453 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 454 |
+
>
|
| 455 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 456 |
+
>
|
| 457 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 458 |
+
|
| 459 |
+
**t-SNE Visualization**
|
| 460 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 461 |
+
>
|
| 462 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 463 |
+
>
|
| 464 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 465 |
+
|
| 466 |
+
### General Interpretation Guidelines
|
| 467 |
+
|
| 468 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 469 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 470 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 471 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 472 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
### Visualizations Index
|
| 476 |
+
|
| 477 |
+
| Visualization | Description |
|
| 478 |
+
|---------------|-------------|
|
| 479 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 480 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 481 |
+
| Tokenizer OOV | Unknown token rates |
|
| 482 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 483 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 484 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 485 |
+
| N-gram Coverage | Top pattern coverage |
|
| 486 |
+
| N-gram Unique | Unique n-gram counts |
|
| 487 |
+
| Markov Entropy | Entropy by context size |
|
| 488 |
+
| Markov Branching | Branching factor by context |
|
| 489 |
+
| Markov Contexts | Unique context counts |
|
| 490 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 491 |
+
| Vocab Frequency | Word frequency distribution |
|
| 492 |
+
| Top 20 Words | Most frequent words |
|
| 493 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 494 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 495 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 496 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 497 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 498 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 499 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 500 |
+
| Position Encoding | Encoding method comparison |
|
| 501 |
+
| Model Sizes | Storage requirements |
|
| 502 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 503 |
+
|
| 504 |
+
---
|
| 505 |
+
## About This Project
|
| 506 |
+
|
| 507 |
+
### Data Source
|
| 508 |
+
|
| 509 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 510 |
+
|
| 511 |
+
### Project
|
| 512 |
+
|
| 513 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 514 |
+
|
| 515 |
+
### Maintainer
|
| 516 |
+
|
| 517 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 518 |
+
|
| 519 |
+
### Citation
|
| 520 |
+
|
| 521 |
+
If you use these models in your research, please cite:
|
| 522 |
+
|
| 523 |
+
```bibtex
|
| 524 |
+
@misc{wikilangs2025,
|
| 525 |
+
author = {Kamali, Omar},
|
| 526 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 527 |
+
year = {2025},
|
| 528 |
+
publisher = {HuggingFace},
|
| 529 |
+
url = {https://huggingface.co/wikilangs}
|
| 530 |
+
institution = {Omneity Labs}
|
| 531 |
+
}
|
| 532 |
+
```
|
| 533 |
+
|
| 534 |
+
### License
|
| 535 |
+
|
| 536 |
+
MIT License - Free for academic and commercial use.
|
| 537 |
+
|
| 538 |
+
### Links
|
| 539 |
+
|
| 540 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 541 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 542 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 543 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 544 |
+
---
|
| 545 |
+
*Generated by Wikilangs Models Pipeline*
|
| 546 |
+
|
| 547 |
+
*Report Date: 2025-12-28 22:40:52*
|
models/embeddings/monolingual/ch_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c70139eede0356c2aeb600acc0358b3d5553ac4276060a02b299bcffe2777ed7
|
| 3 |
+
size 1024568094
|
models/embeddings/monolingual/ch_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ch", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ch_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ch",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 128,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 546
|
| 13 |
+
}
|
models/embeddings/monolingual/ch_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f057607a3b0833c3df0ee72e3fe1c4413a523a5dd0469280f13475660f999d12
|
| 3 |
+
size 256148766
|
models/embeddings/monolingual/ch_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ch", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ch_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ch",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 32,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 546
|
| 13 |
+
}
|
models/embeddings/monolingual/ch_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:69ee5065092313be64cc01d2936ed7d6e432a293090c7622e103b54dd6831728
|
| 3 |
+
size 512288542
|
models/embeddings/monolingual/ch_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "ch", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/ch_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ch",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 64,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 546
|
| 13 |
+
}
|
models/subword_markov/ch_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d8bcbadf13f8c04b3bf774db4566c21081c309daade48a05ab547c4d55019eb
|
| 3 |
+
size 18449
|
models/subword_markov/ch_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 235,
|
| 6 |
+
"total_transitions": 176029
|
| 7 |
+
}
|
models/subword_markov/ch_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:392ca8b7bc544928287f25cc942dc9006c35872f09a7d9b575d39b713087ca72
|
| 3 |
+
size 77639
|
models/subword_markov/ch_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 2042,
|
| 6 |
+
"total_transitions": 175418
|
| 7 |
+
}
|
models/subword_markov/ch_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25f072530585a2aaaf12cfc35aca7b5b9527eaaf67a243d06f265d95cf78682d
|
| 3 |
+
size 217872
|
models/subword_markov/ch_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 11105,
|
| 6 |
+
"total_transitions": 174807
|
| 7 |
+
}
|
models/subword_markov/ch_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8e96aca1a4a4e61ba52c2373da77f16710ba861c64b8653015fe9cb4c3d6b24
|
| 3 |
+
size 455667
|
models/subword_markov/ch_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 30233,
|
| 6 |
+
"total_transitions": 174196
|
| 7 |
+
}
|
models/subword_ngram/ch_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ecc6ad2f5caba9c4acc2722951d35812ddfd0748e35945b8eb1019aee27202a
|
| 3 |
+
size 13892
|
models/subword_ngram/ch_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 1028,
|
| 6 |
+
"total_ngrams": 176029
|
| 7 |
+
}
|
models/subword_ngram/ch_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1354a9304538e4be2c8b97bc1d85d3fdb590e5129f6777ec6756e2fc90f0cbb5
|
| 3 |
+
size 57312
|
models/subword_ngram/ch_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 5255,
|
| 6 |
+
"total_ngrams": 175418
|
| 7 |
+
}
|
models/subword_ngram/ch_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a808ff2dd136df8018eda9014fabe65264cfd207f4de524397af0d418d2138b
|
| 3 |
+
size 161401
|
models/subword_ngram/ch_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 13909,
|
| 6 |
+
"total_ngrams": 174807
|
| 7 |
+
}
|
models/tokenizer/ch_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:634be9f783e2a54aba945f22daf1ece4b4429563bdaa5c3384c14fe647a9d98e
|
| 3 |
+
size 497034
|
models/tokenizer/ch_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/ch_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfd71404f2712cc4642d3377318b688e8290037be26719b11d368397ae231246
|
| 3 |
+
size 372129
|
models/tokenizer/ch_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/ch_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c46420d7f4bd7e37454cbfb5ab90ff0e34bce723dfd3188face6f244d8bee5dd
|
| 3 |
+
size 35121
|
models/vocabulary/ch_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "ch",
|
| 3 |
+
"vocabulary_size": 2085,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.20342884628598915,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.5450766165051879,
|
| 8 |
+
"top_1000": 0.7851302137016423,
|
| 9 |
+
"top_5000": 0.9683570397856112
|
| 10 |
+
},
|
| 11 |
+
"hapax_count": 3836,
|
| 12 |
+
"hapax_ratio": 0.6478635365647695,
|
| 13 |
+
"total_documents": 611
|
| 14 |
+
}
|
| 15 |
+
}
|
models/word_markov/ch_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e948b8936dfad1c80d82463e9f827ccb45e00e1f39c0278a5f8dcb52f513d0e
|
| 3 |
+
size 160242
|
models/word_markov/ch_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 5950,
|
| 6 |
+
"total_transitions": 37722
|
| 7 |
+
}
|
models/word_markov/ch_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52139330dac4acad3c457e2ab79378f0526509cd5e471084d6880cab6e60a458
|
| 3 |
+
size 294029
|
models/word_markov/ch_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 16706,
|
| 6 |
+
"total_transitions": 37111
|
| 7 |
+
}
|
models/word_markov/ch_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c9e6d5b859f81c57a9f99099ccded171647e39eae754557075bdfd4a337ed26
|
| 3 |
+
size 398195
|
models/word_markov/ch_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 23561,
|
| 6 |
+
"total_transitions": 36500
|
| 7 |
+
}
|
models/word_markov/ch_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66d2fbe2c638e09991efa987884e37c9623e4b6a995ba9f88712a09302a8c56b
|
| 3 |
+
size 464553
|
models/word_markov/ch_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_contexts": 26653,
|
| 6 |
+
"total_transitions": 35890
|
| 7 |
+
}
|
models/word_ngram/ch_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1a487161d98fe0389e02719d211ce48eea94d42d9c8de5fcd3f2c29a261a1e9
|
| 3 |
+
size 12757
|
models/word_ngram/ch_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 836,
|
| 6 |
+
"total_ngrams": 37722
|
| 7 |
+
}
|
models/word_ngram/ch_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4c5275f134f6244b6e79c0d9cc634daa8b21a9995652d2d33b6ab9e77c23e6c
|
| 3 |
+
size 19693
|
models/word_ngram/ch_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 1276,
|
| 6 |
+
"total_ngrams": 37111
|
| 7 |
+
}
|
models/word_ngram/ch_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c4f43fda886e653a04960a529dd8aa9a67720db0872676fb2081c04991bb158
|
| 3 |
+
size 30712
|
models/word_ngram/ch_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "ch",
|
| 5 |
+
"unique_ngrams": 1937,
|
| 6 |
+
"total_ngrams": 36500
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|
visualizations/embedding_norms.png
ADDED
|
visualizations/embedding_similarity.png
ADDED
|
Git LFS Details
|
visualizations/markov_branching.png
ADDED
|
visualizations/markov_contexts.png
ADDED
|