Upload all models and assets for bjn (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +5 -0
- README.md +554 -0
- models/embeddings/monolingual/bjn_128d.bin +3 -0
- models/embeddings/monolingual/bjn_128d.meta.json +1 -0
- models/embeddings/monolingual/bjn_128d_metadata.json +13 -0
- models/embeddings/monolingual/bjn_32d.bin +3 -0
- models/embeddings/monolingual/bjn_32d.meta.json +1 -0
- models/embeddings/monolingual/bjn_32d_metadata.json +13 -0
- models/embeddings/monolingual/bjn_64d.bin +3 -0
- models/embeddings/monolingual/bjn_64d.meta.json +1 -0
- models/embeddings/monolingual/bjn_64d_metadata.json +13 -0
- models/subword_markov/bjn_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/bjn_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/bjn_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/bjn_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/bjn_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/bjn_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/bjn_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/bjn_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/bjn_2gram_subword.parquet +3 -0
- models/subword_ngram/bjn_2gram_subword_metadata.json +7 -0
- models/subword_ngram/bjn_3gram_subword.parquet +3 -0
- models/subword_ngram/bjn_3gram_subword_metadata.json +7 -0
- models/subword_ngram/bjn_4gram_subword.parquet +3 -0
- models/subword_ngram/bjn_4gram_subword_metadata.json +7 -0
- models/tokenizer/bjn_tokenizer_16k.model +3 -0
- models/tokenizer/bjn_tokenizer_16k.vocab +0 -0
- models/tokenizer/bjn_tokenizer_32k.model +3 -0
- models/tokenizer/bjn_tokenizer_32k.vocab +0 -0
- models/tokenizer/bjn_tokenizer_64k.model +3 -0
- models/tokenizer/bjn_tokenizer_64k.vocab +0 -0
- models/tokenizer/bjn_tokenizer_8k.model +3 -0
- models/tokenizer/bjn_tokenizer_8k.vocab +0 -0
- models/vocabulary/bjn_vocabulary.parquet +3 -0
- models/vocabulary/bjn_vocabulary_metadata.json +16 -0
- models/word_markov/bjn_markov_ctx1_word.parquet +3 -0
- models/word_markov/bjn_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/bjn_markov_ctx2_word.parquet +3 -0
- models/word_markov/bjn_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/bjn_markov_ctx3_word.parquet +3 -0
- models/word_markov/bjn_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/bjn_markov_ctx4_word.parquet +3 -0
- models/word_markov/bjn_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/bjn_2gram_word.parquet +3 -0
- models/word_ngram/bjn_2gram_word_metadata.json +7 -0
- models/word_ngram/bjn_3gram_word.parquet +3 -0
- models/word_ngram/bjn_3gram_word_metadata.json +7 -0
- models/word_ngram/bjn_4gram_word.parquet +3 -0
- models/word_ngram/bjn_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ 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/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/zipf_law.png filter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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: bjn
|
| 3 |
+
language_name: BJN
|
| 4 |
+
language_family: austronesian_malay
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-austronesian_malay
|
| 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.777
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8757
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 43482
|
| 33 |
+
generated: 2025-12-28
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# BJN - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **BJN** 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.698x | 3.62 | 0.3416% | 403,663 |
|
| 76 |
+
| **16k** | 4.081x | 4.00 | 0.3770% | 365,824 |
|
| 77 |
+
| **32k** | 4.450x | 4.36 | 0.4111% | 335,441 |
|
| 78 |
+
| **64k** | 4.777x 🏆 | 4.68 | 0.4413% | 312,459 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `Makmur yaitu sabuting kampung di Kacamatan Angsana, Kabupatin Tanah Bumbu, Prupi...`
|
| 85 |
+
|
| 86 |
+
| Vocab | Tokens | Count |
|
| 87 |
+
|-------|--------|-------|
|
| 88 |
+
| 8k | `▁makmur ▁yaitu ▁sabuting ▁kampung ▁di ▁kacamatan ▁ angs ana , ... (+10 more)` | 20 |
|
| 89 |
+
| 16k | `▁makmur ▁yaitu ▁sabuting ▁kampung ▁di ▁kacamatan ▁angsana , ▁kabupatin ▁tanah ... (+8 more)` | 18 |
|
| 90 |
+
| 32k | `▁makmur ▁yaitu ▁sabuting ▁kampung ▁di ▁kacamatan ▁angsana , ▁kabupatin ▁tanah ... (+8 more)` | 18 |
|
| 91 |
+
| 64k | `▁makmur ▁yaitu ▁sabuting ▁kampung ▁di ▁kacamatan ▁angsana , ▁kabupatin ▁tanah ... (+8 more)` | 18 |
|
| 92 |
+
|
| 93 |
+
**Sample 2:** `Tanjung Mangkalihat adalah sabuah kampung di Kacamatan Sandaran, Kabupatin Kutai...`
|
| 94 |
+
|
| 95 |
+
| Vocab | Tokens | Count |
|
| 96 |
+
|-------|--------|-------|
|
| 97 |
+
| 8k | `▁tanjung ▁mangk alihat ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sand aran ... (+11 more)` | 21 |
|
| 98 |
+
| 16k | `▁tanjung ▁mangk alihat ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sandaran , ... (+10 more)` | 20 |
|
| 99 |
+
| 32k | `▁tanjung ▁mangk alihat ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sandaran , ... (+10 more)` | 20 |
|
| 100 |
+
| 64k | `▁tanjung ▁mangk alihat ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sandaran , ... (+10 more)` | 20 |
|
| 101 |
+
|
| 102 |
+
**Sample 3:** `Sumuragung adalah sabuah kampung di Kacamatan Sumberejo, Kabupatin Bojonegoro, P...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁sum ur agung ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sumberejo , ... (+9 more)` | 19 |
|
| 107 |
+
| 16k | `▁sumur agung ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sumberejo , ▁kabupatin ... (+8 more)` | 18 |
|
| 108 |
+
| 32k | `▁sumur agung ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sumberejo , ▁kabupatin ... (+8 more)` | 18 |
|
| 109 |
+
| 64k | `▁sumur agung ▁adalah ▁sabuah ▁kampung ▁di ▁kacamatan ▁sumberejo , ▁kabupatin ... (+8 more)` | 18 |
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
### Key Findings
|
| 113 |
+
|
| 114 |
+
- **Best Compression:** 64k achieves 4.777x compression
|
| 115 |
+
- **Lowest UNK Rate:** 8k with 0.3416% 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** | 8,214 🏆 | 13.00 | 31,697 | 22.3% | 43.3% |
|
| 131 |
+
| **2-gram** | 216 🏆 | 7.75 | 3,606 | 75.0% | 99.2% |
|
| 132 |
+
| **3-gram** | 7,363 | 12.85 | 33,190 | 25.9% | 45.0% |
|
| 133 |
+
| **3-gram** | 1,713 | 10.74 | 25,998 | 32.5% | 77.1% |
|
| 134 |
+
| **4-gram** | 9,532 | 13.22 | 46,645 | 25.7% | 43.0% |
|
| 135 |
+
| **4-gram** | 9,186 | 13.17 | 125,660 | 16.5% | 47.6% |
|
| 136 |
+
|
| 137 |
+
### Top 5 N-grams by Size
|
| 138 |
+
|
| 139 |
+
**2-grams:**
|
| 140 |
+
|
| 141 |
+
| Rank | N-gram | Count |
|
| 142 |
+
|------|--------|-------|
|
| 143 |
+
| 1 | `indunisia .` | 7,623 |
|
| 144 |
+
| 2 | `, indunisia` | 7,382 |
|
| 145 |
+
| 3 | `, prupinsi` | 7,240 |
|
| 146 |
+
| 4 | `, kabupatin` | 6,196 |
|
| 147 |
+
| 5 | `kampung di` | 5,960 |
|
| 148 |
+
|
| 149 |
+
**3-grams:**
|
| 150 |
+
|
| 151 |
+
| Rank | N-gram | Count |
|
| 152 |
+
|------|--------|-------|
|
| 153 |
+
| 1 | `, indunisia .` | 7,294 |
|
| 154 |
+
| 2 | `, prupinsi kalimantan` | 5,775 |
|
| 155 |
+
| 3 | `kampung di kacamatan` | 5,212 |
|
| 156 |
+
| 4 | `sabuah kampung di` | 3,803 |
|
| 157 |
+
| 5 | `adalah sabuah kampung` | 3,803 |
|
| 158 |
+
|
| 159 |
+
**4-grams:**
|
| 160 |
+
|
| 161 |
+
| Rank | N-gram | Count |
|
| 162 |
+
|------|--------|-------|
|
| 163 |
+
| 1 | `sabuah kampung di kacamatan` | 3,802 |
|
| 164 |
+
| 2 | `adalah sabuah kampung di` | 3,801 |
|
| 165 |
+
| 3 | `kalimantan selatan , indunisia` | 2,200 |
|
| 166 |
+
| 4 | `selatan , indunisia .` | 2,195 |
|
| 167 |
+
| 5 | `prupinsi kalimantan selatan ,` | 2,161 |
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
### Key Findings
|
| 171 |
+
|
| 172 |
+
- **Best Perplexity:** 2-gram with 216
|
| 173 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 174 |
+
- **Coverage:** Top-1000 patterns cover ~48% 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.7609 | 1.695 | 5.41 | 108,020 | 23.9% |
|
| 189 |
+
| **1** | 0.9104 | 1.880 | 5.41 | 2,572 | 9.0% |
|
| 190 |
+
| **2** | 0.2888 | 1.222 | 1.67 | 583,707 | 71.1% |
|
| 191 |
+
| **2** | 0.7263 | 1.654 | 4.39 | 13,908 | 27.4% |
|
| 192 |
+
| **3** | 0.0836 | 1.060 | 1.14 | 970,699 | 91.6% |
|
| 193 |
+
| **3** | 0.7940 | 1.734 | 3.86 | 61,013 | 20.6% |
|
| 194 |
+
| **4** | 0.0265 🏆 | 1.019 | 1.04 | 1,101,630 | 97.4% |
|
| 195 |
+
| **4** | 0.6245 🏆 | 1.542 | 2.66 | 235,356 | 37.6% |
|
| 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. `, umat buddha dingarani nangkaya : kampung di kacamatan pengaron sambung makmur adalah pangalola wan...`
|
| 204 |
+
2. `. jabatan dalam bintang nang malili di kacamatan tulin onsoi ngaran rasmi ; 3 . elly`
|
| 205 |
+
3. `di antara ras , wan bawah tanah siang sampai tahun 1978 wan knapstad , antara 28`
|
| 206 |
+
|
| 207 |
+
**Context Size 2:**
|
| 208 |
+
|
| 209 |
+
1. `, indunisia . géografi watas wilayah kacamatan telaga antang ngaran kacamatan di kabupatin bengkayan...`
|
| 210 |
+
2. `, prupinsi kalimantan barat , indunisia . géografi watas wilayah kampung mawar sari yaitu sabuting k...`
|
| 211 |
+
3. `, kabupatin bangkalan , prupinsi kalimantan selatan , indunisia . géografi watas wilayah kampung bin...`
|
| 212 |
+
|
| 213 |
+
**Context Size 3:**
|
| 214 |
+
|
| 215 |
+
1. `, prupinsi kalimantan selatan , indunisia . watas wilayah watas wilayah kacamatan sepauk : pambagian...`
|
| 216 |
+
2. `kampung di kacamatan selakau , kabupatin sambas , prupinsi kalimantan selatan , indunisia . watas wi...`
|
| 217 |
+
3. `adalah sabuah kampung di kacamatan sungai tabuk , kabupatin banjar , prupinsi kalimantan barat , ind...`
|
| 218 |
+
|
| 219 |
+
**Context Size 4:**
|
| 220 |
+
|
| 221 |
+
1. `sabuah kampung di kacamatan tabang , kabupatin kutai kartanegara , prupinsi kalimantan timur , indun...`
|
| 222 |
+
2. `adalah sabuah kampung di kacamatan glagah , kabupatin lamongan , prupinsi jawa timur , indunisia . g...`
|
| 223 |
+
3. `kalimantan selatan , indunisia . géografi watas wilayah watas wilayah kacamatan gunungpuyuh : pambag...`
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
### Key Findings
|
| 227 |
+
|
| 228 |
+
- **Best Predictability:** Context-4 with 97.4% predictability
|
| 229 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 230 |
+
- **Memory Trade-off:** Larger contexts require more storage (235,356 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 | 43,482 |
|
| 247 |
+
| Total Tokens | 1,036,384 |
|
| 248 |
+
| Mean Frequency | 23.83 |
|
| 249 |
+
| Median Frequency | 4 |
|
| 250 |
+
| Frequency Std Dev | 273.79 |
|
| 251 |
+
|
| 252 |
+
### Most Common Words
|
| 253 |
+
|
| 254 |
+
| Rank | Word | Frequency |
|
| 255 |
+
|------|------|-----------|
|
| 256 |
+
| 1 | di | 27,734 |
|
| 257 |
+
| 2 | nang | 27,434 |
|
| 258 |
+
| 3 | wan | 17,268 |
|
| 259 |
+
| 4 | adalah | 10,732 |
|
| 260 |
+
| 5 | lawan | 9,615 |
|
| 261 |
+
| 6 | indunisia | 9,432 |
|
| 262 |
+
| 7 | kacamatan | 9,151 |
|
| 263 |
+
| 8 | kalimantan | 8,405 |
|
| 264 |
+
| 9 | kampung | 7,829 |
|
| 265 |
+
| 10 | matan | 7,719 |
|
| 266 |
+
|
| 267 |
+
### Least Common Words (from vocabulary)
|
| 268 |
+
|
| 269 |
+
| Rank | Word | Frequency |
|
| 270 |
+
|------|------|-----------|
|
| 271 |
+
| 1 | bepacaran | 2 |
|
| 272 |
+
| 2 | beregszásziová | 2 |
|
| 273 |
+
| 3 | košice | 2 |
|
| 274 |
+
| 4 | satian | 2 |
|
| 275 |
+
| 5 | frisna | 2 |
|
| 276 |
+
| 6 | ropang | 2 |
|
| 277 |
+
| 7 | caknan | 2 |
|
| 278 |
+
| 8 | muktamar | 2 |
|
| 279 |
+
| 9 | sandon | 2 |
|
| 280 |
+
| 10 | sékuéns | 2 |
|
| 281 |
+
|
| 282 |
+
### Zipf's Law Analysis
|
| 283 |
+
|
| 284 |
+
| Metric | Value |
|
| 285 |
+
|--------|-------|
|
| 286 |
+
| Zipf Coefficient | 1.0456 |
|
| 287 |
+
| R² (Goodness of Fit) | 0.994175 |
|
| 288 |
+
| Adherence Quality | **excellent** |
|
| 289 |
+
|
| 290 |
+
### Coverage Analysis
|
| 291 |
+
|
| 292 |
+
| Top N Words | Coverage |
|
| 293 |
+
|-------------|----------|
|
| 294 |
+
| Top 100 | 34.5% |
|
| 295 |
+
| Top 1,000 | 61.2% |
|
| 296 |
+
| Top 5,000 | 80.9% |
|
| 297 |
+
| Top 10,000 | 88.2% |
|
| 298 |
+
|
| 299 |
+
### Key Findings
|
| 300 |
+
|
| 301 |
+
- **Zipf Compliance:** R²=0.9942 indicates excellent adherence to Zipf's law
|
| 302 |
+
- **High Frequency Dominance:** Top 100 words cover 34.5% of corpus
|
| 303 |
+
- **Long Tail:** 33,482 words needed for remaining 11.8% 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** | 21,102 | 32 | 3.645 | 0.820 | 0.8757 🏆 |
|
| 321 |
+
| **mono_64d** | 21,102 | 64 | 4.192 | 0.774 | 0.8364 |
|
| 322 |
+
| **mono_128d** | 21,102 | 128 | 4.539 | 0.732 | 0.5631 |
|
| 323 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 324 |
+
|
| 325 |
+
### Key Findings
|
| 326 |
+
|
| 327 |
+
- **Best Isotropy:** mono_32d with 0.8757 (more uniform distribution)
|
| 328 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 329 |
+
- **Vocabulary Coverage:** All models cover 21,102 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 (216) |
|
| 343 |
+
| Markov | **Context-4** | Highest predictability (97.4%) |
|
| 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 05:18:09*
|
models/embeddings/monolingual/bjn_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e65409ff41e4182c5ab1696db0a4dd291168ff75e7a3d84800d52d65677827b8
|
| 3 |
+
size 1045964232
|
models/embeddings/monolingual/bjn_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bjn", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bjn_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bjn",
|
| 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": 21102
|
| 13 |
+
}
|
models/embeddings/monolingual/bjn_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4ba0d5d7cc97005bb29d178bcc33da604ec2ff54b23f1f552000768cabdbf8
|
| 3 |
+
size 261757896
|
models/embeddings/monolingual/bjn_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bjn", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bjn_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bjn",
|
| 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": 21102
|
| 13 |
+
}
|
models/embeddings/monolingual/bjn_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:200944aec2429d1617154426e2e8a0393267c3a2b5366e032a99e04000daf227
|
| 3 |
+
size 523160008
|
models/embeddings/monolingual/bjn_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "bjn", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/bjn_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bjn",
|
| 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": 21102
|
| 13 |
+
}
|
models/subword_markov/bjn_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e9986331e278cde13c4581c7a4b37a46d7a9c5a6972ad0119dec3127a4a9468
|
| 3 |
+
size 105165
|
models/subword_markov/bjn_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 2572,
|
| 6 |
+
"total_transitions": 7876088
|
| 7 |
+
}
|
models/subword_markov/bjn_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62714b996e21cfc6c73dffa6ddadff23b1cb4ebbb512ea7979b9607d639f9e52
|
| 3 |
+
size 495942
|
models/subword_markov/bjn_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 13908,
|
| 6 |
+
"total_transitions": 7864568
|
| 7 |
+
}
|
models/subword_markov/bjn_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:21487466bfac2e926216be93e702aaf0111e80998a59a47c1d5f6d60bb3e55ae
|
| 3 |
+
size 1728073
|
models/subword_markov/bjn_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 61013,
|
| 6 |
+
"total_transitions": 7853048
|
| 7 |
+
}
|
models/subword_markov/bjn_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40577f595c4773cf05fd06e7676f078a7def769251fd22df537a94333ef0d960
|
| 3 |
+
size 4742991
|
models/subword_markov/bjn_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 235356,
|
| 6 |
+
"total_transitions": 7841528
|
| 7 |
+
}
|
models/subword_ngram/bjn_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:947ebba2eea6709955c942ae6a45f98916212ba270e6d663b77823d2c8442b1d
|
| 3 |
+
size 46094
|
models/subword_ngram/bjn_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 3606,
|
| 6 |
+
"total_ngrams": 7876088
|
| 7 |
+
}
|
models/subword_ngram/bjn_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d3d72e0319456f87568ec49b946d626c3ff9f845502be1f8d3d69d8c4dac8db
|
| 3 |
+
size 311919
|
models/subword_ngram/bjn_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 25998,
|
| 6 |
+
"total_ngrams": 7864568
|
| 7 |
+
}
|
models/subword_ngram/bjn_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78caf0f27c30dc7aaf8637610d8d16e7e8bf3bb39788eb3d95c3ad4faae93613
|
| 3 |
+
size 1385663
|
models/subword_ngram/bjn_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 125660,
|
| 6 |
+
"total_ngrams": 7853048
|
| 7 |
+
}
|
models/tokenizer/bjn_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0789678d80af8c0732774eb4b6bb1e41146fd09072f82089a4bb2aa3a90517c8
|
| 3 |
+
size 505456
|
models/tokenizer/bjn_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bjn_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4919663d1e73201b9de368a024ef7e7fb2b833b887eb7c39a545e5b90b0f1b6d
|
| 3 |
+
size 780920
|
models/tokenizer/bjn_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bjn_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84987346017d033ed1a7339bbb8ad76c2fc1c9f7824e8d1912cfa72d31384a80
|
| 3 |
+
size 1331984
|
models/tokenizer/bjn_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/bjn_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f08a90f9e0b51994122ed4bb0a18d36e598dfea67df86f18ae6cc765079db22e
|
| 3 |
+
size 371550
|
models/tokenizer/bjn_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/bjn_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:176907dc0990fd1f1a9773b5c9d088fb3e3e76c41eb4e4335673c1e3550bc153
|
| 3 |
+
size 741453
|
models/vocabulary/bjn_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "bjn",
|
| 3 |
+
"vocabulary_size": 43482,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.09796208341358296,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.32512364499260493,
|
| 8 |
+
"top_1000": 0.576528164893907,
|
| 9 |
+
"top_5000": 0.761968399210707,
|
| 10 |
+
"top_10000": 0.8305046096597537
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 64348,
|
| 13 |
+
"hapax_ratio": 0.5967541500510062,
|
| 14 |
+
"total_documents": 11520
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/bjn_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e1e490ec45c03263bbee5b0cb5d14a9309b3856b41d89553247da0fad241778
|
| 3 |
+
size 4355355
|
models/word_markov/bjn_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 108020,
|
| 6 |
+
"total_transitions": 1341605
|
| 7 |
+
}
|
models/word_markov/bjn_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31270f3260dd0112d37d7fc2f7d4231f5a1ee74904fee4b7d4ed309f3add4d7f
|
| 3 |
+
size 11014789
|
models/word_markov/bjn_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 583707,
|
| 6 |
+
"total_transitions": 1330085
|
| 7 |
+
}
|
models/word_markov/bjn_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6dbbda53445631ccecd1be92001ce4f423233d3fe041ffb12afe0a356c91a9ef
|
| 3 |
+
size 16006739
|
models/word_markov/bjn_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 970699,
|
| 6 |
+
"total_transitions": 1318565
|
| 7 |
+
}
|
models/word_markov/bjn_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1bb5f64ee3e9ecd1c820d8a4acba751e1066a6106871f181251a4debf90ddba
|
| 3 |
+
size 18389438
|
models/word_markov/bjn_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_contexts": 1101630,
|
| 6 |
+
"total_transitions": 1307048
|
| 7 |
+
}
|
models/word_ngram/bjn_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd6e87d662bfb47bba380d18db5125e72bf837e8638bf8005e5b38bea2e82aab
|
| 3 |
+
size 438250
|
models/word_ngram/bjn_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 31697,
|
| 6 |
+
"total_ngrams": 1341605
|
| 7 |
+
}
|
models/word_ngram/bjn_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef08ff903e4ce470871df54fd8f6d35ed89c905fe3c1fcfd357809fa41aa7266
|
| 3 |
+
size 523283
|
models/word_ngram/bjn_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 33190,
|
| 6 |
+
"total_ngrams": 1330085
|
| 7 |
+
}
|
models/word_ngram/bjn_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f632f15f1987aec2e7d1af2a418ac4cf9f9f426b023424d33b864115d7ae130
|
| 3 |
+
size 732377
|
models/word_ngram/bjn_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "bjn",
|
| 5 |
+
"unique_ngrams": 46645,
|
| 6 |
+
"total_ngrams": 1318565
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|