Upload all models and assets for as (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +563 -0
- models/embeddings/monolingual/as_128d.bin +3 -0
- models/embeddings/monolingual/as_128d.meta.json +1 -0
- models/embeddings/monolingual/as_128d_metadata.json +13 -0
- models/embeddings/monolingual/as_32d.bin +3 -0
- models/embeddings/monolingual/as_32d.meta.json +1 -0
- models/embeddings/monolingual/as_32d_metadata.json +13 -0
- models/embeddings/monolingual/as_64d.bin +3 -0
- models/embeddings/monolingual/as_64d.meta.json +1 -0
- models/embeddings/monolingual/as_64d_metadata.json +13 -0
- models/subword_markov/as_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/as_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/as_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/as_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/as_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/as_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/as_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/as_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/as_2gram_subword.parquet +3 -0
- models/subword_ngram/as_2gram_subword_metadata.json +7 -0
- models/subword_ngram/as_3gram_subword.parquet +3 -0
- models/subword_ngram/as_3gram_subword_metadata.json +7 -0
- models/subword_ngram/as_4gram_subword.parquet +3 -0
- models/subword_ngram/as_4gram_subword_metadata.json +7 -0
- models/tokenizer/as_tokenizer_16k.model +3 -0
- models/tokenizer/as_tokenizer_16k.vocab +0 -0
- models/tokenizer/as_tokenizer_32k.model +3 -0
- models/tokenizer/as_tokenizer_32k.vocab +0 -0
- models/tokenizer/as_tokenizer_64k.model +3 -0
- models/tokenizer/as_tokenizer_64k.vocab +0 -0
- models/tokenizer/as_tokenizer_8k.model +3 -0
- models/tokenizer/as_tokenizer_8k.vocab +0 -0
- models/vocabulary/as_vocabulary.parquet +3 -0
- models/vocabulary/as_vocabulary_metadata.json +16 -0
- models/word_markov/as_markov_ctx1_word.parquet +3 -0
- models/word_markov/as_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/as_markov_ctx2_word.parquet +3 -0
- models/word_markov/as_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/as_markov_ctx3_word.parquet +3 -0
- models/word_markov/as_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/as_markov_ctx4_word.parquet +3 -0
- models/word_markov/as_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/as_2gram_word.parquet +3 -0
- models/word_ngram/as_2gram_word_metadata.json +7 -0
- models/word_ngram/as_3gram_word.parquet +3 -0
- models/word_ngram/as_3gram_word_metadata.json +7 -0
- models/word_ngram/as_4gram_word.parquet +3 -0
- models/word_ngram/as_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_law.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: as
|
| 3 |
+
language_name: AS
|
| 4 |
+
language_family: indoaryan_eastern
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-indoaryan_eastern
|
| 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.519
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8484
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 69383
|
| 33 |
+
generated: 2025-12-27
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# AS - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **AS** 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.390x | 3.36 | 0.0640% | 1,495,826 |
|
| 76 |
+
| **16k** | 3.830x | 3.80 | 0.0723% | 1,324,012 |
|
| 77 |
+
| **32k** | 4.212x | 4.18 | 0.0795% | 1,203,836 |
|
| 78 |
+
| **64k** | 4.519x 🏆 | 4.48 | 0.0853% | 1,122,074 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `ইউৰেনাচ নামে তলৰ প্ৰৱন্ধসমূহ বুজাব পাৰে:
|
| 85 |
+
ইউৰেনাচ: সৌৰজগতৰ সপ্তম গ্ৰহ
|
| 86 |
+
ইউৰেনাচ (...`
|
| 87 |
+
|
| 88 |
+
| Vocab | Tokens | Count |
|
| 89 |
+
|-------|--------|-------|
|
| 90 |
+
| 8k | `▁ইউ ৰে না চ ▁নামে ▁তলৰ ▁প্ৰৱ ন্ধ সমূহ ▁বুজাব ... (+28 more)` | 38 |
|
| 91 |
+
| 16k | `▁ইউৰে না চ ▁নামে ▁তলৰ ▁প্ৰৱ ন্ধ সমূহ ▁বুজাব ▁পাৰে ... (+23 more)` | 33 |
|
| 92 |
+
| 32k | `▁ইউৰে নাচ ▁নামে ▁তলৰ ▁প্ৰৱন্ধ সমূহ ▁বুজাব ▁পাৰে : ▁ইউৰে ... (+18 more)` | 28 |
|
| 93 |
+
| 64k | `▁ইউৰে নাচ ▁নামে ▁তলৰ ▁প্ৰৱন্ধ সমূহ ▁বুজাব ▁পাৰে : ▁ইউৰে ... (+17 more)` | 27 |
|
| 94 |
+
|
| 95 |
+
**Sample 2:** `শ্ৰেণী:ভাৰতীয় অভিনেত্ৰী
|
| 96 |
+
শ্ৰেণী:জীৱিত ব্যক্তি
|
| 97 |
+
শ্ৰেণী:ভাৰতীয় ৰাজনীতিবিদ
|
| 98 |
+
শ্ৰেণী:ভ...`
|
| 99 |
+
|
| 100 |
+
| Vocab | Tokens | Count |
|
| 101 |
+
|-------|--------|-------|
|
| 102 |
+
| 8k | `▁শ্ৰেণী : ভাৰতীয় ▁অভিনেত্ৰী ▁শ্ৰেণী : জীৱিত ▁ব্যক্তি ▁শ্ৰেণী : ... (+9 more)` | 19 |
|
| 103 |
+
| 16k | `▁শ্ৰেণী : ভাৰতীয় ▁অভিনেত্ৰী ▁শ্ৰেণী : জীৱিত ▁ব্যক্তি ▁শ্ৰেণী : ... (+8 more)` | 18 |
|
| 104 |
+
| 32k | `▁শ্ৰেণী : ভাৰতীয় ▁অভিনেত্ৰী ▁শ্ৰেণী : জীৱিত ▁ব্যক্তি ▁শ্ৰেণী : ... (+8 more)` | 18 |
|
| 105 |
+
| 64k | `▁শ্ৰেণী : ভাৰতীয় ▁অভিনেত্ৰী ▁শ্ৰেণী : জীৱিত ▁ব্যক্তি ▁শ্ৰেণী : ... (+7 more)` | 17 |
|
| 106 |
+
|
| 107 |
+
**Sample 3:** `তাল বুলিলে তলৰ পৃষ্ঠাসমূহ বুজাব পাৰে:
|
| 108 |
+
|
| 109 |
+
তাল (বাদ্যযন্ত্ৰ)
|
| 110 |
+
তাল (সংগীত)
|
| 111 |
+
তাল (ফল)`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁তাল ▁বুল িলে ▁তলৰ ▁পৃষ্ঠ াসমূহ ▁বুজাব ▁পাৰে : ▁তাল ... (+13 more)` | 23 |
|
| 116 |
+
| 16k | `▁তাল ▁বুলিলে ▁তলৰ ▁পৃষ্ঠ াসমূহ ▁বুজাব ▁পাৰে : ▁তাল ▁( ... (+11 more)` | 21 |
|
| 117 |
+
| 32k | `▁তাল ▁বুলিলে ▁তলৰ ▁পৃষ্ঠ াসমূহ ▁বুজাব ▁পাৰে : ▁তাল ▁( ... (+11 more)` | 21 |
|
| 118 |
+
| 64k | `▁তাল ▁বুলিলে ▁তলৰ ▁পৃষ্ঠাসমূহ ▁বুজাব ▁পাৰে : ▁তাল ▁( বাদ্যযন্ত্ৰ ... (+9 more)` | 19 |
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
### Key Findings
|
| 122 |
+
|
| 123 |
+
- **Best Compression:** 64k achieves 4.519x compression
|
| 124 |
+
- **Lowest UNK Rate:** 8k with 0.0640% unknown tokens
|
| 125 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 126 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 127 |
+
|
| 128 |
+
---
|
| 129 |
+
## 2. N-gram Model Evaluation
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
|
| 135 |
+
### Results
|
| 136 |
+
|
| 137 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 138 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 139 |
+
| **2-gram** | 2,255 🏆 | 11.14 | 144,083 | 37.8% | 74.6% |
|
| 140 |
+
| **2-gram** | 712 🏆 | 9.48 | 14,933 | 47.2% | 91.5% |
|
| 141 |
+
| **3-gram** | 20,803 | 14.34 | 558,435 | 14.3% | 40.2% |
|
| 142 |
+
| **3-gram** | 6,279 | 12.62 | 135,792 | 17.8% | 52.9% |
|
| 143 |
+
| **4-gram** | 109,133 | 16.74 | 1,749,119 | 7.8% | 23.0% |
|
| 144 |
+
| **4-gram** | 34,064 | 15.06 | 727,754 | 9.4% | 29.5% |
|
| 145 |
+
|
| 146 |
+
### Top 5 N-grams by Size
|
| 147 |
+
|
| 148 |
+
**2-grams:**
|
| 149 |
+
|
| 150 |
+
| Rank | N-gram | Count |
|
| 151 |
+
|------|--------|-------|
|
| 152 |
+
| 1 | `া ৰ` | 608,846 |
|
| 153 |
+
| 2 | `য ়` | 511,382 |
|
| 154 |
+
| 3 | `্ ৰ` | 409,497 |
|
| 155 |
+
| 4 | `প ্` | 302,441 |
|
| 156 |
+
| 5 | `ি ল` | 296,895 |
|
| 157 |
+
|
| 158 |
+
**3-grams:**
|
| 159 |
+
|
| 160 |
+
| Rank | N-gram | Count |
|
| 161 |
+
|------|--------|-------|
|
| 162 |
+
| 1 | `য ় া` | 192,871 |
|
| 163 |
+
| 2 | `ি য ়` | 190,336 |
|
| 164 |
+
| 3 | `ী য ়` | 164,267 |
|
| 165 |
+
| 4 | `ত ে ও` | 138,798 |
|
| 166 |
+
| 5 | `ে ও ঁ` | 138,171 |
|
| 167 |
+
|
| 168 |
+
**4-grams:**
|
| 169 |
+
|
| 170 |
+
| Rank | N-gram | Count |
|
| 171 |
+
|------|--------|-------|
|
| 172 |
+
| 1 | `ত ে ও ঁ` | 137,993 |
|
| 173 |
+
| 2 | `ি য ় া` | 118,996 |
|
| 174 |
+
| 3 | `ছ ি ল ।` | 81,488 |
|
| 175 |
+
| 4 | `ি ছ ি ল` | 71,229 |
|
| 176 |
+
| 5 | `শ ্ ৰ ে` | 58,374 |
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
### Key Findings
|
| 180 |
+
|
| 181 |
+
- **Best Perplexity:** 2-gram with 712
|
| 182 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 183 |
+
- **Coverage:** Top-1000 patterns cover ~29% of corpus
|
| 184 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 185 |
+
|
| 186 |
+
---
|
| 187 |
+
## 3. Markov Chain Evaluation
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
|
| 193 |
+
### Results
|
| 194 |
+
|
| 195 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 196 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 197 |
+
| **1** | 0.5873 | 1.502 | 6.01 | 178,570 | 41.3% |
|
| 198 |
+
| **1** | 1.0627 | 2.089 | 7.96 | 5,555 | 0.0% |
|
| 199 |
+
| **2** | 0.3625 | 1.286 | 2.70 | 1,073,346 | 63.7% |
|
| 200 |
+
| **2** | 0.9491 | 1.931 | 6.70 | 44,224 | 5.1% |
|
| 201 |
+
| **3** | 0.2925 | 1.225 | 2.07 | 2,893,182 | 70.7% |
|
| 202 |
+
| **3** | 0.8311 | 1.779 | 4.51 | 296,427 | 16.9% |
|
| 203 |
+
| **4** | 0.2472 🏆 | 1.187 | 1.70 | 5,984,484 | 75.3% |
|
| 204 |
+
| **4** | 0.6476 🏆 | 1.567 | 2.96 | 1,337,967 | 35.2% |
|
| 205 |
+
|
| 206 |
+
### Generated Text Samples
|
| 207 |
+
|
| 208 |
+
Below are text samples generated from each Markov chain model:
|
| 209 |
+
|
| 210 |
+
**Context Size 1:**
|
| 211 |
+
|
| 212 |
+
1. `া লয ় যদ ি ল ৰ া ন ে । পৰ ি ছ া উৰ`
|
| 213 |
+
2. `্ চত ভ া শ ্ ট ো ক ভ ু ১ট া ’ ল ্`
|
| 214 |
+
3. `ি য ় , ক া ল । ইয ় ন কৰ ম ৃ ষকসকলক প`
|
| 215 |
+
|
| 216 |
+
**Context Size 2:**
|
| 217 |
+
|
| 218 |
+
1. `া ৰ ব ি ব া গ া ঁ ৱত কচ ্ ২০০৫ – ২০১০ চনত`
|
| 219 |
+
2. `য ় া ৰ ব ি প ি ছত anthropological survey of hinduism today , march 2009`
|
| 220 |
+
3. `্ ৰ া থম ি ক ব ি ন ্ দ ্ ব া ৰ ব ি`
|
| 221 |
+
|
| 222 |
+
**Context Size 3:**
|
| 223 |
+
|
| 224 |
+
1. `য ় া ষ ্ ট ে চনত আশ ্ ৰফ ে চৰ১৯৬৮ফ ি ল ্ ল ী`
|
| 225 |
+
2. `ি য ় া ধ ী ন হয ় আৰ ু মহ ি ল া ৰ দ ৌ`
|
| 226 |
+
3. `ী য ় া ল ো কগ া থ া ক ে ব ি ব া হৰ ব`
|
| 227 |
+
|
| 228 |
+
**Context Size 4:**
|
| 229 |
+
|
| 230 |
+
1. `ত ে ও ঁ ৰ প ু ৰণ ি ড ি মৰ ু গছৰ পৰ া প ্ ৰ`
|
| 231 |
+
2. `ি য ় া চ ি ন ্ ত ু স ে ই বছৰত ে ত ে ও ঁ`
|
| 232 |
+
3. `ছ ি ল । ইয ় া ৰ অন ু ম ো দ ী ৰ ্ ঘদ ি ন`
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
### Key Findings
|
| 236 |
+
|
| 237 |
+
- **Best Predictability:** Context-4 with 75.3% predictability
|
| 238 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 239 |
+
- **Memory Trade-off:** Larger contexts require more storage (1,337,967 contexts)
|
| 240 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 241 |
+
|
| 242 |
+
---
|
| 243 |
+
## 4. Vocabulary Analysis
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
|
| 249 |
+

|
| 250 |
+
|
| 251 |
+
### Statistics
|
| 252 |
+
|
| 253 |
+
| Metric | Value |
|
| 254 |
+
|--------|-------|
|
| 255 |
+
| Vocabulary Size | 69,383 |
|
| 256 |
+
| Total Tokens | 22,699,994 |
|
| 257 |
+
| Mean Frequency | 327.17 |
|
| 258 |
+
| Median Frequency | 4 |
|
| 259 |
+
| Frequency Std Dev | 13137.34 |
|
| 260 |
+
|
| 261 |
+
### Most Common Words
|
| 262 |
+
|
| 263 |
+
| Rank | Word | Frequency |
|
| 264 |
+
|------|------|-----------|
|
| 265 |
+
| 1 | ৰ | 1,751,445 |
|
| 266 |
+
| 2 | ত | 1,226,468 |
|
| 267 |
+
| 3 | ব | 988,164 |
|
| 268 |
+
| 4 | য | 983,360 |
|
| 269 |
+
| 5 | ক | 951,103 |
|
| 270 |
+
| 6 | ন | 878,240 |
|
| 271 |
+
| 7 | ল | 815,336 |
|
| 272 |
+
| 8 | প | 750,050 |
|
| 273 |
+
| 9 | ম | 610,982 |
|
| 274 |
+
| 10 | স | 521,058 |
|
| 275 |
+
|
| 276 |
+
### Least Common Words (from vocabulary)
|
| 277 |
+
|
| 278 |
+
| Rank | Word | Frequency |
|
| 279 |
+
|------|------|-----------|
|
| 280 |
+
| 1 | zns | 2 |
|
| 281 |
+
| 2 | tuklas | 2 |
|
| 282 |
+
| 3 | bilqees | 2 |
|
| 283 |
+
| 4 | surbhi | 2 |
|
| 284 |
+
| 5 | ullasamga | 2 |
|
| 285 |
+
| 6 | utsahamga | 2 |
|
| 286 |
+
| 7 | manchস | 2 |
|
| 287 |
+
| 8 | swfl | 2 |
|
| 288 |
+
| 9 | manhunt | 2 |
|
| 289 |
+
| 10 | megamodel | 2 |
|
| 290 |
+
|
| 291 |
+
### Zipf's Law Analysis
|
| 292 |
+
|
| 293 |
+
| Metric | Value |
|
| 294 |
+
|--------|-------|
|
| 295 |
+
| Zipf Coefficient | 1.5303 |
|
| 296 |
+
| R² (Goodness of Fit) | 0.997399 |
|
| 297 |
+
| Adherence Quality | **excellent** |
|
| 298 |
+
|
| 299 |
+
### Coverage Analysis
|
| 300 |
+
|
| 301 |
+
| Top N Words | Coverage |
|
| 302 |
+
|-------------|----------|
|
| 303 |
+
| Top 100 | 78.6% |
|
| 304 |
+
| Top 1,000 | 93.9% |
|
| 305 |
+
| Top 5,000 | 97.8% |
|
| 306 |
+
| Top 10,000 | 98.6% |
|
| 307 |
+
|
| 308 |
+
### Key Findings
|
| 309 |
+
|
| 310 |
+
- **Zipf Compliance:** R²=0.9974 indicates excellent adherence to Zipf's law
|
| 311 |
+
- **High Frequency Dominance:** Top 100 words cover 78.6% of corpus
|
| 312 |
+
- **Long Tail:** 59,383 words needed for remaining 1.4% coverage
|
| 313 |
+
|
| 314 |
+
---
|
| 315 |
+
## 5. Word Embeddings Evaluation
|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
|
| 325 |
+
### Model Comparison
|
| 326 |
+
|
| 327 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 328 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 329 |
+
| **mono_32d** | 113,429 | 32 | 3.011 | 0.609 | 0.8484 🏆 |
|
| 330 |
+
| **mono_64d** | 113,429 | 64 | 3.498 | 0.644 | 0.8482 |
|
| 331 |
+
| **mono_128d** | 113,429 | 128 | 4.089 | 0.704 | 0.8254 |
|
| 332 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 333 |
+
|
| 334 |
+
### Key Findings
|
| 335 |
+
|
| 336 |
+
- **Best Isotropy:** mono_32d with 0.8484 (more uniform distribution)
|
| 337 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 338 |
+
- **Vocabulary Coverage:** All models cover 113,429 words
|
| 339 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 340 |
+
|
| 341 |
+
---
|
| 342 |
+
## 6. Summary & Recommendations
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
|
| 346 |
+
### Production Recommendations
|
| 347 |
+
|
| 348 |
+
| Component | Recommended | Rationale |
|
| 349 |
+
|-----------|-------------|-----------|
|
| 350 |
+
| Tokenizer | **32k BPE** | Best compression (4.52x) with low UNK rate |
|
| 351 |
+
| N-gram | **5-gram** | Lowest perplexity (712) |
|
| 352 |
+
| Markov | **Context-4** | Highest predictability (75.3%) |
|
| 353 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 354 |
+
|
| 355 |
+
---
|
| 356 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 357 |
+
|
| 358 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 359 |
+
|
| 360 |
+
### Tokenizer Metrics
|
| 361 |
+
|
| 362 |
+
**Compression Ratio**
|
| 363 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 364 |
+
>
|
| 365 |
+
> *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.
|
| 366 |
+
>
|
| 367 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 368 |
+
|
| 369 |
+
**Average Token Length (Fertility)**
|
| 370 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 371 |
+
>
|
| 372 |
+
> *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.
|
| 373 |
+
>
|
| 374 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 375 |
+
|
| 376 |
+
**Unknown Token Rate (OOV Rate)**
|
| 377 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 378 |
+
>
|
| 379 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 380 |
+
>
|
| 381 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 382 |
+
|
| 383 |
+
### N-gram Model Metrics
|
| 384 |
+
|
| 385 |
+
**Perplexity**
|
| 386 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 387 |
+
>
|
| 388 |
+
> *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.
|
| 389 |
+
>
|
| 390 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 391 |
+
|
| 392 |
+
**Entropy**
|
| 393 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 394 |
+
>
|
| 395 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 396 |
+
>
|
| 397 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 398 |
+
|
| 399 |
+
**Coverage (Top-K)**
|
| 400 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 401 |
+
>
|
| 402 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 403 |
+
>
|
| 404 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 405 |
+
|
| 406 |
+
### Markov Chain Metrics
|
| 407 |
+
|
| 408 |
+
**Average Entropy**
|
| 409 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 410 |
+
>
|
| 411 |
+
> *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).
|
| 412 |
+
>
|
| 413 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 414 |
+
|
| 415 |
+
**Branching Factor**
|
| 416 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 417 |
+
>
|
| 418 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 419 |
+
>
|
| 420 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 421 |
+
|
| 422 |
+
**Predictability**
|
| 423 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 424 |
+
>
|
| 425 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 426 |
+
>
|
| 427 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 428 |
+
|
| 429 |
+
### Vocabulary & Zipf's Law Metrics
|
| 430 |
+
|
| 431 |
+
**Zipf's Coefficient**
|
| 432 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 433 |
+
>
|
| 434 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 435 |
+
>
|
| 436 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 437 |
+
|
| 438 |
+
**R² (Coefficient of Determination)**
|
| 439 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 440 |
+
>
|
| 441 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 442 |
+
>
|
| 443 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 444 |
+
|
| 445 |
+
**Vocabulary Coverage**
|
| 446 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 447 |
+
>
|
| 448 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 449 |
+
>
|
| 450 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 451 |
+
|
| 452 |
+
### Word Embedding Metrics
|
| 453 |
+
|
| 454 |
+
**Isotropy**
|
| 455 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 456 |
+
>
|
| 457 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 458 |
+
>
|
| 459 |
+
> *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.
|
| 460 |
+
|
| 461 |
+
**Average Norm**
|
| 462 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 463 |
+
>
|
| 464 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 465 |
+
>
|
| 466 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 467 |
+
|
| 468 |
+
**Cosine Similarity**
|
| 469 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 470 |
+
>
|
| 471 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 472 |
+
>
|
| 473 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 474 |
+
|
| 475 |
+
**t-SNE Visualization**
|
| 476 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 477 |
+
>
|
| 478 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 479 |
+
>
|
| 480 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 481 |
+
|
| 482 |
+
### General Interpretation Guidelines
|
| 483 |
+
|
| 484 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 485 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 486 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 487 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 488 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
### Visualizations Index
|
| 492 |
+
|
| 493 |
+
| Visualization | Description |
|
| 494 |
+
|---------------|-------------|
|
| 495 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 496 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 497 |
+
| Tokenizer OOV | Unknown token rates |
|
| 498 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 499 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 500 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 501 |
+
| N-gram Coverage | Top pattern coverage |
|
| 502 |
+
| N-gram Unique | Unique n-gram counts |
|
| 503 |
+
| Markov Entropy | Entropy by context size |
|
| 504 |
+
| Markov Branching | Branching factor by context |
|
| 505 |
+
| Markov Contexts | Unique context counts |
|
| 506 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 507 |
+
| Vocab Frequency | Word frequency distribution |
|
| 508 |
+
| Top 20 Words | Most frequent words |
|
| 509 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 510 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 511 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 512 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 513 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 514 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 515 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 516 |
+
| Position Encoding | Encoding method comparison |
|
| 517 |
+
| Model Sizes | Storage requirements |
|
| 518 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 519 |
+
|
| 520 |
+
---
|
| 521 |
+
## About This Project
|
| 522 |
+
|
| 523 |
+
### Data Source
|
| 524 |
+
|
| 525 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 526 |
+
|
| 527 |
+
### Project
|
| 528 |
+
|
| 529 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 530 |
+
|
| 531 |
+
### Maintainer
|
| 532 |
+
|
| 533 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 534 |
+
|
| 535 |
+
### Citation
|
| 536 |
+
|
| 537 |
+
If you use these models in your research, please cite:
|
| 538 |
+
|
| 539 |
+
```bibtex
|
| 540 |
+
@misc{wikilangs2025,
|
| 541 |
+
author = {Kamali, Omar},
|
| 542 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 543 |
+
year = {2025},
|
| 544 |
+
publisher = {HuggingFace},
|
| 545 |
+
url = {https://huggingface.co/wikilangs}
|
| 546 |
+
institution = {Omneity Labs}
|
| 547 |
+
}
|
| 548 |
+
```
|
| 549 |
+
|
| 550 |
+
### License
|
| 551 |
+
|
| 552 |
+
MIT License - Free for academic and commercial use.
|
| 553 |
+
|
| 554 |
+
### Links
|
| 555 |
+
|
| 556 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 557 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 558 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 559 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 560 |
+
---
|
| 561 |
+
*Generated by Wikilangs Models Pipeline*
|
| 562 |
+
|
| 563 |
+
*Report Date: 2025-12-27 18:45:07*
|
models/embeddings/monolingual/as_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7294ee96f3b0c61ba7c46af8e348b551645a26d74537adc45861ba9171026d24
|
| 3 |
+
size 1143382361
|
models/embeddings/monolingual/as_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "as", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/as_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "as",
|
| 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": 113429
|
| 13 |
+
}
|
models/embeddings/monolingual/as_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c0125149319853f09b65df93575e1bf1665cf0cf98a0a4e52df3248b94a776d
|
| 3 |
+
size 288268889
|
models/embeddings/monolingual/as_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "as", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/as_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "as",
|
| 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": 113429
|
| 13 |
+
}
|
models/embeddings/monolingual/as_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b271a32a3a16aa6c5905bd4ef669972e7fa9d2fcad872330bcbfe8211a6cbf6
|
| 3 |
+
size 573306713
|
models/embeddings/monolingual/as_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "as", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/as_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "as",
|
| 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": 113429
|
| 13 |
+
}
|
models/subword_markov/as_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:304b81823be6914953bac63df3fb3c2d3d5e01a1f9b4b8f4a8878717e903a2e3
|
| 3 |
+
size 319610
|
models/subword_markov/as_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 5555,
|
| 6 |
+
"total_transitions": 65140856
|
| 7 |
+
}
|
models/subword_markov/as_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:072a0a77d5f9b149b82195090a2f7ec01b569c51640f1c61e11c74d314891b20
|
| 3 |
+
size 2244616
|
models/subword_markov/as_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 44224,
|
| 6 |
+
"total_transitions": 65120064
|
| 7 |
+
}
|
models/subword_markov/as_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7c22336529a0ded174b0241383329d3154a9858bd06639bd78f20c1e786cf00
|
| 3 |
+
size 10618800
|
models/subword_markov/as_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 296427,
|
| 6 |
+
"total_transitions": 65099272
|
| 7 |
+
}
|
models/subword_markov/as_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fba617be292f432879d2b6f88a252644b452cbe07fc436c4d4b98898b0dd2f33
|
| 3 |
+
size 34480970
|
models/subword_markov/as_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 1337967,
|
| 6 |
+
"total_transitions": 65078480
|
| 7 |
+
}
|
models/subword_ngram/as_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13f2a80a67d004f512051da3fb0f08c9a906b943f4d8c6e170756448689a3095
|
| 3 |
+
size 206387
|
models/subword_ngram/as_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 14933,
|
| 6 |
+
"total_ngrams": 65140856
|
| 7 |
+
}
|
models/subword_ngram/as_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566ad2045c2c52180f92dc29b097fad25c84b062a65319808f9431fad7f538cb
|
| 3 |
+
size 1714165
|
models/subword_ngram/as_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 135792,
|
| 6 |
+
"total_ngrams": 65120064
|
| 7 |
+
}
|
models/subword_ngram/as_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:645ec172809e1ba4475428602980c6d539af311c472d34ab195bc24111837333
|
| 3 |
+
size 9556409
|
models/subword_ngram/as_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 727754,
|
| 6 |
+
"total_ngrams": 65099272
|
| 7 |
+
}
|
models/tokenizer/as_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92c4a0d6d3435730960b337cbe00d6561bb754c82a66840b10b3effdf114a9c0
|
| 3 |
+
size 627322
|
models/tokenizer/as_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/as_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfd4440400274db9e0e200c32c56c9b2f8b5d1e4a80cd88b665224da4685840d
|
| 3 |
+
size 1042352
|
models/tokenizer/as_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/as_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1a070ac3d05309f6fc98145f97c0714ee5da0ecebf4b99231acd5001077e67f
|
| 3 |
+
size 1892860
|
models/tokenizer/as_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/as_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3ac9ae44b7976a9a581b8c12e38d04180fcbc38165d660d6b96b537c7954700
|
| 3 |
+
size 427062
|
models/tokenizer/as_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/as_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afd7c512db097eb79bf2751927085a424d4d4be0b149ff56f3b19b0846f20e25
|
| 3 |
+
size 1236046
|
models/vocabulary/as_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "as",
|
| 3 |
+
"vocabulary_size": 69383,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.007789323101723796,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.7824795758310844,
|
| 8 |
+
"top_1000": 0.9345050339631166,
|
| 9 |
+
"top_5000": 0.9733725115168742,
|
| 10 |
+
"top_10000": 0.9816343824731659
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 108278,
|
| 13 |
+
"hapax_ratio": 0.6094640917252521,
|
| 14 |
+
"total_documents": 20792
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/as_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d6086bc53947c43f34edcda8e0a034c9779c3d6c44de35c31cc2ba88f8aa774
|
| 3 |
+
size 9625358
|
models/word_markov/as_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 178570,
|
| 6 |
+
"total_transitions": 41886369
|
| 7 |
+
}
|
models/word_markov/as_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1542cf7905c52aefaff0db643b5107e37e6e10fccc17a863ba95e7ee172740fd
|
| 3 |
+
size 27241048
|
models/word_markov/as_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 1073346,
|
| 6 |
+
"total_transitions": 41865578
|
| 7 |
+
}
|
models/word_markov/as_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09d22e9d5414b02524a41246b9410c78ab3bf52bcade25ce445168e3445ee4d8
|
| 3 |
+
size 63382094
|
models/word_markov/as_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 2893182,
|
| 6 |
+
"total_transitions": 41844788
|
| 7 |
+
}
|
models/word_markov/as_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05e3849b2bcb7ebe1f9ae63c37ed5ea9973336b012b7a2c60020150cd53b6a7d
|
| 3 |
+
size 124869442
|
models/word_markov/as_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_contexts": 5984484,
|
| 6 |
+
"total_transitions": 41824000
|
| 7 |
+
}
|
models/word_ngram/as_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46ca72b889b191be977809c46f9e5c601830c691249878aa061223811c6c065a
|
| 3 |
+
size 1981156
|
models/word_ngram/as_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 144083,
|
| 6 |
+
"total_ngrams": 41886369
|
| 7 |
+
}
|
models/word_ngram/as_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b16c54cf2957c0d5c96809a5a7c39da4fe7c1dd6c13b3345c3073e0cc4a9da1
|
| 3 |
+
size 8106622
|
models/word_ngram/as_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 558435,
|
| 6 |
+
"total_ngrams": 41865578
|
| 7 |
+
}
|
models/word_ngram/as_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c567cb651bd6273d82124f43b6ac4426b9ece8a16302648d995617ab25da8d18
|
| 3 |
+
size 26163353
|
models/word_ngram/as_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "as",
|
| 5 |
+
"unique_ngrams": 1749119,
|
| 6 |
+
"total_ngrams": 41844788
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|