Upload all models and assets for btm (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +554 -0
- models/embeddings/monolingual/btm_128d.bin +3 -0
- models/embeddings/monolingual/btm_128d.meta.json +1 -0
- models/embeddings/monolingual/btm_128d_metadata.json +13 -0
- models/embeddings/monolingual/btm_32d.bin +3 -0
- models/embeddings/monolingual/btm_32d.meta.json +1 -0
- models/embeddings/monolingual/btm_32d_metadata.json +13 -0
- models/embeddings/monolingual/btm_64d.bin +3 -0
- models/embeddings/monolingual/btm_64d.meta.json +1 -0
- models/embeddings/monolingual/btm_64d_metadata.json +13 -0
- models/subword_markov/btm_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/btm_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/btm_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/btm_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/btm_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/btm_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/btm_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/btm_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/btm_2gram_subword.parquet +3 -0
- models/subword_ngram/btm_2gram_subword_metadata.json +7 -0
- models/subword_ngram/btm_3gram_subword.parquet +3 -0
- models/subword_ngram/btm_3gram_subword_metadata.json +7 -0
- models/subword_ngram/btm_4gram_subword.parquet +3 -0
- models/subword_ngram/btm_4gram_subword_metadata.json +7 -0
- models/tokenizer/btm_tokenizer_16k.model +3 -0
- models/tokenizer/btm_tokenizer_16k.vocab +0 -0
- models/tokenizer/btm_tokenizer_32k.model +3 -0
- models/tokenizer/btm_tokenizer_32k.vocab +0 -0
- models/tokenizer/btm_tokenizer_64k.model +3 -0
- models/tokenizer/btm_tokenizer_64k.vocab +0 -0
- models/tokenizer/btm_tokenizer_8k.model +3 -0
- models/tokenizer/btm_tokenizer_8k.vocab +0 -0
- models/vocabulary/btm_vocabulary.parquet +3 -0
- models/vocabulary/btm_vocabulary_metadata.json +16 -0
- models/word_markov/btm_markov_ctx1_word.parquet +3 -0
- models/word_markov/btm_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/btm_markov_ctx2_word.parquet +3 -0
- models/word_markov/btm_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/btm_markov_ctx3_word.parquet +3 -0
- models/word_markov/btm_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/btm_markov_ctx4_word.parquet +3 -0
- models/word_markov/btm_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/btm_2gram_word.parquet +3 -0
- models/word_ngram/btm_2gram_word_metadata.json +7 -0
- models/word_ngram/btm_3gram_word.parquet +3 -0
- models/word_ngram/btm_3gram_word_metadata.json +7 -0
- models/word_ngram/btm_4gram_word.parquet +3 -0
- models/word_ngram/btm_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/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/zipf_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: btm
|
| 3 |
+
language_name: BTM
|
| 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.785
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.4253
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 12175
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BTM - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BTM** 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.846x | 3.82 | 0.0837% | 246,208 |
|
| 76 |
+
| **16k** | 4.225x | 4.20 | 0.0919% | 224,097 |
|
| 77 |
+
| **32k** | 4.544x | 4.52 | 0.0989% | 208,361 |
|
| 78 |
+
| **64k** | 4.785x 🏆 | 4.76 | 0.1041% | 197,875 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `23 Januari ima ari pa-23 i kalender Gregorian dohot 361 ari (sanga 362 ari i tao...`
|
| 85 |
+
|
| 86 |
+
| Vocab | Tokens | Count |
|
| 87 |
+
|-------|--------|-------|
|
| 88 |
+
| 8k | `▁ 2 3 ▁januari ▁ima ▁ari ▁pa - 2 3 ... (+24 more)` | 34 |
|
| 89 |
+
| 16k | `▁ 2 3 ▁januari ▁ima ▁ari ▁pa - 2 3 ... (+24 more)` | 34 |
|
| 90 |
+
| 32k | `▁ 2 3 ▁januari ▁ima ▁ari ▁pa - 2 3 ... (+24 more)` | 34 |
|
| 91 |
+
| 64k | `▁ 2 3 ▁januari ▁ima ▁ari ▁pa - 2 3 ... (+24 more)` | 34 |
|
| 92 |
+
|
| 93 |
+
**Sample 2:** `Gunung Tua Ms ima salah sada huta na adong i kecamatan Kotanopan, kabupaten Mand...`
|
| 94 |
+
|
| 95 |
+
| Vocab | Tokens | Count |
|
| 96 |
+
|-------|--------|-------|
|
| 97 |
+
| 8k | `▁gunung ▁tua ▁ms ▁ima ▁salah ▁sada ▁huta ▁na ▁adong ▁i ... (+13 more)` | 23 |
|
| 98 |
+
| 16k | `▁gunung ▁tua ▁ms ▁ima ▁salah ▁sada ▁huta ▁na ▁adong ▁i ... (+13 more)` | 23 |
|
| 99 |
+
| 32k | `▁gunung ▁tua ▁ms ▁ima ▁salah ▁sada ▁huta ▁na ▁adong ▁i ... (+13 more)` | 23 |
|
| 100 |
+
| 64k | `▁gunung ▁tua ▁ms ▁ima ▁salah ▁sada ▁huta ▁na ▁adong ▁i ... (+13 more)` | 23 |
|
| 101 |
+
|
| 102 |
+
**Sample 3:** `Mangalap boru ima sada karejo na ibaen i Mandailing Natal, karejo on pema jadi s...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁mangalap ▁boru ▁ima ▁sada ▁karejo ▁na ▁ibaen ▁i ▁mandailing ▁natal ... (+13 more)` | 23 |
|
| 107 |
+
| 16k | `▁mangalap ▁boru ▁ima ▁sada ▁karejo ▁na ▁ibaen ▁i ▁mandailing ▁natal ... (+13 more)` | 23 |
|
| 108 |
+
| 32k | `▁mangalap ▁boru ▁ima ▁sada ▁karejo ▁na ▁ibaen ▁i ▁mandailing ▁natal ... (+12 more)` | 22 |
|
| 109 |
+
| 64k | `▁mangalap ▁boru ▁ima ▁sada ▁karejo ▁na ▁ibaen ▁i ▁mandailing ▁natal ... (+12 more)` | 22 |
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
### Key Findings
|
| 113 |
+
|
| 114 |
+
- **Best Compression:** 64k achieves 4.785x compression
|
| 115 |
+
- **Lowest UNK Rate:** 8k with 0.0837% unknown tokens
|
| 116 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 117 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
## 2. N-gram Model Evaluation
|
| 121 |
+
|
| 122 |
+

|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
|
| 126 |
+
### Results
|
| 127 |
+
|
| 128 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 129 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 130 |
+
| **2-gram** | 2,793 🏆 | 11.45 | 5,965 | 25.6% | 57.6% |
|
| 131 |
+
| **2-gram** | 237 🏆 | 7.89 | 1,918 | 71.1% | 99.2% |
|
| 132 |
+
| **3-gram** | 2,655 | 11.37 | 5,700 | 27.3% | 55.1% |
|
| 133 |
+
| **3-gram** | 1,865 | 10.87 | 12,988 | 30.0% | 75.1% |
|
| 134 |
+
| **4-gram** | 3,977 | 11.96 | 8,130 | 23.7% | 46.0% |
|
| 135 |
+
| **4-gram** | 8,932 | 13.12 | 49,385 | 14.7% | 44.5% |
|
| 136 |
+
|
| 137 |
+
### Top 5 N-grams by Size
|
| 138 |
+
|
| 139 |
+
**2-grams:**
|
| 140 |
+
|
| 141 |
+
| Rank | N-gram | Count |
|
| 142 |
+
|------|--------|-------|
|
| 143 |
+
| 1 | `kategori :` | 781 |
|
| 144 |
+
| 2 | `/ /` | 707 |
|
| 145 |
+
| 3 | `: /` | 703 |
|
| 146 |
+
| 4 | `ima sada` | 627 |
|
| 147 |
+
| 5 | `, dot` | 599 |
|
| 148 |
+
|
| 149 |
+
**3-grams:**
|
| 150 |
+
|
| 151 |
+
| Rank | N-gram | Count |
|
| 152 |
+
|------|--------|-------|
|
| 153 |
+
| 1 | `: / /` | 702 |
|
| 154 |
+
| 2 | `https : /` | 461 |
|
| 155 |
+
| 3 | `. https :` | 384 |
|
| 156 |
+
| 4 | `sumberna kategori :` | 348 |
|
| 157 |
+
| 5 | `ari pa -` | 308 |
|
| 158 |
+
|
| 159 |
+
**4-grams:**
|
| 160 |
+
|
| 161 |
+
| Rank | N-gram | Count |
|
| 162 |
+
|------|--------|-------|
|
| 163 |
+
| 1 | `https : / /` | 461 |
|
| 164 |
+
| 2 | `. https : /` | 384 |
|
| 165 |
+
| 3 | `: / / www` | 221 |
|
| 166 |
+
| 4 | `/ / www .` | 221 |
|
| 167 |
+
| 5 | `ima ari pa -` | 183 |
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
### Key Findings
|
| 171 |
+
|
| 172 |
+
- **Best Perplexity:** 2-gram with 237
|
| 173 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 174 |
+
- **Coverage:** Top-1000 patterns cover ~45% of corpus
|
| 175 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 176 |
+
|
| 177 |
+
---
|
| 178 |
+
## 3. Markov Chain Evaluation
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+
### Results
|
| 185 |
+
|
| 186 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 187 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 188 |
+
| **1** | 0.7327 | 1.662 | 4.59 | 29,952 | 26.7% |
|
| 189 |
+
| **1** | 1.0526 | 2.074 | 7.13 | 776 | 0.0% |
|
| 190 |
+
| **2** | 0.2488 | 1.188 | 1.51 | 137,080 | 75.1% |
|
| 191 |
+
| **2** | 0.9494 | 1.931 | 5.09 | 5,530 | 5.1% |
|
| 192 |
+
| **3** | 0.0695 | 1.049 | 1.11 | 206,158 | 93.1% |
|
| 193 |
+
| **3** | 0.8132 | 1.757 | 3.45 | 28,161 | 18.7% |
|
| 194 |
+
| **4** | 0.0218 🏆 | 1.015 | 1.03 | 227,434 | 97.8% |
|
| 195 |
+
| **4** | 0.5358 🏆 | 1.450 | 2.24 | 97,224 | 46.4% |
|
| 196 |
+
|
| 197 |
+
### Generated Text Samples
|
| 198 |
+
|
| 199 |
+
Below are text samples generated from each Markov chain model:
|
| 200 |
+
|
| 201 |
+
**Context Size 1:**
|
| 202 |
+
|
| 203 |
+
1. `. hami sanga kamp parkarejo jerman . biasona aong ibaen anso mambuat sada tim dohot mamake`
|
| 204 |
+
2. `, uhum kodrat - ira satonga tarbuka i provinsi opolskie provinsi i diafragma mambatasi bagian sian`
|
| 205 |
+
3. `i kalender gregorian dohot tema na ilukis nia hagoluan nalai ima . sacara enskapitulasi tingon satio...`
|
| 206 |
+
|
| 207 |
+
**Context Size 2:**
|
| 208 |
+
|
| 209 |
+
1. `kategori : ilmuwan yahudi kategori : politik kategori : saro inggeris : engineering ) ima sada penya...`
|
| 210 |
+
2. `/ / download / 18320 / 13475 baru nung i presepsi na padua bolasna na dua kota`
|
| 211 |
+
3. `: / / www . rusdionoconsulting . com / tag / pemandian - air - terjun -`
|
| 212 |
+
|
| 213 |
+
**Context Size 3:**
|
| 214 |
+
|
| 215 |
+
1. `: / / onepiece . fandom . com / id / tourism / gunung - sorik - marapi`
|
| 216 |
+
2. `https : / / startfmmadina . com / 40 - daftar - kumpulan - terjemahan - bahasa -`
|
| 217 |
+
3. `. https : / / madina . go . id / sejarah - bulu - tangkis / tarsarupo`
|
| 218 |
+
|
| 219 |
+
**Context Size 4:**
|
| 220 |
+
|
| 221 |
+
1. `https : / / www . pmimedan . or . id / sahabat - nabi / songkoni juo ma`
|
| 222 |
+
2. `. https : / / translate . google . com / translate ? u = https : / /`
|
| 223 |
+
3. `: / / www . harianhaluan . com / news / world - middle - east - 14703476 "`
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
### Key Findings
|
| 227 |
+
|
| 228 |
+
- **Best Predictability:** Context-4 with 97.8% predictability
|
| 229 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 230 |
+
- **Memory Trade-off:** Larger contexts require more storage (97,224 contexts)
|
| 231 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 232 |
+
|
| 233 |
+
---
|
| 234 |
+
## 4. Vocabulary Analysis
|
| 235 |
+
|
| 236 |
+

|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
|
| 242 |
+
### Statistics
|
| 243 |
+
|
| 244 |
+
| Metric | Value |
|
| 245 |
+
|--------|-------|
|
| 246 |
+
| Vocabulary Size | 12,175 |
|
| 247 |
+
| Total Tokens | 189,541 |
|
| 248 |
+
| Mean Frequency | 15.57 |
|
| 249 |
+
| Median Frequency | 3 |
|
| 250 |
+
| Frequency Std Dev | 125.93 |
|
| 251 |
+
|
| 252 |
+
### Most Common Words
|
| 253 |
+
|
| 254 |
+
| Rank | Word | Frequency |
|
| 255 |
+
|------|------|-----------|
|
| 256 |
+
| 1 | i | 7,254 |
|
| 257 |
+
| 2 | na | 7,126 |
|
| 258 |
+
| 3 | ima | 4,033 |
|
| 259 |
+
| 4 | on | 3,983 |
|
| 260 |
+
| 5 | dohot | 2,990 |
|
| 261 |
+
| 6 | ni | 2,684 |
|
| 262 |
+
| 7 | dot | 2,484 |
|
| 263 |
+
| 8 | sada | 1,835 |
|
| 264 |
+
| 9 | tu | 1,710 |
|
| 265 |
+
| 10 | ma | 1,482 |
|
| 266 |
+
|
| 267 |
+
### Least Common Words (from vocabulary)
|
| 268 |
+
|
| 269 |
+
| Rank | Word | Frequency |
|
| 270 |
+
|------|------|-----------|
|
| 271 |
+
| 1 | lil | 2 |
|
| 272 |
+
| 2 | imah | 2 |
|
| 273 |
+
| 3 | nasida | 2 |
|
| 274 |
+
| 4 | sunusi | 2 |
|
| 275 |
+
| 5 | nunga | 2 |
|
| 276 |
+
| 6 | majmu | 2 |
|
| 277 |
+
| 7 | fatawa | 2 |
|
| 278 |
+
| 8 | fiqhi | 2 |
|
| 279 |
+
| 9 | panjalakian | 2 |
|
| 280 |
+
| 10 | martoba | 2 |
|
| 281 |
+
|
| 282 |
+
### Zipf's Law Analysis
|
| 283 |
+
|
| 284 |
+
| Metric | Value |
|
| 285 |
+
|--------|-------|
|
| 286 |
+
| Zipf Coefficient | 1.0695 |
|
| 287 |
+
| R² (Goodness of Fit) | 0.987847 |
|
| 288 |
+
| Adherence Quality | **excellent** |
|
| 289 |
+
|
| 290 |
+
### Coverage Analysis
|
| 291 |
+
|
| 292 |
+
| Top N Words | Coverage |
|
| 293 |
+
|-------------|----------|
|
| 294 |
+
| Top 100 | 40.1% |
|
| 295 |
+
| Top 1,000 | 69.3% |
|
| 296 |
+
| Top 5,000 | 90.3% |
|
| 297 |
+
| Top 10,000 | 97.7% |
|
| 298 |
+
|
| 299 |
+
### Key Findings
|
| 300 |
+
|
| 301 |
+
- **Zipf Compliance:** R²=0.9878 indicates excellent adherence to Zipf's law
|
| 302 |
+
- **High Frequency Dominance:** Top 100 words cover 40.1% of corpus
|
| 303 |
+
- **Long Tail:** 2,175 words needed for remaining 2.3% coverage
|
| 304 |
+
|
| 305 |
+
---
|
| 306 |
+
## 5. Word Embeddings Evaluation
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
|
| 316 |
+
### Model Comparison
|
| 317 |
+
|
| 318 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 319 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 320 |
+
| **mono_32d** | 4,643 | 32 | 2.986 | 0.583 | 0.4253 🏆 |
|
| 321 |
+
| **mono_64d** | 4,643 | 64 | 3.026 | 0.583 | 0.1288 |
|
| 322 |
+
| **mono_128d** | 4,643 | 128 | 3.050 | 0.582 | 0.0237 |
|
| 323 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 324 |
+
|
| 325 |
+
### Key Findings
|
| 326 |
+
|
| 327 |
+
- **Best Isotropy:** mono_32d with 0.4253 (more uniform distribution)
|
| 328 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 329 |
+
- **Vocabulary Coverage:** All models cover 4,643 words
|
| 330 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 331 |
+
|
| 332 |
+
---
|
| 333 |
+
## 6. Summary & Recommendations
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
|
| 337 |
+
### Production Recommendations
|
| 338 |
+
|
| 339 |
+
| Component | Recommended | Rationale |
|
| 340 |
+
|-----------|-------------|-----------|
|
| 341 |
+
| Tokenizer | **32k BPE** | Best compression (4.78x) with low UNK rate |
|
| 342 |
+
| N-gram | **5-gram** | Lowest perplexity (237) |
|
| 343 |
+
| Markov | **Context-4** | Highest predictability (97.8%) |
|
| 344 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 345 |
+
|
| 346 |
+
---
|
| 347 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 348 |
+
|
| 349 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 350 |
+
|
| 351 |
+
### Tokenizer Metrics
|
| 352 |
+
|
| 353 |
+
**Compression Ratio**
|
| 354 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 355 |
+
>
|
| 356 |
+
> *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.
|
| 357 |
+
>
|
| 358 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 359 |
+
|
| 360 |
+
**Average Token Length (Fertility)**
|
| 361 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 362 |
+
>
|
| 363 |
+
> *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.
|
| 364 |
+
>
|
| 365 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 366 |
+
|
| 367 |
+
**Unknown Token Rate (OOV Rate)**
|
| 368 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 369 |
+
>
|
| 370 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 371 |
+
>
|
| 372 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 373 |
+
|
| 374 |
+
### N-gram Model Metrics
|
| 375 |
+
|
| 376 |
+
**Perplexity**
|
| 377 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 378 |
+
>
|
| 379 |
+
> *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.
|
| 380 |
+
>
|
| 381 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 382 |
+
|
| 383 |
+
**Entropy**
|
| 384 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 385 |
+
>
|
| 386 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 387 |
+
>
|
| 388 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 389 |
+
|
| 390 |
+
**Coverage (Top-K)**
|
| 391 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 392 |
+
>
|
| 393 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 394 |
+
>
|
| 395 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 396 |
+
|
| 397 |
+
### Markov Chain Metrics
|
| 398 |
+
|
| 399 |
+
**Average Entropy**
|
| 400 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 401 |
+
>
|
| 402 |
+
> *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).
|
| 403 |
+
>
|
| 404 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 405 |
+
|
| 406 |
+
**Branching Factor**
|
| 407 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 408 |
+
>
|
| 409 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 410 |
+
>
|
| 411 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 412 |
+
|
| 413 |
+
**Predictability**
|
| 414 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 415 |
+
>
|
| 416 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 417 |
+
>
|
| 418 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 419 |
+
|
| 420 |
+
### Vocabulary & Zipf's Law Metrics
|
| 421 |
+
|
| 422 |
+
**Zipf's Coefficient**
|
| 423 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 424 |
+
>
|
| 425 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 426 |
+
>
|
| 427 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 428 |
+
|
| 429 |
+
**R² (Coefficient of Determination)**
|
| 430 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 431 |
+
>
|
| 432 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 433 |
+
>
|
| 434 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 435 |
+
|
| 436 |
+
**Vocabulary Coverage**
|
| 437 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 438 |
+
>
|
| 439 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 440 |
+
>
|
| 441 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 442 |
+
|
| 443 |
+
### Word Embedding Metrics
|
| 444 |
+
|
| 445 |
+
**Isotropy**
|
| 446 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 447 |
+
>
|
| 448 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 449 |
+
>
|
| 450 |
+
> *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.
|
| 451 |
+
|
| 452 |
+
**Average Norm**
|
| 453 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 454 |
+
>
|
| 455 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 456 |
+
>
|
| 457 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 458 |
+
|
| 459 |
+
**Cosine Similarity**
|
| 460 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 461 |
+
>
|
| 462 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 463 |
+
>
|
| 464 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 465 |
+
|
| 466 |
+
**t-SNE Visualization**
|
| 467 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 468 |
+
>
|
| 469 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 470 |
+
>
|
| 471 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 472 |
+
|
| 473 |
+
### General Interpretation Guidelines
|
| 474 |
+
|
| 475 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 476 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 477 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 478 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 479 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 480 |
+
|
| 481 |
+
|
| 482 |
+
### Visualizations Index
|
| 483 |
+
|
| 484 |
+
| Visualization | Description |
|
| 485 |
+
|---------------|-------------|
|
| 486 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 487 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 488 |
+
| Tokenizer OOV | Unknown token rates |
|
| 489 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 490 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 491 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 492 |
+
| N-gram Coverage | Top pattern coverage |
|
| 493 |
+
| N-gram Unique | Unique n-gram counts |
|
| 494 |
+
| Markov Entropy | Entropy by context size |
|
| 495 |
+
| Markov Branching | Branching factor by context |
|
| 496 |
+
| Markov Contexts | Unique context counts |
|
| 497 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 498 |
+
| Vocab Frequency | Word frequency distribution |
|
| 499 |
+
| Top 20 Words | Most frequent words |
|
| 500 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 501 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 502 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 503 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 504 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 505 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 506 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 507 |
+
| Position Encoding | Encoding method comparison |
|
| 508 |
+
| Model Sizes | Storage requirements |
|
| 509 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 510 |
+
|
| 511 |
+
---
|
| 512 |
+
## About This Project
|
| 513 |
+
|
| 514 |
+
### Data Source
|
| 515 |
+
|
| 516 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 517 |
+
|
| 518 |
+
### Project
|
| 519 |
+
|
| 520 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 521 |
+
|
| 522 |
+
### Maintainer
|
| 523 |
+
|
| 524 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 525 |
+
|
| 526 |
+
### Citation
|
| 527 |
+
|
| 528 |
+
If you use these models in your research, please cite:
|
| 529 |
+
|
| 530 |
+
```bibtex
|
| 531 |
+
@misc{wikilangs2025,
|
| 532 |
+
author = {Kamali, Omar},
|
| 533 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 534 |
+
year = {2025},
|
| 535 |
+
publisher = {HuggingFace},
|
| 536 |
+
url = {https://huggingface.co/wikilangs}
|
| 537 |
+
institution = {Omneity Labs}
|
| 538 |
+
}
|
| 539 |
+
```
|
| 540 |
+
|
| 541 |
+
### License
|
| 542 |
+
|
| 543 |
+
MIT License - Free for academic and commercial use.
|
| 544 |
+
|
| 545 |
+
### Links
|
| 546 |
+
|
| 547 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 548 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 549 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 550 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 551 |
+
---
|
| 552 |
+
*Generated by Wikilangs Models Pipeline*
|
| 553 |
+
|
| 554 |
+
*Report Date: 2025-12-28 09:18:23*
|
models/embeddings/monolingual/btm_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de188f03b192c2ca078f88738ce73449fcbf4320cd395bd332ecef48590d80a8
|
| 3 |
+
size 1028830510
|
models/embeddings/monolingual/btm_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "btm", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/btm_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "btm",
|
| 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": 4643
|
| 13 |
+
}
|
models/embeddings/monolingual/btm_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13216c4fed3a766eb9ae09c6f6a9636ab84897b0ed1d8023ee3f84bfc09c60fe
|
| 3 |
+
size 257264686
|
models/embeddings/monolingual/btm_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "btm", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/btm_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "btm",
|
| 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": 4643
|
| 13 |
+
}
|
models/embeddings/monolingual/btm_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51848e61c1fca01ab96c42576eb6e62eefed815eb2acc39e03fea244cb0d7a55
|
| 3 |
+
size 514453294
|
models/embeddings/monolingual/btm_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "btm", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/btm_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "btm",
|
| 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": 4643
|
| 13 |
+
}
|
models/subword_markov/btm_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9fb8732e5d0b088e8cb27dcdd5b2f86c532d02ef8d60b6a276973da326e2489
|
| 3 |
+
size 44542
|
models/subword_markov/btm_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 776,
|
| 6 |
+
"total_transitions": 1324161
|
| 7 |
+
}
|
models/subword_markov/btm_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b32d6be400f0fe5ba28845e329de73b2eca4c57b1ecb34e7b271b0a81000cd5
|
| 3 |
+
size 221609
|
models/subword_markov/btm_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 5530,
|
| 6 |
+
"total_transitions": 1322799
|
| 7 |
+
}
|
models/subword_markov/btm_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baf72e1c86d729f7636eb3dd63f352dcd015fc51d995b57fe2a4a2ae73643c47
|
| 3 |
+
size 752323
|
models/subword_markov/btm_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 28161,
|
| 6 |
+
"total_transitions": 1321437
|
| 7 |
+
}
|
models/subword_markov/btm_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0a69fd846d53a6e55464bb04597ad44e2cd78771e025aad882c45ac3903096d
|
| 3 |
+
size 1709839
|
models/subword_markov/btm_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 97224,
|
| 6 |
+
"total_transitions": 1320075
|
| 7 |
+
}
|
models/subword_ngram/btm_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86dfdf6bd3e46f0af84e22f9dfc755a0a319afbfb427a853d7447f54aa36b813
|
| 3 |
+
size 25120
|
models/subword_ngram/btm_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 1918,
|
| 6 |
+
"total_ngrams": 1324161
|
| 7 |
+
}
|
models/subword_ngram/btm_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ac8d488fb34cbcad5cee074bab2aadc311377c61f106fdc7d15893ac59de7ac
|
| 3 |
+
size 146419
|
models/subword_ngram/btm_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 12988,
|
| 6 |
+
"total_ngrams": 1322799
|
| 7 |
+
}
|
models/subword_ngram/btm_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a86ef1d182c41d4ec45dc51eae1271722efec2f5a35604893699f66328234dfd
|
| 3 |
+
size 594616
|
models/subword_ngram/btm_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 49385,
|
| 6 |
+
"total_ngrams": 1321437
|
| 7 |
+
}
|
models/tokenizer/btm_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddd3c2f8af55f1ab6fddfd062122811cc700509a098060ad39d467f214f86732
|
| 3 |
+
size 505236
|
models/tokenizer/btm_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/btm_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2a3d5dac68f0879797fe727d4d2b0cbc7840fdedeee4e86c6bb03f5adc7f0da
|
| 3 |
+
size 788854
|
models/tokenizer/btm_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/btm_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07075eace5ffa2fc3001cd72bdd62fa08486ac53b2331193d7cd888c21fbbbf1
|
| 3 |
+
size 1322499
|
models/tokenizer/btm_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/btm_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:842451ea10488cf3aa06059e02fdc805910e7ac01548035e26320a5ec1c675ff
|
| 3 |
+
size 372071
|
models/tokenizer/btm_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/btm_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2e1669d9cb891748049f7b0f79cddae67d9c1d88f9aacfd042c76bc0023e258
|
| 3 |
+
size 194790
|
models/vocabulary/btm_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "btm",
|
| 3 |
+
"vocabulary_size": 12175,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.1439864864864865,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.36650096525096526,
|
| 8 |
+
"top_1000": 0.6339671814671815,
|
| 9 |
+
"top_5000": 0.825945945945946,
|
| 10 |
+
"top_10000": 0.8937789575289575
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 17659,
|
| 13 |
+
"hapax_ratio": 0.5919085607025542,
|
| 14 |
+
"total_documents": 1362
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/btm_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c217e1a408565da0c01ce1be6c3a82b8d05ba2eb243a350de04d9a1d0c26215
|
| 3 |
+
size 1027194
|
models/word_markov/btm_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 29952,
|
| 6 |
+
"total_transitions": 252626
|
| 7 |
+
}
|
models/word_markov/btm_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:669e28490302d21e70f64127f665d428c1484dca09fc3c62a516bd2cce61c8e0
|
| 3 |
+
size 2302244
|
models/word_markov/btm_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 137080,
|
| 6 |
+
"total_transitions": 251264
|
| 7 |
+
}
|
models/word_markov/btm_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ca7a37098cceada0a3b495bf357855b55ae3c07593991310fc65a3987345d93
|
| 3 |
+
size 3187577
|
models/word_markov/btm_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 206158,
|
| 6 |
+
"total_transitions": 249909
|
| 7 |
+
}
|
models/word_markov/btm_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3644395ecf865c63d7aad1a53f542d746ec0774d12d6dae591b4e5db701c596a
|
| 3 |
+
size 3651246
|
models/word_markov/btm_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_contexts": 227434,
|
| 6 |
+
"total_transitions": 248555
|
| 7 |
+
}
|
models/word_ngram/btm_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45947c8329577e1dfdfbb73f89b03e03aff959f4f2a1ebbc65fabc83ca7fc373
|
| 3 |
+
size 76262
|
models/word_ngram/btm_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 5965,
|
| 6 |
+
"total_ngrams": 252626
|
| 7 |
+
}
|
models/word_ngram/btm_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71ff57ab29c1ba5d6f5a7953a92d53d02c269b0162697be67aee03a490046ccb
|
| 3 |
+
size 84350
|
models/word_ngram/btm_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 5700,
|
| 6 |
+
"total_ngrams": 251264
|
| 7 |
+
}
|
models/word_ngram/btm_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80d28cd8c28607e55ee503e11b2b708cd6502cdec2a7c34455ba7d5777b38646
|
| 3 |
+
size 129368
|
models/word_ngram/btm_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "btm",
|
| 5 |
+
"unique_ngrams": 8130,
|
| 6 |
+
"total_ngrams": 249909
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|