Upload all models and assets for bbc (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +556 -0
- models/embeddings/monolingual/bbc_128d.bin +3 -0
- models/embeddings/monolingual/bbc_128d.meta.json +1 -0
- models/embeddings/monolingual/bbc_128d_metadata.json +13 -0
- models/embeddings/monolingual/bbc_32d.bin +3 -0
- models/embeddings/monolingual/bbc_32d.meta.json +1 -0
- models/embeddings/monolingual/bbc_32d_metadata.json +13 -0
- models/embeddings/monolingual/bbc_64d.bin +3 -0
- models/embeddings/monolingual/bbc_64d.meta.json +1 -0
- models/embeddings/monolingual/bbc_64d_metadata.json +13 -0
- models/subword_markov/bbc_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/bbc_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/bbc_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/bbc_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/bbc_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/bbc_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/bbc_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/bbc_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/bbc_2gram_subword.parquet +3 -0
- models/subword_ngram/bbc_2gram_subword_metadata.json +7 -0
- models/subword_ngram/bbc_3gram_subword.parquet +3 -0
- models/subword_ngram/bbc_3gram_subword_metadata.json +7 -0
- models/subword_ngram/bbc_4gram_subword.parquet +3 -0
- models/subword_ngram/bbc_4gram_subword_metadata.json +7 -0
- models/tokenizer/bbc_tokenizer_16k.model +3 -0
- models/tokenizer/bbc_tokenizer_16k.vocab +0 -0
- models/tokenizer/bbc_tokenizer_32k.model +3 -0
- models/tokenizer/bbc_tokenizer_32k.vocab +0 -0
- models/tokenizer/bbc_tokenizer_64k.model +3 -0
- models/tokenizer/bbc_tokenizer_64k.vocab +0 -0
- models/tokenizer/bbc_tokenizer_8k.model +3 -0
- models/tokenizer/bbc_tokenizer_8k.vocab +0 -0
- models/vocabulary/bbc_vocabulary.parquet +3 -0
- models/vocabulary/bbc_vocabulary_metadata.json +16 -0
- models/word_markov/bbc_markov_ctx1_word.parquet +3 -0
- models/word_markov/bbc_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/bbc_markov_ctx2_word.parquet +3 -0
- models/word_markov/bbc_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/bbc_markov_ctx3_word.parquet +3 -0
- models/word_markov/bbc_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/bbc_markov_ctx4_word.parquet +3 -0
- models/word_markov/bbc_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/bbc_2gram_word.parquet +3 -0
- models/word_ngram/bbc_2gram_word_metadata.json +7 -0
- models/word_ngram/bbc_3gram_word.parquet +3 -0
- models/word_ngram/bbc_3gram_word_metadata.json +7 -0
- models/word_ngram/bbc_4gram_word.parquet +3 -0
- models/word_ngram/bbc_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.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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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: bbc
|
| 3 |
+
language_name: BBC
|
| 4 |
+
language_family: austronesian_batak
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-austronesian_batak
|
| 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.433
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8253
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 24711
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BBC - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BBC** 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.867x | 3.83 | 0.1235% | 1,466,873 |
|
| 76 |
+
| **16k** | 4.118x | 4.08 | 0.1315% | 1,377,727 |
|
| 77 |
+
| **32k** | 4.304x | 4.27 | 0.1375% | 1,318,061 |
|
| 78 |
+
| **64k** | 4.433x 🏆 | 4.39 | 0.1416% | 1,279,829 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Panjunan i ma sada huta na adong di Kecamatan Petarukan, Kabupaten Pemalang, Pr...`
|
| 85 |
+
|
| 86 |
+
| Vocab | Tokens | Count |
|
| 87 |
+
|-------|--------|-------|
|
| 88 |
+
| 8k | `▁panj unan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 89 |
+
| 16k | `▁panj unan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 90 |
+
| 32k | `▁panj unan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 91 |
+
| 64k | `▁panjunan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ▁petarukan ... (+10 more)` | 20 |
|
| 92 |
+
|
| 93 |
+
**Sample 2:** `Ampapaga (Surat Batak:ᯀᯔ᯲ᯇᯇᯎ) i ma sada suansuanan na tubu di gadu ni hauma.
|
| 94 |
+
|
| 95 |
+
P...`
|
| 96 |
+
|
| 97 |
+
| Vocab | Tokens | Count |
|
| 98 |
+
|-------|--------|-------|
|
| 99 |
+
| 8k | `▁amp ap aga ▁( surat ▁batak : ᯀ ᯔ᯲ ᯇ ... (+20 more)` | 30 |
|
| 100 |
+
| 16k | `▁amp ap aga ▁( surat ▁batak : ᯀ ᯔ᯲ᯇ ᯇ ... (+18 more)` | 28 |
|
| 101 |
+
| 32k | `▁amp apaga ▁( surat ▁batak : ᯀ ᯔ᯲ᯇᯇᯎ ) ▁i ... (+15 more)` | 25 |
|
| 102 |
+
| 64k | `▁ampapaga ▁( surat ▁batak : ᯀᯔ᯲ᯇᯇᯎ ) ▁i ▁ma ▁sada ... (+13 more)` | 23 |
|
| 103 |
+
|
| 104 |
+
**Sample 3:** `Sungapan i ma sada huta na adong di Kecamatan Pemalang, Kabupaten Pemalang, Pro...`
|
| 105 |
+
|
| 106 |
+
| Vocab | Tokens | Count |
|
| 107 |
+
|-------|--------|-------|
|
| 108 |
+
| 8k | `▁sung apan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 109 |
+
| 16k | `▁sung apan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 110 |
+
| 32k | `▁sung apan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ... (+11 more)` | 21 |
|
| 111 |
+
| 64k | `▁sungapan ▁i ▁ma ▁sada ▁huta ▁na ▁adong ▁di ▁kecamatan ▁pemalang ... (+10 more)` | 20 |
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
### Key Findings
|
| 115 |
+
|
| 116 |
+
- **Best Compression:** 64k achieves 4.433x compression
|
| 117 |
+
- **Lowest UNK Rate:** 8k with 0.1235% unknown tokens
|
| 118 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 119 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
## 2. N-gram Model Evaluation
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
|
| 128 |
+
### Results
|
| 129 |
+
|
| 130 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 131 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 132 |
+
| **2-gram** | 7,191 🏆 | 12.81 | 30,496 | 17.8% | 49.6% |
|
| 133 |
+
| **2-gram** | 209 🏆 | 7.70 | 2,868 | 75.2% | 99.1% |
|
| 134 |
+
| **3-gram** | 25,989 | 14.67 | 62,993 | 8.7% | 26.3% |
|
| 135 |
+
| **3-gram** | 1,399 | 10.45 | 19,851 | 36.8% | 80.6% |
|
| 136 |
+
| **4-gram** | 63,619 | 15.96 | 114,847 | 4.7% | 15.6% |
|
| 137 |
+
| **4-gram** | 6,375 | 12.64 | 81,359 | 18.9% | 52.8% |
|
| 138 |
+
|
| 139 |
+
### Top 5 N-grams by Size
|
| 140 |
+
|
| 141 |
+
**2-grams:**
|
| 142 |
+
|
| 143 |
+
| Rank | N-gram | Count |
|
| 144 |
+
|------|--------|-------|
|
| 145 |
+
| 1 | `, jala` | 8,780 |
|
| 146 |
+
| 2 | `i ,` | 6,997 |
|
| 147 |
+
| 3 | `ᯬ ᯲` | 4,573 |
|
| 148 |
+
| 4 | `angka na` | 4,409 |
|
| 149 |
+
| 5 | `dung i` | 4,328 |
|
| 150 |
+
|
| 151 |
+
**3-grams:**
|
| 152 |
+
|
| 153 |
+
| Rank | N-gram | Count |
|
| 154 |
+
|------|--------|-------|
|
| 155 |
+
| 1 | `anak ni si` | 1,611 |
|
| 156 |
+
| 2 | `, angka na` | 1,528 |
|
| 157 |
+
| 3 | `. 2 :` | 1,079 |
|
| 158 |
+
| 4 | `, anak ni` | 1,069 |
|
| 159 |
+
| 5 | `ᯰ ᯄ ᯦` | 1,063 |
|
| 160 |
+
|
| 161 |
+
**4-grams:**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `, anak ni si` | 906 |
|
| 166 |
+
| 2 | `ᯀ ᯰ ᯄ ᯦` | 686 |
|
| 167 |
+
| 3 | `ᯘ ᯪ ᯀᯉ ᯲` | 457 |
|
| 168 |
+
| 4 | `ᯬ ᯂᯖ ᯬ ᯲` | 432 |
|
| 169 |
+
| 5 | `on do hata ni` | 421 |
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
### Key Findings
|
| 173 |
+
|
| 174 |
+
- **Best Perplexity:** 2-gram with 209
|
| 175 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 176 |
+
- **Coverage:** Top-1000 patterns cover ~53% of corpus
|
| 177 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 178 |
+
|
| 179 |
+
---
|
| 180 |
+
## 3. Markov Chain Evaluation
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
|
| 186 |
+
### Results
|
| 187 |
+
|
| 188 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 189 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 190 |
+
| **1** | 0.8281 | 1.775 | 6.09 | 50,531 | 17.2% |
|
| 191 |
+
| **1** | 1.0960 | 2.138 | 7.35 | 1,187 | 0.0% |
|
| 192 |
+
| **2** | 0.3983 | 1.318 | 2.17 | 307,642 | 60.2% |
|
| 193 |
+
| **2** | 0.8091 | 1.752 | 4.70 | 8,725 | 19.1% |
|
| 194 |
+
| **3** | 0.1982 | 1.147 | 1.41 | 667,901 | 80.2% |
|
| 195 |
+
| **3** | 0.7878 | 1.726 | 3.57 | 41,004 | 21.2% |
|
| 196 |
+
| **4** | 0.0988 🏆 | 1.071 | 1.16 | 943,940 | 90.1% |
|
| 197 |
+
| **4** | 0.5526 🏆 | 1.467 | 2.40 | 146,535 | 44.7% |
|
| 198 |
+
|
| 199 |
+
### Generated Text Samples
|
| 200 |
+
|
| 201 |
+
Below are text samples generated from each Markov chain model:
|
| 202 |
+
|
| 203 |
+
**Context Size 1:**
|
| 204 |
+
|
| 205 |
+
1. `, jala tu si wasti , jala dipadeakdeak hamu sian i jala peakkononna tu palaspalas pamurunan`
|
| 206 |
+
2. `. 12 : songon i hatangku tu bagasan saluhut angka ari puasa bintang di jolo i`
|
| 207 |
+
3. `: ida ma angka na margoar milo dohot paredangedangan , 2 : 35 : 25 pelean`
|
| 208 |
+
|
| 209 |
+
**Context Size 2:**
|
| 210 |
+
|
| 211 |
+
1. `, jala tudoshon gumora angka anak ni si joab soara ni sarune i laho ma ho ,`
|
| 212 |
+
2. `i , naung pinauli ni tangan ni halak pangarupa umpogo upa ni pambahenannasida . 99 : 7`
|
| 213 |
+
3. `ᯬ ᯲ ᯘᯞ ᯮ ᯂᯖ ᯮ ᯲ ᯑ ᯩ ᯇᯔ ᯲ ᯅᯂ ᯩ ᯉᯉ ᯲ ᯔ ᯉ`
|
| 214 |
+
|
| 215 |
+
**Context Size 3:**
|
| 216 |
+
|
| 217 |
+
1. `anak ni si ahilud do panuturi . 18 : 13 tung sura ahu parohon begu masa tu luat`
|
| 218 |
+
2. `, angka na so bangso hian ; marhite sian bangso na asing , jala marbarita goarmu di betlehem`
|
| 219 |
+
3. `. 2 : 15 alai tarrimas situtu ma si abner dohot di halak na marroha pangansion , ndang`
|
| 220 |
+
|
| 221 |
+
**Context Size 4:**
|
| 222 |
+
|
| 223 |
+
1. `, anak ni si ammiel . 3 : 6 ndada tu torop bangso , angka parhata bobang , manang`
|
| 224 |
+
2. `ᯀ ᯰ ᯄ ᯦ ᯂᯖ ᯉ ᯪ ᯘ ᯪ ᯅ ᯩ ᯀ ᯩ ᯒ ᯪ ᯑ ᯪ ᯉᯘ ᯪ`
|
| 225 |
+
3. `ᯘ ᯪ ᯀᯉ ᯲ ᯂᯔ ᯪ ᯐ ᯮ ᯔ ᯬ ᯞ ᯬ ᯉ ᯪ ᯑ ᯩ ᯅᯖ 2 :`
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
### Key Findings
|
| 229 |
+
|
| 230 |
+
- **Best Predictability:** Context-4 with 90.1% predictability
|
| 231 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 232 |
+
- **Memory Trade-off:** Larger contexts require more storage (146,535 contexts)
|
| 233 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 234 |
+
|
| 235 |
+
---
|
| 236 |
+
## 4. Vocabulary Analysis
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+
### Statistics
|
| 245 |
+
|
| 246 |
+
| Metric | Value |
|
| 247 |
+
|--------|-------|
|
| 248 |
+
| Vocabulary Size | 24,711 |
|
| 249 |
+
| Total Tokens | 1,019,541 |
|
| 250 |
+
| Mean Frequency | 41.26 |
|
| 251 |
+
| Median Frequency | 4 |
|
| 252 |
+
| Frequency Std Dev | 565.94 |
|
| 253 |
+
|
| 254 |
+
### Most Common Words
|
| 255 |
+
|
| 256 |
+
| Rank | Word | Frequency |
|
| 257 |
+
|------|------|-----------|
|
| 258 |
+
| 1 | ni | 35,101 |
|
| 259 |
+
| 2 | na | 34,088 |
|
| 260 |
+
| 3 | i | 33,056 |
|
| 261 |
+
| 4 | ma | 26,769 |
|
| 262 |
+
| 5 | di | 26,053 |
|
| 263 |
+
| 6 | tu | 20,450 |
|
| 264 |
+
| 7 | do | 19,163 |
|
| 265 |
+
| 8 | angka | 17,428 |
|
| 266 |
+
| 9 | jala | 14,598 |
|
| 267 |
+
| 10 | dohot | 13,609 |
|
| 268 |
+
|
| 269 |
+
### Least Common Words (from vocabulary)
|
| 270 |
+
|
| 271 |
+
| Rank | Word | Frequency |
|
| 272 |
+
|------|------|-----------|
|
| 273 |
+
| 1 | ᯝᯇᯞ | 2 |
|
| 274 |
+
| 2 | kayo | 2 |
|
| 275 |
+
| 3 | uttar | 2 |
|
| 276 |
+
| 4 | ltr | 2 |
|
| 277 |
+
| 5 | ebrima | 2 |
|
| 278 |
+
| 6 | 290px | 2 |
|
| 279 |
+
| 7 | td | 2 |
|
| 280 |
+
| 8 | height | 2 |
|
| 281 |
+
| 9 | 260px | 2 |
|
| 282 |
+
| 10 | 22251 | 2 |
|
| 283 |
+
|
| 284 |
+
### Zipf's Law Analysis
|
| 285 |
+
|
| 286 |
+
| Metric | Value |
|
| 287 |
+
|--------|-------|
|
| 288 |
+
| Zipf Coefficient | 1.1956 |
|
| 289 |
+
| R² (Goodness of Fit) | 0.996705 |
|
| 290 |
+
| Adherence Quality | **excellent** |
|
| 291 |
+
|
| 292 |
+
### Coverage Analysis
|
| 293 |
+
|
| 294 |
+
| Top N Words | Coverage |
|
| 295 |
+
|-------------|----------|
|
| 296 |
+
| Top 100 | 52.8% |
|
| 297 |
+
| Top 1,000 | 78.6% |
|
| 298 |
+
| Top 5,000 | 91.7% |
|
| 299 |
+
| Top 10,000 | 95.9% |
|
| 300 |
+
|
| 301 |
+
### Key Findings
|
| 302 |
+
|
| 303 |
+
- **Zipf Compliance:** R²=0.9967 indicates excellent adherence to Zipf's law
|
| 304 |
+
- **High Frequency Dominance:** Top 100 words cover 52.8% of corpus
|
| 305 |
+
- **Long Tail:** 14,711 words needed for remaining 4.1% coverage
|
| 306 |
+
|
| 307 |
+
---
|
| 308 |
+
## 5. Word Embeddings Evaluation
|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
|
| 318 |
+
### Model Comparison
|
| 319 |
+
|
| 320 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 321 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 322 |
+
| **mono_32d** | 15,079 | 32 | 3.458 | 0.818 | 0.8253 🏆 |
|
| 323 |
+
| **mono_64d** | 15,079 | 64 | 3.886 | 0.738 | 0.7641 |
|
| 324 |
+
| **mono_128d** | 15,079 | 128 | 4.143 | 0.691 | 0.4668 |
|
| 325 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 326 |
+
|
| 327 |
+
### Key Findings
|
| 328 |
+
|
| 329 |
+
- **Best Isotropy:** mono_32d with 0.8253 (more uniform distribution)
|
| 330 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 331 |
+
- **Vocabulary Coverage:** All models cover 15,079 words
|
| 332 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 333 |
+
|
| 334 |
+
---
|
| 335 |
+
## 6. Summary & Recommendations
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
|
| 339 |
+
### Production Recommendations
|
| 340 |
+
|
| 341 |
+
| Component | Recommended | Rationale |
|
| 342 |
+
|-----------|-------------|-----------|
|
| 343 |
+
| Tokenizer | **32k BPE** | Best compression (4.43x) with low UNK rate |
|
| 344 |
+
| N-gram | **5-gram** | Lowest perplexity (209) |
|
| 345 |
+
| Markov | **Context-4** | Highest predictability (90.1%) |
|
| 346 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 347 |
+
|
| 348 |
+
---
|
| 349 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 350 |
+
|
| 351 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 352 |
+
|
| 353 |
+
### Tokenizer Metrics
|
| 354 |
+
|
| 355 |
+
**Compression Ratio**
|
| 356 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 357 |
+
>
|
| 358 |
+
> *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.
|
| 359 |
+
>
|
| 360 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 361 |
+
|
| 362 |
+
**Average Token Length (Fertility)**
|
| 363 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 364 |
+
>
|
| 365 |
+
> *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.
|
| 366 |
+
>
|
| 367 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 368 |
+
|
| 369 |
+
**Unknown Token Rate (OOV Rate)**
|
| 370 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 371 |
+
>
|
| 372 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 373 |
+
>
|
| 374 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 375 |
+
|
| 376 |
+
### N-gram Model Metrics
|
| 377 |
+
|
| 378 |
+
**Perplexity**
|
| 379 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 380 |
+
>
|
| 381 |
+
> *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.
|
| 382 |
+
>
|
| 383 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 384 |
+
|
| 385 |
+
**Entropy**
|
| 386 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 387 |
+
>
|
| 388 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 389 |
+
>
|
| 390 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 391 |
+
|
| 392 |
+
**Coverage (Top-K)**
|
| 393 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 394 |
+
>
|
| 395 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 396 |
+
>
|
| 397 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 398 |
+
|
| 399 |
+
### Markov Chain Metrics
|
| 400 |
+
|
| 401 |
+
**Average Entropy**
|
| 402 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 403 |
+
>
|
| 404 |
+
> *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).
|
| 405 |
+
>
|
| 406 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 407 |
+
|
| 408 |
+
**Branching Factor**
|
| 409 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 410 |
+
>
|
| 411 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 412 |
+
>
|
| 413 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 414 |
+
|
| 415 |
+
**Predictability**
|
| 416 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 417 |
+
>
|
| 418 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 419 |
+
>
|
| 420 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 421 |
+
|
| 422 |
+
### Vocabulary & Zipf's Law Metrics
|
| 423 |
+
|
| 424 |
+
**Zipf's Coefficient**
|
| 425 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 426 |
+
>
|
| 427 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 428 |
+
>
|
| 429 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 430 |
+
|
| 431 |
+
**R² (Coefficient of Determination)**
|
| 432 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 433 |
+
>
|
| 434 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 435 |
+
>
|
| 436 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 437 |
+
|
| 438 |
+
**Vocabulary Coverage**
|
| 439 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 440 |
+
>
|
| 441 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 442 |
+
>
|
| 443 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 444 |
+
|
| 445 |
+
### Word Embedding Metrics
|
| 446 |
+
|
| 447 |
+
**Isotropy**
|
| 448 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 449 |
+
>
|
| 450 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 451 |
+
>
|
| 452 |
+
> *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.
|
| 453 |
+
|
| 454 |
+
**Average Norm**
|
| 455 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 456 |
+
>
|
| 457 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 458 |
+
>
|
| 459 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 460 |
+
|
| 461 |
+
**Cosine Similarity**
|
| 462 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 463 |
+
>
|
| 464 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 465 |
+
>
|
| 466 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 467 |
+
|
| 468 |
+
**t-SNE Visualization**
|
| 469 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 470 |
+
>
|
| 471 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 472 |
+
>
|
| 473 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 474 |
+
|
| 475 |
+
### General Interpretation Guidelines
|
| 476 |
+
|
| 477 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 478 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 479 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 480 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 481 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
### Visualizations Index
|
| 485 |
+
|
| 486 |
+
| Visualization | Description |
|
| 487 |
+
|---------------|-------------|
|
| 488 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 489 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 490 |
+
| Tokenizer OOV | Unknown token rates |
|
| 491 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 492 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 493 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 494 |
+
| N-gram Coverage | Top pattern coverage |
|
| 495 |
+
| N-gram Unique | Unique n-gram counts |
|
| 496 |
+
| Markov Entropy | Entropy by context size |
|
| 497 |
+
| Markov Branching | Branching factor by context |
|
| 498 |
+
| Markov Contexts | Unique context counts |
|
| 499 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 500 |
+
| Vocab Frequency | Word frequency distribution |
|
| 501 |
+
| Top 20 Words | Most frequent words |
|
| 502 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 503 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 504 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 505 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 506 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 507 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 508 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 509 |
+
| Position Encoding | Encoding method comparison |
|
| 510 |
+
| Model Sizes | Storage requirements |
|
| 511 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 512 |
+
|
| 513 |
+
---
|
| 514 |
+
## About This Project
|
| 515 |
+
|
| 516 |
+
### Data Source
|
| 517 |
+
|
| 518 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 519 |
+
|
| 520 |
+
### Project
|
| 521 |
+
|
| 522 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 523 |
+
|
| 524 |
+
### Maintainer
|
| 525 |
+
|
| 526 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 527 |
+
|
| 528 |
+
### Citation
|
| 529 |
+
|
| 530 |
+
If you use these models in your research, please cite:
|
| 531 |
+
|
| 532 |
+
```bibtex
|
| 533 |
+
@misc{wikilangs2025,
|
| 534 |
+
author = {Kamali, Omar},
|
| 535 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 536 |
+
year = {2025},
|
| 537 |
+
publisher = {HuggingFace},
|
| 538 |
+
url = {https://huggingface.co/wikilangs}
|
| 539 |
+
institution = {Omneity Labs}
|
| 540 |
+
}
|
| 541 |
+
```
|
| 542 |
+
|
| 543 |
+
### License
|
| 544 |
+
|
| 545 |
+
MIT License - Free for academic and commercial use.
|
| 546 |
+
|
| 547 |
+
### Links
|
| 548 |
+
|
| 549 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 550 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 551 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 552 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 553 |
+
---
|
| 554 |
+
*Generated by Wikilangs Models Pipeline*
|
| 555 |
+
|
| 556 |
+
*Report Date: 2025-12-28 00:12:38*
|
models/embeddings/monolingual/bbc_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b0ca75d42a296503b6510e66321ba63fde51730d05e8ae06bf9ee333ebf3764
|
| 3 |
+
size 1039704692
|
models/embeddings/monolingual/bbc_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bbc", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bbc_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bbc",
|
| 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": 15079
|
| 13 |
+
}
|
models/embeddings/monolingual/bbc_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e806c00c5217f8c0bc9c0c7c7f674b5091cf2b888f0f09d5617c5947fdf7b85
|
| 3 |
+
size 260124020
|
models/embeddings/monolingual/bbc_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bbc", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bbc_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bbc",
|
| 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": 15079
|
| 13 |
+
}
|
models/embeddings/monolingual/bbc_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b313b52ddbda268ad3cbd1f0e06c19c9d337a7809b8be819492b088a18d3ea52
|
| 3 |
+
size 519984244
|
models/embeddings/monolingual/bbc_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bbc", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bbc_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bbc",
|
| 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": 15079
|
| 13 |
+
}
|
models/subword_markov/bbc_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31f366e845fdd50b876fa026287e3adc40435cfcd969f38d0a43a5e37677bf6f
|
| 3 |
+
size 67861
|
models/subword_markov/bbc_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 1187,
|
| 6 |
+
"total_transitions": 5965783
|
| 7 |
+
}
|
models/subword_markov/bbc_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7007b2743717f219549dc35da4e22ef904f954017d220c8e61b57e8f201260f
|
| 3 |
+
size 331323
|
models/subword_markov/bbc_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 8725,
|
| 6 |
+
"total_transitions": 5964472
|
| 7 |
+
}
|
models/subword_markov/bbc_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c82b65a7ab369bc14ca7c650a4752310ee46abd1500b7705572d13c633829e72
|
| 3 |
+
size 1156768
|
models/subword_markov/bbc_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 41004,
|
| 6 |
+
"total_transitions": 5963161
|
| 7 |
+
}
|
models/subword_markov/bbc_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f8adaacc604505a5ecc9a9df0ee1360e764fe6a44233577ea34de523534262e
|
| 3 |
+
size 2961725
|
models/subword_markov/bbc_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 146535,
|
| 6 |
+
"total_transitions": 5961850
|
| 7 |
+
}
|
models/subword_ngram/bbc_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e60fc5bcc5851afa5f2e2cc336875cafe4bf25d188866759e33cdfd81d92110
|
| 3 |
+
size 36155
|
models/subword_ngram/bbc_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 2868,
|
| 6 |
+
"total_ngrams": 5965783
|
| 7 |
+
}
|
models/subword_ngram/bbc_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a241f736f6533859dd3ceeb25dc4c326e50cb9bdae44188ae81918ec9b1e09d
|
| 3 |
+
size 236441
|
models/subword_ngram/bbc_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 19851,
|
| 6 |
+
"total_ngrams": 5964472
|
| 7 |
+
}
|
models/subword_ngram/bbc_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de307e6c44b633e8d607ebdbd329107fa1f51230fa199d5272b932992601e309
|
| 3 |
+
size 929802
|
models/subword_ngram/bbc_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 81359,
|
| 6 |
+
"total_ngrams": 5963161
|
| 7 |
+
}
|
models/tokenizer/bbc_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:136cf9b48df47bd0325da4d7c88b57560631e30b6199a6208f4260be8e9552ee
|
| 3 |
+
size 526133
|
models/tokenizer/bbc_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bbc_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2529fe3a9c19885eb39e8ccf47c668a7b0d05f23fec6e510f14e88006b6b7bfd
|
| 3 |
+
size 829199
|
models/tokenizer/bbc_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bbc_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:916b467a5f107f4d75260d126d785a8b0d264667737f55038b5d19b7a63e5b91
|
| 3 |
+
size 1475614
|
models/tokenizer/bbc_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bbc_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:013a29e4795c8a56295410d77b42d5f8e382048830cd0cb9713d5e5e7d4843e0
|
| 3 |
+
size 380151
|
models/tokenizer/bbc_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/bbc_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98151fd7e6ed05510325054834af69754a9818fbdb10484a7067639a5bdf9974
|
| 3 |
+
size 407231
|
models/vocabulary/bbc_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bbc",
|
| 3 |
+
"vocabulary_size": 24711,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.0481935549300518,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.5151721868117359,
|
| 8 |
+
"top_1000": 0.7666824211970509,
|
| 9 |
+
"top_5000": 0.894505559690854,
|
| 10 |
+
"top_10000": 0.9355091168979777
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 25661,
|
| 13 |
+
"hapax_ratio": 0.5094298419757007,
|
| 14 |
+
"total_documents": 1311
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/bbc_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e98885de06212fe4d458334ea6fca807e1bc10f3eeb95db70f713244d6ae9a7
|
| 3 |
+
size 2077733
|
models/word_markov/bbc_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 50531,
|
| 6 |
+
"total_transitions": 1302268
|
| 7 |
+
}
|
models/word_markov/bbc_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2b1dee42bcb68e6a9fef3aa20e018a082f3dc777f1972d72933e2d6eea72d27
|
| 3 |
+
size 6027713
|
models/word_markov/bbc_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 307642,
|
| 6 |
+
"total_transitions": 1300957
|
| 7 |
+
}
|
models/word_markov/bbc_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8acf1995ad2ef8973fc20a189c2be31adc36869291155c07279e2d2a5a7df71a
|
| 3 |
+
size 10931319
|
models/word_markov/bbc_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 667901,
|
| 6 |
+
"total_transitions": 1299646
|
| 7 |
+
}
|
models/word_markov/bbc_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2cca265740b80274df07e8a920e3c873c44dd9f14f647cf7c26d83cbc3ac68f
|
| 3 |
+
size 14909288
|
models/word_markov/bbc_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_contexts": 943940,
|
| 6 |
+
"total_transitions": 1298335
|
| 7 |
+
}
|
models/word_ngram/bbc_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8d6402f7a1a57dd4dd1c3fd635fd7023724f3f67f2a4c61d61a5f224906cd25
|
| 3 |
+
size 404690
|
models/word_ngram/bbc_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 30496,
|
| 6 |
+
"total_ngrams": 1302268
|
| 7 |
+
}
|
models/word_ngram/bbc_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0e5d6a6cac168c51ea635254aca5bfd8c4702475845dac965c1b0991023487f
|
| 3 |
+
size 849819
|
models/word_ngram/bbc_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 62993,
|
| 6 |
+
"total_ngrams": 1300957
|
| 7 |
+
}
|
models/word_ngram/bbc_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab915e5a6d57480fa0c0c0261b9d209b8f5d2872e033c606183a407608cfeff9
|
| 3 |
+
size 1582171
|
models/word_ngram/bbc_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bbc",
|
| 5 |
+
"unique_ngrams": 114847,
|
| 6 |
+
"total_ngrams": 1299646
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|