Upload all models and assets for bo (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/bo_128d.bin +3 -0
- models/embeddings/monolingual/bo_128d.meta.json +1 -0
- models/embeddings/monolingual/bo_128d_metadata.json +13 -0
- models/embeddings/monolingual/bo_32d.bin +3 -0
- models/embeddings/monolingual/bo_32d.meta.json +1 -0
- models/embeddings/monolingual/bo_32d_metadata.json +13 -0
- models/embeddings/monolingual/bo_64d.bin +3 -0
- models/embeddings/monolingual/bo_64d.meta.json +1 -0
- models/embeddings/monolingual/bo_64d_metadata.json +13 -0
- models/subword_markov/bo_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/bo_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/bo_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/bo_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/bo_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/bo_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/bo_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/bo_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/bo_2gram_subword.parquet +3 -0
- models/subword_ngram/bo_2gram_subword_metadata.json +7 -0
- models/subword_ngram/bo_3gram_subword.parquet +3 -0
- models/subword_ngram/bo_3gram_subword_metadata.json +7 -0
- models/subword_ngram/bo_4gram_subword.parquet +3 -0
- models/subword_ngram/bo_4gram_subword_metadata.json +7 -0
- models/tokenizer/bo_tokenizer_16k.model +3 -0
- models/tokenizer/bo_tokenizer_16k.vocab +0 -0
- models/tokenizer/bo_tokenizer_32k.model +3 -0
- models/tokenizer/bo_tokenizer_32k.vocab +0 -0
- models/tokenizer/bo_tokenizer_64k.model +3 -0
- models/tokenizer/bo_tokenizer_64k.vocab +0 -0
- models/tokenizer/bo_tokenizer_8k.model +3 -0
- models/tokenizer/bo_tokenizer_8k.vocab +0 -0
- models/vocabulary/bo_vocabulary.parquet +3 -0
- models/vocabulary/bo_vocabulary_metadata.json +16 -0
- models/word_markov/bo_markov_ctx1_word.parquet +3 -0
- models/word_markov/bo_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/bo_markov_ctx2_word.parquet +3 -0
- models/word_markov/bo_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/bo_markov_ctx3_word.parquet +3 -0
- models/word_markov/bo_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/bo_markov_ctx4_word.parquet +3 -0
- models/word_markov/bo_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/bo_2gram_word.parquet +3 -0
- models/word_ngram/bo_2gram_word_metadata.json +7 -0
- models/word_ngram/bo_3gram_word.parquet +3 -0
- models/word_ngram/bo_3gram_word_metadata.json +7 -0
- models/word_ngram/bo_4gram_word.parquet +3 -0
- models/word_ngram/bo_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: bo
|
| 3 |
+
language_name: BO
|
| 4 |
+
language_family: tibetoburman_tibetic
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-tibetoburman_tibetic
|
| 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: 5.961
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.7739
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 13016
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BO - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BO** 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** | 4.296x | 4.23 | 0.3002% | 389,363 |
|
| 76 |
+
| **16k** | 4.846x | 4.77 | 0.3387% | 345,182 |
|
| 77 |
+
| **32k** | 5.407x | 5.33 | 0.3779% | 309,326 |
|
| 78 |
+
| **64k** | 5.961x 🏆 | 5.87 | 0.4166% | 280,591 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `གསལ་བྱེད་སུམ་ཅུའི་ནང་ནས་ཀ་ག་བ་ཟ་ར་ས་དྲུག་ནི་ལ་བཏགས་ཅན་གྱི་ཡི་གེ་དྲུག་གོ།
|
| 85 |
+
༼དུང་དཀ...`
|
| 86 |
+
|
| 87 |
+
| Vocab | Tokens | Count |
|
| 88 |
+
|-------|--------|-------|
|
| 89 |
+
| 8k | `▁གས ལ་བྱེད་ སུམ་ ཅུའི་ ནང་ནས་ ཀ་ ག ་བ་ ཟ་ ར་ ... (+16 more)` | 26 |
|
| 90 |
+
| 16k | `▁གསལ་བྱེད་ སུམ་ཅུའི་ ནང་ནས་ ཀ་ ག ་བ་ ཟ་ ར་ ས་ དྲུག་ ... (+13 more)` | 23 |
|
| 91 |
+
| 32k | `▁གསལ་བྱེད་ སུམ་ཅུའི་ ནང་ནས་ ཀ་ ག་བ་ ཟ་ ར་ས་ དྲུག་ནི་ ལ་བཏགས་ ཅན་གྱི་ ... (+9 more)` | 19 |
|
| 92 |
+
| 64k | `▁གསལ་བྱེད་ སུམ་ཅུའི་ ནང་ནས་ ཀ་ ག་བ་ ཟ་ ར་ས་ དྲུག་ནི་ ལ་བཏགས་ ཅན་གྱི་ ... (+9 more)` | 19 |
|
| 93 |
+
|
| 94 |
+
**Sample 2:** `བདག་སློབ་བུས་ལུས་ངག་ཡིད་གསུམ་ཁྱོད་ལ་དུས་བརྟན་དུ་འབུལ། ང་ཚོ་མྱུར་དུ་མཇལ་འཛོམ་ཡང...`
|
| 95 |
+
|
| 96 |
+
| Vocab | Tokens | Count |
|
| 97 |
+
|-------|--------|-------|
|
| 98 |
+
| 8k | `▁བདག་ སློབ་བ ུས་ ལུས་ ངག་ཡིད་ གསུམ་ ཁྱོད་ལ་ དུས་ བརྟན་ དུ་ ... (+18 more)` | 28 |
|
| 99 |
+
| 16k | `▁བདག་ སློབ་བ ུས་ ལུས་ངག་ཡིད་ གསུམ་ ཁྱོད་ལ་ དུས་ བརྟན་ དུ་ འབུལ། ... (+13 more)` | 23 |
|
| 100 |
+
| 32k | `▁བདག་ སློབ་བ ུས་ ལུས་ངག་ཡིད་གསུམ་ ཁྱོད་ལ་ དུས་ བརྟན་ དུ་ འབུལ། ▁ང་ཚོ་ ... (+12 more)` | 22 |
|
| 101 |
+
| 64k | `▁བདག་ སློབ་བ ུས་ ལུས་ངག་ཡིད་གསུམ་ ཁྱོད་ལ་ དུས་ བརྟན་ དུ་ འབུལ། ▁ང་ཚོ་ ... (+10 more)` | 20 |
|
| 102 |
+
|
| 103 |
+
**Sample 3:** `མི་འཁྲུགས་པ་སྐྱབས་སྦྱིན་ཅན།
|
| 104 |
+
དེང་སང་ཇོ་བོ་རིན་པོ་ཆེའི་སྐུ་རྒྱབ་ཏུ་བཞུགས་པའི་ཇོ...`
|
| 105 |
+
|
| 106 |
+
| Vocab | Tokens | Count |
|
| 107 |
+
|-------|--------|-------|
|
| 108 |
+
| 8k | `▁མི་ འཁྲུགས་ པ་ སྐྱབས་ སྦྱིན་ ཅན། ▁དེང་སང་ ��ོ་བོ་ རིན་པོ་ཆེའི་ སྐུ་ ... (+12 more)` | 22 |
|
| 109 |
+
| 16k | `▁མི་ འཁྲུགས་ པ་ སྐྱབས་ སྦྱིན་ ཅན། ▁དེང་སང་ ཇོ་བོ་ རིན་པོ་ཆེའི་ སྐུ་ ... (+11 more)` | 21 |
|
| 110 |
+
| 32k | `▁མི་ འཁྲུགས་པ་ སྐྱབས་ སྦྱིན་ ཅན། ▁དེང་སང་ ཇོ་བོ་ རིན་པོ་ཆེའི་ སྐུ་ རྒྱབ་ཏུ་བ ... (+7 more)` | 17 |
|
| 111 |
+
| 64k | `▁མི་ འཁྲུགས་པ་ སྐྱབས་སྦྱིན་ ཅན། ▁དེང་སང་ ཇོ་བོ་ རིན་པོ་ཆེའི་སྐུ་ རྒྱབ་ཏུ་བ ཞུགས་པའི་ ཇོ་བོ་ ... (+5 more)` | 15 |
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
### Key Findings
|
| 115 |
+
|
| 116 |
+
- **Best Compression:** 64k achieves 5.961x compression
|
| 117 |
+
- **Lowest UNK Rate:** 8k with 0.3002% 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** | 397 🏆 | 8.63 | 16,730 | 60.3% | 96.5% |
|
| 133 |
+
| **2-gram** | 259 🏆 | 8.02 | 10,716 | 68.5% | 98.4% |
|
| 134 |
+
| **3-gram** | 2,660 | 11.38 | 107,789 | 28.7% | 70.8% |
|
| 135 |
+
| **3-gram** | 1,576 | 10.62 | 61,755 | 31.0% | 81.3% |
|
| 136 |
+
| **4-gram** | 14,448 | 13.82 | 410,390 | 13.4% | 41.2% |
|
| 137 |
+
| **4-gram** | 7,647 | 12.90 | 237,121 | 14.5% | 47.5% |
|
| 138 |
+
|
| 139 |
+
### Top 5 N-grams by Size
|
| 140 |
+
|
| 141 |
+
**2-grams:**
|
| 142 |
+
|
| 143 |
+
| Rank | N-gram | Count |
|
| 144 |
+
|------|--------|-------|
|
| 145 |
+
| 1 | `ི ་` | 1,330,962 |
|
| 146 |
+
| 2 | `་ ས` | 923,359 |
|
| 147 |
+
| 3 | `ན ་` | 864,506 |
|
| 148 |
+
| 4 | `ས ་` | 804,391 |
|
| 149 |
+
| 5 | `་ ར` | 740,793 |
|
| 150 |
+
|
| 151 |
+
**3-grams:**
|
| 152 |
+
|
| 153 |
+
| Rank | N-gram | Count |
|
| 154 |
+
|------|--------|-------|
|
| 155 |
+
| 1 | `་ པ ་` | 412,050 |
|
| 156 |
+
| 2 | `ྱ ི ་` | 279,592 |
|
| 157 |
+
| 3 | `ོ ད ་` | 249,936 |
|
| 158 |
+
| 4 | `་ དང ་` | 232,586 |
|
| 159 |
+
| 5 | `་ ཀ ྱ` | 225,678 |
|
| 160 |
+
|
| 161 |
+
**4-grams:**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `་ པའ ི ་` | 220,243 |
|
| 166 |
+
| 2 | `་ ཀ ྱ ི` | 185,475 |
|
| 167 |
+
| 3 | `་ ར ྒ ྱ` | 176,176 |
|
| 168 |
+
| 4 | `ཀ ྱ ི ་` | 145,131 |
|
| 169 |
+
| 5 | `་ ད ུ ་` | 133,021 |
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
### Key Findings
|
| 173 |
+
|
| 174 |
+
- **Best Perplexity:** 2-gram with 259
|
| 175 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 176 |
+
- **Coverage:** Top-1000 patterns cover ~47% 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.2954 | 1.227 | 3.27 | 41,503 | 70.5% |
|
| 191 |
+
| **1** | 1.4785 | 2.787 | 10.14 | 4,527 | 0.0% |
|
| 192 |
+
| **2** | 0.2647 🏆 | 1.201 | 2.76 | 135,576 | 73.5% |
|
| 193 |
+
| **2** | 0.6082 🏆 | 1.524 | 3.67 | 45,909 | 39.2% |
|
| 194 |
+
| **3** | 0.2919 | 1.224 | 2.37 | 373,945 | 70.8% |
|
| 195 |
+
| **3** | 0.5729 | 1.488 | 2.90 | 168,571 | 42.7% |
|
| 196 |
+
| **4** | 0.3575 | 1.281 | 2.36 | 884,085 | 64.2% |
|
| 197 |
+
| **4** | 0.4734 | 1.388 | 2.39 | 489,183 | 52.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. `་ བ ། ཉམས ་ ན ་ འག ྲ ག ་ མ ་ ཤ ུ ང`
|
| 206 |
+
2. `ི ར ྐ ྱ ན ་ བས ྒ ྲ ི ་ ད ་ མ ་ གཅ`
|
| 207 |
+
3. `ོ ས ྙ ི ་ དང ་ ས ྲ ི ས ་ ཆ ུ ར ུ`
|
| 208 |
+
|
| 209 |
+
**Context Size 2:**
|
| 210 |
+
|
| 211 |
+
1. `ི ་ ས ྒ ྲ ོ ད [ ང ] པའ ི ་ དཀར ་ ཡ ི`
|
| 212 |
+
2. `་ ས ླ ོ ང ་ ག ྱ ི ས ་ འབ ྱ ོ ན ་ བཅས`
|
| 213 |
+
3. `ན ་ ཆ ོ ས ་ རབ ་ འབ ྱ ུ ར ། ། ཁ ོ ངས`
|
| 214 |
+
|
| 215 |
+
**Context Size 3:**
|
| 216 |
+
|
| 217 |
+
1. `་ པ ་ ཆ ུ བ ་ བ ྱ ེ ད ། ། ཁ ྲ ་ བ ྱ`
|
| 218 |
+
2. `ྱ ི ་ ཕ ་ ར ོ ལ ་ ར ླ བས ་ ཀ ྱ ི ་ ར`
|
| 219 |
+
3. `ོ ད ་ ཀ ྱ ི ས ་ བད ུ ན ་ ཅ ི ་ མ ི ན`
|
| 220 |
+
|
| 221 |
+
**Context Size 4:**
|
| 222 |
+
|
| 223 |
+
1. `་ པའ ི ་ ར ྒ ྱ ར ་ བར ་ དཀའ ་ བའ ི ་ འཕ ྲ ུ`
|
| 224 |
+
2. `་ ཀ ྱ ི ་ ནང ་ ག ི ་ འབ ུ མ ་ ཡང ་ ། ། ཤ`
|
| 225 |
+
3. `་ ར ྒ ྱ ུ ད ་ པ ། ད ེ ་ ས ྟ ེ ། བ ྲ མ`
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
### Key Findings
|
| 229 |
+
|
| 230 |
+
- **Best Predictability:** Context-2 with 73.5% predictability
|
| 231 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 232 |
+
- **Memory Trade-off:** Larger contexts require more storage (489,183 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 | 13,016 |
|
| 249 |
+
| Total Tokens | 18,343,262 |
|
| 250 |
+
| Mean Frequency | 1409.29 |
|
| 251 |
+
| Median Frequency | 3 |
|
| 252 |
+
| Frequency Std Dev | 31347.07 |
|
| 253 |
+
|
| 254 |
+
### Most Common Words
|
| 255 |
+
|
| 256 |
+
| Rank | Word | Frequency |
|
| 257 |
+
|------|------|-----------|
|
| 258 |
+
| 1 | ས | 1,859,452 |
|
| 259 |
+
| 2 | ར | 1,242,082 |
|
| 260 |
+
| 3 | ད | 1,225,016 |
|
| 261 |
+
| 4 | ན | 1,119,190 |
|
| 262 |
+
| 5 | ག | 979,844 |
|
| 263 |
+
| 6 | ལ | 962,286 |
|
| 264 |
+
| 7 | བ | 831,513 |
|
| 265 |
+
| 8 | ང | 704,629 |
|
| 266 |
+
| 9 | མ | 647,161 |
|
| 267 |
+
| 10 | པ | 638,483 |
|
| 268 |
+
|
| 269 |
+
### Least Common Words (from vocabulary)
|
| 270 |
+
|
| 271 |
+
| Rank | Word | Frequency |
|
| 272 |
+
|------|------|-----------|
|
| 273 |
+
| 1 | ༡༡༦༠ | 2 |
|
| 274 |
+
| 2 | w1kg9520 | 2 |
|
| 275 |
+
| 3 | jayasena | 2 |
|
| 276 |
+
| 4 | ༡༡ཙམ | 2 |
|
| 277 |
+
| 5 | 252591 | 2 |
|
| 278 |
+
| 6 | 2525b4 | 2 |
|
| 279 |
+
| 7 | 2525b2 | 2 |
|
| 280 |
+
| 8 | caryā | 2 |
|
| 281 |
+
| 9 | gīti | 2 |
|
| 282 |
+
| 10 | caryāgītivṛtti | 2 |
|
| 283 |
+
|
| 284 |
+
### Zipf's Law Analysis
|
| 285 |
+
|
| 286 |
+
| Metric | Value |
|
| 287 |
+
|--------|-------|
|
| 288 |
+
| Zipf Coefficient | 1.8006 |
|
| 289 |
+
| R² (Goodness of Fit) | 0.975288 |
|
| 290 |
+
| Adherence Quality | **excellent** |
|
| 291 |
+
|
| 292 |
+
### Coverage Analysis
|
| 293 |
+
|
| 294 |
+
| Top N Words | Coverage |
|
| 295 |
+
|-------------|----------|
|
| 296 |
+
| Top 100 | 92.9% |
|
| 297 |
+
| Top 1,000 | 99.6% |
|
| 298 |
+
| Top 5,000 | 99.9% |
|
| 299 |
+
| Top 10,000 | 100.0% |
|
| 300 |
+
|
| 301 |
+
### Key Findings
|
| 302 |
+
|
| 303 |
+
- **Zipf Compliance:** R²=0.9753 indicates excellent adherence to Zipf's law
|
| 304 |
+
- **High Frequency Dominance:** Top 100 words cover 92.9% of corpus
|
| 305 |
+
- **Long Tail:** 3,016 words needed for remaining 0.0% 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** | 8,661 | 32 | 6.077 | 1.370 | 0.7739 🏆 |
|
| 323 |
+
| **mono_64d** | 8,661 | 64 | 6.426 | 1.018 | 0.7102 |
|
| 324 |
+
| **mono_128d** | 8,661 | 128 | 6.678 | 0.842 | 0.5344 |
|
| 325 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 326 |
+
|
| 327 |
+
### Key Findings
|
| 328 |
+
|
| 329 |
+
- **Best Isotropy:** mono_32d with 0.7739 (more uniform distribution)
|
| 330 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 331 |
+
- **Vocabulary Coverage:** All models cover 8,661 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 (5.96x) with low UNK rate |
|
| 344 |
+
| N-gram | **5-gram** | Lowest perplexity (259) |
|
| 345 |
+
| Markov | **Context-4** | Highest predictability (73.5%) |
|
| 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 07:45:49*
|
models/embeddings/monolingual/bo_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4d28fd32d66a933b9d54910c53ae79e731552039f72a158a509f33345be938c
|
| 3 |
+
size 1033296964
|
models/embeddings/monolingual/bo_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bo", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bo_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bo",
|
| 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": 8661
|
| 13 |
+
}
|
models/embeddings/monolingual/bo_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f7ec38e53b69d6fe0c7bf028ecf260182dc2c464b0a3998b36285dcdcd0d790
|
| 3 |
+
size 258645316
|
models/embeddings/monolingual/bo_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bo", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bo_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bo",
|
| 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": 8661
|
| 13 |
+
}
|
models/embeddings/monolingual/bo_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a39136f57bc0193b521701d5895d97332f84bef7738e48d579bf3e941611efb
|
| 3 |
+
size 516862532
|
models/embeddings/monolingual/bo_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bo", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bo_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bo",
|
| 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": 8661
|
| 13 |
+
}
|
models/subword_markov/bo_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe6b72dd2f3cb1ce71f886ce79e1991ebc9d866ba3d8e9a4e0765a566abef832
|
| 3 |
+
size 295033
|
models/subword_markov/bo_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 4527,
|
| 6 |
+
"total_transitions": 51775331
|
| 7 |
+
}
|
models/subword_markov/bo_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1343c1704ab694d0457b93b45cf4513b9cc61d7f7b379f22055ad12bdb3453f7
|
| 3 |
+
size 1399204
|
models/subword_markov/bo_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 45909,
|
| 6 |
+
"total_transitions": 51761048
|
| 7 |
+
}
|
models/subword_markov/bo_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:238ba3561b2e3bbe4353470450e8e2a855ebb948f45a77fec280ddd79e71a6a7
|
| 3 |
+
size 4147532
|
models/subword_markov/bo_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 168571,
|
| 6 |
+
"total_transitions": 51746765
|
| 7 |
+
}
|
models/subword_markov/bo_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:350c4223d741dac9f5df6b518504739dec14c750eeba2ee92fbe4f3e7793abd0
|
| 3 |
+
size 11386093
|
models/subword_markov/bo_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 489183,
|
| 6 |
+
"total_transitions": 51732482
|
| 7 |
+
}
|
models/subword_ngram/bo_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d63fe48d7e16314165daac5a09388e1993a92697e7057f3ca8766f9e8eccfe1e
|
| 3 |
+
size 139446
|
models/subword_ngram/bo_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 10716,
|
| 6 |
+
"total_ngrams": 51775331
|
| 7 |
+
}
|
models/subword_ngram/bo_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db32beee277ce5b96116ccb7fcb3a4f8100711767d8803de99225390f28611b6
|
| 3 |
+
size 784140
|
models/subword_ngram/bo_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 61755,
|
| 6 |
+
"total_ngrams": 51761048
|
| 7 |
+
}
|
models/subword_ngram/bo_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8dfa2e76430d6ce1f681949cc2acbe14cc49ddf452d17256204e4387b0a24cc6
|
| 3 |
+
size 2949767
|
models/subword_ngram/bo_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 237121,
|
| 6 |
+
"total_ngrams": 51746765
|
| 7 |
+
}
|
models/tokenizer/bo_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fab010daa62bc41c1b8032f9d748af4fd37db53dee73a43da0d904f4823dd00e
|
| 3 |
+
size 703550
|
models/tokenizer/bo_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bo_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40f36be3bd4045efa166c3cb5f777437692dfa9587f1e56e7fbb3e723de6eba9
|
| 3 |
+
size 1237082
|
models/tokenizer/bo_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bo_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c954964333d2da25bea610a3945473fa0588b9e1f80593834b369fdb080402a0
|
| 3 |
+
size 2362449
|
models/tokenizer/bo_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bo_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea17dc7300f482ce3d9c095d25a6131c7ed3dd8f32ff3049fea997cc38cbb782
|
| 3 |
+
size 454260
|
models/tokenizer/bo_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/bo_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7eeece097f87af2ab0ce9e55f44cb872a6e4f828118a6c10d018670e7b075bbb
|
| 3 |
+
size 213596
|
models/vocabulary/bo_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bo",
|
| 3 |
+
"vocabulary_size": 13016,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.0022376683701338307,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.9279372697332342,
|
| 8 |
+
"top_1000": 0.9940718580638173,
|
| 9 |
+
"top_5000": 0.9973993752774359,
|
| 10 |
+
"top_10000": 0.9981424886732634
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 28093,
|
| 13 |
+
"hapax_ratio": 0.6833783356442629,
|
| 14 |
+
"total_documents": 14283
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/bo_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51a4478f179efe4762715a399df064c2175ac4508700aa5231ca3f2241d9baa8
|
| 3 |
+
size 1444473
|
models/word_markov/bo_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 41503,
|
| 6 |
+
"total_transitions": 43169277
|
| 7 |
+
}
|
models/word_markov/bo_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f391dd5db47185870344cb2760e2499b029b58579a143fa623dcb9747232575
|
| 3 |
+
size 3531426
|
models/word_markov/bo_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 135576,
|
| 6 |
+
"total_transitions": 43154994
|
| 7 |
+
}
|
models/word_markov/bo_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ed95c18ea1ad5d5136b568a6334b628dd4b3b1e75fc8e5b4f09af2322d1f4d2
|
| 3 |
+
size 9151444
|
models/word_markov/bo_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 373945,
|
| 6 |
+
"total_transitions": 43140711
|
| 7 |
+
}
|
models/word_markov/bo_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7238c4b068f37f9deb6d6f25e25cd27d86fbecff6228c94b188cb8f861f7f7c
|
| 3 |
+
size 22175465
|
models/word_markov/bo_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_contexts": 884085,
|
| 6 |
+
"total_transitions": 43126429
|
| 7 |
+
}
|
models/word_ngram/bo_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b0fcbc93bc920804d2780f7b1ac6cc27c0d8317fc2680aa979f081e0f102a1
|
| 3 |
+
size 240285
|
models/word_ngram/bo_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 16730,
|
| 6 |
+
"total_ngrams": 43169277
|
| 7 |
+
}
|
models/word_ngram/bo_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e71ca878d82f6d8e0a1f3f01aa1350846d2870fdadfca3da38183eb64306aa9b
|
| 3 |
+
size 1495235
|
models/word_ngram/bo_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 107789,
|
| 6 |
+
"total_ngrams": 43154994
|
| 7 |
+
}
|
models/word_ngram/bo_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c6d114cdab9167d30db5263ec4923cc3598ee22259e5e41b51e2a9f26d24919
|
| 3 |
+
size 5818114
|
models/word_ngram/bo_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bo",
|
| 5 |
+
"unique_ngrams": 410390,
|
| 6 |
+
"total_ngrams": 43140711
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|