Upload all models and assets for sa (latest)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +7 -0
- README.md +772 -0
- models/embeddings/aligned/sa_128d.bin +3 -0
- models/embeddings/aligned/sa_128d.meta.json +1 -0
- models/embeddings/aligned/sa_128d.projection.npy +3 -0
- models/embeddings/aligned/sa_128d_metadata.json +8 -0
- models/embeddings/aligned/sa_32d.bin +3 -0
- models/embeddings/aligned/sa_32d.meta.json +1 -0
- models/embeddings/aligned/sa_32d.projection.npy +3 -0
- models/embeddings/aligned/sa_32d_metadata.json +8 -0
- models/embeddings/aligned/sa_64d.bin +3 -0
- models/embeddings/aligned/sa_64d.meta.json +1 -0
- models/embeddings/aligned/sa_64d.projection.npy +3 -0
- models/embeddings/aligned/sa_64d_metadata.json +8 -0
- models/embeddings/monolingual/sa_128d.bin +3 -0
- models/embeddings/monolingual/sa_128d.meta.json +1 -0
- models/embeddings/monolingual/sa_128d_metadata.json +16 -0
- models/embeddings/monolingual/sa_32d.bin +3 -0
- models/embeddings/monolingual/sa_32d.meta.json +1 -0
- models/embeddings/monolingual/sa_32d_metadata.json +16 -0
- models/embeddings/monolingual/sa_64d.bin +3 -0
- models/embeddings/monolingual/sa_64d.meta.json +1 -0
- models/embeddings/monolingual/sa_64d_metadata.json +16 -0
- models/subword_markov/sa_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/sa_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/sa_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/sa_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/sa_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/sa_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/sa_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/sa_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/sa_2gram_subword.parquet +3 -0
- models/subword_ngram/sa_2gram_subword_metadata.json +7 -0
- models/subword_ngram/sa_3gram_subword.parquet +3 -0
- models/subword_ngram/sa_3gram_subword_metadata.json +7 -0
- models/subword_ngram/sa_4gram_subword.parquet +3 -0
- models/subword_ngram/sa_4gram_subword_metadata.json +7 -0
- models/subword_ngram/sa_5gram_subword.parquet +3 -0
- models/subword_ngram/sa_5gram_subword_metadata.json +7 -0
- models/tokenizer/sa_tokenizer_16k.model +3 -0
- models/tokenizer/sa_tokenizer_16k.vocab +0 -0
- models/tokenizer/sa_tokenizer_32k.model +3 -0
- models/tokenizer/sa_tokenizer_32k.vocab +0 -0
- models/tokenizer/sa_tokenizer_64k.model +3 -0
- models/tokenizer/sa_tokenizer_64k.vocab +0 -0
- models/tokenizer/sa_tokenizer_8k.model +3 -0
- models/tokenizer/sa_tokenizer_8k.vocab +0 -0
- models/vocabulary/sa_vocabulary.parquet +3 -0
- models/vocabulary/sa_vocabulary_metadata.json +17 -0
- models/word_markov/sa_markov_ctx1_word.parquet +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ 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/embedding_tsne_multilingual.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/tsne_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: sa
|
| 3 |
+
language_name: Sanskrit
|
| 4 |
+
language_family: indoaryan_central
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- feature-extraction
|
| 14 |
+
- sentence-similarity
|
| 15 |
+
- tokenization
|
| 16 |
+
- n-grams
|
| 17 |
+
- markov-chain
|
| 18 |
+
- text-mining
|
| 19 |
+
- fasttext
|
| 20 |
+
- babelvec
|
| 21 |
+
- vocabulous
|
| 22 |
+
- vocabulary
|
| 23 |
+
- monolingual
|
| 24 |
+
- family-indoaryan_central
|
| 25 |
+
license: mit
|
| 26 |
+
library_name: wikilangs
|
| 27 |
+
pipeline_tag: text-generation
|
| 28 |
+
datasets:
|
| 29 |
+
- omarkamali/wikipedia-monthly
|
| 30 |
+
dataset_info:
|
| 31 |
+
name: wikipedia-monthly
|
| 32 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 33 |
+
metrics:
|
| 34 |
+
- name: best_compression_ratio
|
| 35 |
+
type: compression
|
| 36 |
+
value: 4.437
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.8264
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-10
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Sanskrit - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Sanskrit** Wikipedia data.
|
| 50 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 51 |
+
|
| 52 |
+
## 📋 Repository Contents
|
| 53 |
+
|
| 54 |
+
### Models & Assets
|
| 55 |
+
|
| 56 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 57 |
+
- N-gram models (2, 3, 4, 5-gram)
|
| 58 |
+
- Markov chains (context of 1, 2, 3, 4 and 5)
|
| 59 |
+
- Subword N-gram and Markov chains
|
| 60 |
+
- Embeddings in various sizes and dimensions (aligned and unaligned)
|
| 61 |
+
- Language Vocabulary
|
| 62 |
+
- Language Statistics
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
### Analysis and Evaluation
|
| 67 |
+
|
| 68 |
+
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
|
| 69 |
+
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
|
| 70 |
+
- [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
|
| 71 |
+
- [4. Vocabulary Analysis](#4-vocabulary-analysis)
|
| 72 |
+
- [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
|
| 73 |
+
- [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
|
| 74 |
+
- [7. Summary & Recommendations](#7-summary--recommendations)
|
| 75 |
+
- [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
|
| 76 |
+
- [Visualizations Index](#visualizations-index)
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
## 1. Tokenizer Evaluation
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
|
| 89 |
+
### Results
|
| 90 |
+
|
| 91 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 92 |
+
|------------|-------------|---------------|----------|--------------|
|
| 93 |
+
| **8k** | 3.370x | 3.37 | 0.2913% | 717,781 |
|
| 94 |
+
| **16k** | 3.776x | 3.78 | 0.3263% | 640,751 |
|
| 95 |
+
| **32k** | 4.129x | 4.13 | 0.3569% | 585,907 |
|
| 96 |
+
| **64k** | 4.437x 🏆 | 4.44 | 0.3835% | 545,247 |
|
| 97 |
+
|
| 98 |
+
### Tokenization Examples
|
| 99 |
+
|
| 100 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 101 |
+
|
| 102 |
+
**Sample 1:** `सः यादवकुलस्य राजा आसीत्। प्राचीनवंशावली स्टब्स् प्राप्तः भाषानुबन्धः अपूर्णलेखा...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁सः ▁यादवकुलस्य ▁राजा ▁आसीत् । ▁प्राचीनवंशावली ▁स्टब्स् ▁प्राप्तः ▁भाषानुबन्धः ▁अपूर्णलेखाः ... (+6 more)` | 16 |
|
| 107 |
+
| 16k | `▁सः ▁यादवकुलस्य ▁राजा ▁आसीत् । ▁प्राचीनवंशावली ▁स्टब्स् ▁प्राप्तः ▁भाषानुबन्धः ▁अपूर्णलेखाः ... (+6 more)` | 16 |
|
| 108 |
+
| 32k | `▁सः ▁यादवकुलस्य ▁राजा ▁आसीत् । ▁प्राचीनवंशावली ▁स्टब्स् ▁प्राप्तः ▁भाषानुबन्धः ▁अपूर्णलेखाः ... (+6 more)` | 16 |
|
| 109 |
+
| 64k | `▁सः ▁यादवकुलस्य ▁राजा ▁आसीत् । ▁प्राचीनवंशावली ▁स्टब्स् ▁प्राप्तः ▁भाषानुबन्धः ▁अपूर्णलेखाः ... (+6 more)` | 16 |
|
| 110 |
+
|
| 111 |
+
**Sample 2:** `सः अयोध्याकुलस्य राजा आसीत्। प्राचीन-वंशावली अयोध्याकुल स्टब्स् अपूर्णलेखाः योजन...`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁सः ▁अयोध्याकुलस्य ▁राजा ▁आसीत् । ▁प्राचीन - वंशावली ▁अयोध्याकुल ▁स्टब्स् ... (+3 more)` | 13 |
|
| 116 |
+
| 16k | `▁सः ▁अयोध्याकुलस्य ▁राजा ▁आसीत् । ▁प्राचीन - वंशावली ▁अयोध्याकुल ▁स्ट���्स् ... (+3 more)` | 13 |
|
| 117 |
+
| 32k | `▁सः ▁अयोध्याकुलस्य ▁राजा ▁आसीत् । ▁प्राचीन - वंशावली ▁अयोध्याकुल ▁स्टब्स् ... (+3 more)` | 13 |
|
| 118 |
+
| 64k | `▁सः ▁अयोध्याकुलस्य ▁राजा ▁आसीत् । ▁प्राचीन - वंशावली ▁अयोध्याकुल ▁स्टब्स् ... (+3 more)` | 13 |
|
| 119 |
+
|
| 120 |
+
**Sample 3:** `स्वर्णगौरीव्रतम् इत्युक्ते गौरीतृतीया एव । तत्र द्रष्टव्यम् । स्टब्स् अपूर्णलेखा...`
|
| 121 |
+
|
| 122 |
+
| Vocab | Tokens | Count |
|
| 123 |
+
|-------|--------|-------|
|
| 124 |
+
| 8k | `▁स्वर्ण गौ री व्र तम् ▁इत्युक्ते ▁गौरी त ृत ीया ... (+10 more)` | 20 |
|
| 125 |
+
| 16k | `▁स्वर्ण गौ री व्रतम् ▁इत्युक्ते ▁गौरी तृत ीया ▁एव ▁। ... (+7 more)` | 17 |
|
| 126 |
+
| 32k | `▁स्वर्ण गौरी व्रतम् ▁इत्युक्ते ▁गौरी तृत ीया ▁एव ▁। ▁तत्र ... (+6 more)` | 16 |
|
| 127 |
+
| 64k | `▁स्वर्ण गौरी व्रतम् ▁इत्युक्ते ▁गौरी तृतीया ▁एव ▁। ▁तत्र ▁द्रष्टव्यम् ... (+5 more)` | 15 |
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
### Key Findings
|
| 131 |
+
|
| 132 |
+
- **Best Compression:** 64k achieves 4.437x compression
|
| 133 |
+
- **Lowest UNK Rate:** 8k with 0.2913% unknown tokens
|
| 134 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 135 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 136 |
+
|
| 137 |
+
---
|
| 138 |
+
## 2. N-gram Model Evaluation
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
### Results
|
| 147 |
+
|
| 148 |
+
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 149 |
+
|--------|---------|------------|---------|----------------|------------------|-------------------|
|
| 150 |
+
| **2-gram** | Word | 11,133 | 13.44 | 41,507 | 20.4% | 40.2% |
|
| 151 |
+
| **2-gram** | Subword | 4,254 🏆 | 12.05 | 77,760 | 29.2% | 59.0% |
|
| 152 |
+
| **3-gram** | Word | 6,057 | 12.56 | 36,616 | 30.9% | 49.8% |
|
| 153 |
+
| **3-gram** | Subword | 37,749 | 15.20 | 386,589 | 11.4% | 30.0% |
|
| 154 |
+
| **4-gram** | Word | 22,497 | 14.46 | 116,572 | 23.9% | 36.9% |
|
| 155 |
+
| **4-gram** | Subword | 171,126 | 17.38 | 1,206,214 | 7.0% | 18.9% |
|
| 156 |
+
| **5-gram** | Word | 17,943 | 14.13 | 99,332 | 26.0% | 39.2% |
|
| 157 |
+
| **5-gram** | Subword | 336,494 | 18.36 | 1,600,156 | 5.2% | 14.8% |
|
| 158 |
+
|
| 159 |
+
### Top 5 N-grams by Size
|
| 160 |
+
|
| 161 |
+
**2-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `तमे वर्षे` | 6,311 |
|
| 166 |
+
| 2 | `अक्तूबर दिसंबर` | 5,560 |
|
| 167 |
+
| 3 | `जनवरी मार्च` | 5,559 |
|
| 168 |
+
| 4 | `जुलाई सितंबर` | 5,558 |
|
| 169 |
+
| 5 | `मार्च अप्रैल` | 5,558 |
|
| 170 |
+
|
| 171 |
+
**3-grams (Word):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `जनवरी मार्च अप्रैल` | 5,556 |
|
| 176 |
+
| 2 | `मार्च अप्रैल जून` | 5,555 |
|
| 177 |
+
| 3 | `सितंबर अक्तूबर दिसंबर` | 5,554 |
|
| 178 |
+
| 4 | `जुलाई सितंबर अक्तूबर` | 5,554 |
|
| 179 |
+
| 5 | `अप्रैल जून जुलाई` | 5,553 |
|
| 180 |
+
|
| 181 |
+
**4-grams (Word):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `जनवरी मार्च अप्रैल जून` | 5,555 |
|
| 186 |
+
| 2 | `जुलाई सितंबर अक्तूबर दिसंबर` | 5,554 |
|
| 187 |
+
| 3 | `मार्च अप्रैल जून जुलाई` | 5,552 |
|
| 188 |
+
| 4 | `अप्रैल जून जुलाई सितंबर` | 5,552 |
|
| 189 |
+
| 5 | `जून जुलाई सितंबर अक्तूबर` | 5,548 |
|
| 190 |
+
|
| 191 |
+
**5-grams (Word):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `जनवरी मार्च अप्रैल जून जुलाई` | 5,552 |
|
| 196 |
+
| 2 | `मार्च अप्रैल जून जुलाई सितंबर` | 5,551 |
|
| 197 |
+
| 3 | `अप्रैल जून जुलाई सितंबर अक्तूबर` | 5,548 |
|
| 198 |
+
| 4 | `जून जुलाई सितंबर अक्तूबर दिसंबर` | 5,548 |
|
| 199 |
+
| 5 | `सम्बद्धाः लेखाः भारतीयकालमानः ज्योतिषशास्त्रम् संस्कृतम्` | 1,906 |
|
| 200 |
+
|
| 201 |
+
**2-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `। _` | 304,328 |
|
| 206 |
+
| 2 | `_ अ` | 277,099 |
|
| 207 |
+
| 3 | `_ ।` | 243,302 |
|
| 208 |
+
| 4 | `स्य _` | 179,722 |
|
| 209 |
+
| 5 | `, _` | 145,968 |
|
| 210 |
+
|
| 211 |
+
**3-grams (Subword):**
|
| 212 |
+
|
| 213 |
+
| Rank | N-gram | Count |
|
| 214 |
+
|------|--------|-------|
|
| 215 |
+
| 1 | `_ । _` | 237,833 |
|
| 216 |
+
| 2 | `_ च _` | 50,503 |
|
| 217 |
+
| 3 | `। _ अ` | 43,595 |
|
| 218 |
+
| 4 | `_ इ ति` | 41,470 |
|
| 219 |
+
| 5 | `म् _ अ` | 38,861 |
|
| 220 |
+
|
| 221 |
+
**4-grams (Subword):**
|
| 222 |
+
|
| 223 |
+
| Rank | N-gram | Count |
|
| 224 |
+
|------|--------|-------|
|
| 225 |
+
| 1 | `_ इ ति _` | 36,444 |
|
| 226 |
+
| 2 | `_ । _ अ` | 35,818 |
|
| 227 |
+
| 3 | `ति _ । _` | 33,422 |
|
| 228 |
+
| 4 | `त् _ । _` | 31,074 |
|
| 229 |
+
| 5 | `_ भ व ति` | 24,339 |
|
| 230 |
+
|
| 231 |
+
**5-grams (Subword):**
|
| 232 |
+
|
| 233 |
+
| Rank | N-gram | Count |
|
| 234 |
+
|------|--------|-------|
|
| 235 |
+
| 1 | `_ भ व ति _` | 17,863 |
|
| 236 |
+
| 2 | `_ अ स्ति _ ।` | 17,494 |
|
| 237 |
+
| 3 | `अ स्ति _ । _` | 17,320 |
|
| 238 |
+
| 4 | `_ आ सी त् _` | 13,617 |
|
| 239 |
+
| 5 | `सी त् _ । _` | 13,209 |
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
### Key Findings
|
| 243 |
+
|
| 244 |
+
- **Best Perplexity:** 2-gram (subword) with 4,254
|
| 245 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 246 |
+
- **Coverage:** Top-1000 patterns cover ~15% of corpus
|
| 247 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 248 |
+
|
| 249 |
+
---
|
| 250 |
+
## 3. Markov Chain Evaluation
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+
### Results
|
| 259 |
+
|
| 260 |
+
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 261 |
+
|---------|---------|-------------|------------|------------------|-----------------|----------------|
|
| 262 |
+
| **1** | Word | 0.4713 | 1.386 | 3.33 | 652,534 | 52.9% |
|
| 263 |
+
| **1** | Subword | 0.8678 | 1.825 | 13.92 | 17,979 | 13.2% |
|
| 264 |
+
| **2** | Word | 0.1228 | 1.089 | 1.26 | 2,174,445 | 87.7% |
|
| 265 |
+
| **2** | Subword | 0.7350 | 1.664 | 4.87 | 250,225 | 26.5% |
|
| 266 |
+
| **3** | Word | 0.0305 | 1.021 | 1.05 | 2,734,909 | 96.9% |
|
| 267 |
+
| **3** | Subword | 0.5248 | 1.439 | 2.74 | 1,217,332 | 47.5% |
|
| 268 |
+
| **4** | Word | 0.0099 🏆 | 1.007 | 1.02 | 2,863,051 | 99.0% |
|
| 269 |
+
| **4** | Subword | 0.3365 | 1.263 | 1.79 | 3,333,052 | 66.4% |
|
| 270 |
+
|
| 271 |
+
### Generated Text Samples (Word-based)
|
| 272 |
+
|
| 273 |
+
Below are text samples generated from each word-based Markov chain model:
|
| 274 |
+
|
| 275 |
+
**Context Size 1:**
|
| 276 |
+
|
| 277 |
+
1. `च दूरं १ वचनम् अत्र शीलतायाः आनन्दः एव मनः चित्तम् मनः शरीर शरीरं किं भविष्यति विभिन्नवि`
|
| 278 |
+
2. `इति पदसंज्ञाविधायकं सूत्रं त्रिफला एकं मण्डलं मुघल्साम्राज्यस्य अधीनम् अकरोत् विद्यार्थिकालात् एव रा...`
|
| 279 |
+
3. `अस्ति या हि साऽवस्था औपनिषदास्तु तां विक्रीतवान् अपि दृश्यते १ २ १ वेदघोष माता प्रसाद नैय्यर`
|
| 280 |
+
|
| 281 |
+
**Context Size 2:**
|
| 282 |
+
|
| 283 |
+
1. `तमे वर्षे महामहोपाध्याय प्रशस्तिं दत्त्वा सम्मानितवन्तः चतुर्थं कन्नड साहित्य परिषदः अध्यक्षः आसीत् ...`
|
| 284 |
+
2. `अक्तूबर दिसंबर बाह्य सूत्राणि calendopedia ६८२ ६८२ स्टब्स् अपूर्णलेखाः योजनीयम् योजनीया स्टब्स् अपूर...`
|
| 285 |
+
3. `जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तूबर दिसंबर निधनानि जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तू...`
|
| 286 |
+
|
| 287 |
+
**Context Size 3:**
|
| 288 |
+
|
| 289 |
+
1. `जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तूबर दिसंबर निधनानि जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तू...`
|
| 290 |
+
2. `मार्च अप्रैल जून जुलाई सितंबर अक्तूबर दिसंबर अज्ञात तिथीनां घटनाः जन्मानि जनवरी मार्च अप्रैल जून जुल...`
|
| 291 |
+
3. `सितंबर अक्तूबर दिसंबर बाह्य सूत्राणि calendopedia स्टब्स् अपूर्णलेखाः नावश्यके सम्बद्धाः लेखाः भारती...`
|
| 292 |
+
|
| 293 |
+
**Context Size 4:**
|
| 294 |
+
|
| 295 |
+
1. `जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तूबर दिसंबर बाह्य सूत्राणि calendopedia स्टब्स् अपूर्णलेखाः न...`
|
| 296 |
+
2. `जुलाई सितंबर अक्तूबर दिसंबर अज्ञात तिथीनां घटनाः जन्मानि जनवरी मार्च अप्रैल जून जुलाई सितंबर अक्तूबर...`
|
| 297 |
+
3. `अप्रैल जून जुलाई सितंबर अक्तूबर दिसंबर अज्ञात तिथीनां घटनाः जन्मानि जनवरी मार्च अप्रैल जून जुलाई सित...`
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
### Generated Text Samples (Subword-based)
|
| 301 |
+
|
| 302 |
+
Below are text samples generated from each subword-based Markov chain model:
|
| 303 |
+
|
| 304 |
+
**Context Size 1:**
|
| 305 |
+
|
| 306 |
+
1. `_स्म_वादः_स्था_विताः_‘विषम्_`
|
| 307 |
+
2. `।_वितुं_पि_इति_व्यव_शिरोम`
|
| 308 |
+
3. `व_एवत्_ले_()_जैनयत्_`
|
| 309 |
+
|
| 310 |
+
**Context Size 2:**
|
| 311 |
+
|
| 312 |
+
1. `।_ततश्च_।_अस्ति_इत्याख्यस्य_के`
|
| 313 |
+
2. `_अभवति।_मता_एलायाः_१,२`
|
| 314 |
+
3. `_।_एव_सुमेर_।_वा"_नास्ति`
|
| 315 |
+
|
| 316 |
+
**Context Size 3:**
|
| 317 |
+
|
| 318 |
+
1. `_।_अनेकों_उपस्थितिर्भवति_।_स`
|
| 319 |
+
2. `_च_दृढकार्यनीतिः_आवश्यकम्_उत्त`
|
| 320 |
+
3. `।_अस्मिन्_नगरे_अरुणाचलप्रदेश`
|
| 321 |
+
|
| 322 |
+
**Context Size 4:**
|
| 323 |
+
|
| 324 |
+
1. `_इति_।_पारिजातवृक्षं,_भागवतस्य`
|
| 325 |
+
2. `_।_अजमेर-रतन-फर्निचर_इष्णु`
|
| 326 |
+
3. `ति_।_प्रमाभेदात्_त्रिविधाः_प्रधानमन्त्रि`
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
### Key Findings
|
| 330 |
+
|
| 331 |
+
- **Best Predictability:** Context-4 (word) with 99.0% predictability
|
| 332 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 333 |
+
- **Memory Trade-off:** Larger contexts require more storage (3,333,052 contexts)
|
| 334 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 335 |
+
|
| 336 |
+
---
|
| 337 |
+
## 4. Vocabulary Analysis
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
|
| 345 |
+
### Statistics
|
| 346 |
+
|
| 347 |
+
| Metric | Value |
|
| 348 |
+
|--------|-------|
|
| 349 |
+
| Vocabulary Size | 183,249 |
|
| 350 |
+
| Total Tokens | 2,768,645 |
|
| 351 |
+
| Mean Frequency | 15.11 |
|
| 352 |
+
| Median Frequency | 3 |
|
| 353 |
+
| Frequency Std Dev | 241.86 |
|
| 354 |
+
|
| 355 |
+
### Most Common Words
|
| 356 |
+
|
| 357 |
+
| Rank | Word | Frequency |
|
| 358 |
+
|------|------|-----------|
|
| 359 |
+
| 1 | च | 52,641 |
|
| 360 |
+
| 2 | इति | 38,813 |
|
| 361 |
+
| 3 | अस्ति | 30,239 |
|
| 362 |
+
| 4 | भवति | 24,354 |
|
| 363 |
+
| 5 | न | 20,240 |
|
| 364 |
+
| 6 | आसीत् | 18,819 |
|
| 365 |
+
| 7 | अपि | 18,333 |
|
| 366 |
+
| 8 | एव | 17,673 |
|
| 367 |
+
| 9 | सन्ति | 13,702 |
|
| 368 |
+
| 10 | तस्य | 13,542 |
|
| 369 |
+
|
| 370 |
+
### Least Common Words (from vocabulary)
|
| 371 |
+
|
| 372 |
+
| Rank | Word | Frequency |
|
| 373 |
+
|------|------|-----------|
|
| 374 |
+
| 1 | एन्क्रिप्शनस्य | 2 |
|
| 375 |
+
| 2 | अनधिकृतप्रवेशात् | 2 |
|
| 376 |
+
| 3 | क्रिप्टोग्राफी | 2 |
|
| 377 |
+
| 4 | अङ्कीयहस्ताक्षरस्य | 2 |
|
| 378 |
+
| 5 | गुप्तीकरणं | 2 |
|
| 379 |
+
| 6 | बीमयोः | 2 |
|
| 380 |
+
| 7 | व्यवहारौ | 2 |
|
| 381 |
+
| 8 | जोखिममूल्याङ्कनम् | 2 |
|
| 382 |
+
| 9 | संकटेभ्यः | 2 |
|
| 383 |
+
| 10 | pmfby | 2 |
|
| 384 |
+
|
| 385 |
+
### Zipf's Law Analysis
|
| 386 |
+
|
| 387 |
+
| Metric | Value |
|
| 388 |
+
|--------|-------|
|
| 389 |
+
| Zipf Coefficient | 0.9504 |
|
| 390 |
+
| R² (Goodness of Fit) | 0.998392 |
|
| 391 |
+
| Adherence Quality | **excellent** |
|
| 392 |
+
|
| 393 |
+
### Coverage Analysis
|
| 394 |
+
|
| 395 |
+
| Top N Words | Coverage |
|
| 396 |
+
|-------------|----------|
|
| 397 |
+
| Top 100 | 24.7% |
|
| 398 |
+
| Top 1,000 | 46.2% |
|
| 399 |
+
| Top 5,000 | 63.2% |
|
| 400 |
+
| Top 10,000 | 70.6% |
|
| 401 |
+
|
| 402 |
+
### Key Findings
|
| 403 |
+
|
| 404 |
+
- **Zipf Compliance:** R²=0.9984 indicates excellent adherence to Zipf's law
|
| 405 |
+
- **High Frequency Dominance:** Top 100 words cover 24.7% of corpus
|
| 406 |
+
- **Long Tail:** 173,249 words needed for remaining 29.4% coverage
|
| 407 |
+
|
| 408 |
+
---
|
| 409 |
+
## 5. Word Embeddings Evaluation
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
### 5.1 Cross-Lingual Alignment
|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
### 5.2 Model Comparison
|
| 428 |
+
|
| 429 |
+
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
|
| 430 |
+
|-------|-----------|----------|------------------|---------------|----------------|
|
| 431 |
+
| **mono_32d** | 32 | 0.8179 | 0.3126 | N/A | N/A |
|
| 432 |
+
| **mono_64d** | 64 | 0.8264 | 0.2265 | N/A | N/A |
|
| 433 |
+
| **mono_128d** | 128 | 0.8039 | 0.1686 | N/A | N/A |
|
| 434 |
+
| **aligned_32d** | 32 | 0.8179 | 0.3205 | 0.0060 | 0.0740 |
|
| 435 |
+
| **aligned_64d** | 64 | 0.8264 🏆 | 0.2281 | 0.0060 | 0.0840 |
|
| 436 |
+
| **aligned_128d** | 128 | 0.8039 | 0.1677 | 0.0120 | 0.1360 |
|
| 437 |
+
|
| 438 |
+
### Key Findings
|
| 439 |
+
|
| 440 |
+
- **Best Isotropy:** aligned_64d with 0.8264 (more uniform distribution)
|
| 441 |
+
- **Semantic Density:** Average pairwise similarity of 0.2374. Lower values indicate better semantic separation.
|
| 442 |
+
- **Alignment Quality:** Aligned models achieve up to 1.2% R@1 in cross-lingual retrieval.
|
| 443 |
+
- **Recommendation:** 128d aligned for best cross-lingual performance
|
| 444 |
+
|
| 445 |
+
---
|
| 446 |
+
## 6. Morphological Analysis (Experimental)
|
| 447 |
+
|
| 448 |
+
This section presents an automated morphological analysis derived from the statistical divergence between word-level and subword-level models. By analyzing where subword predictability spikes and where word-level coverage fails, we can infer linguistic structures without supervised data.
|
| 449 |
+
|
| 450 |
+
### 6.1 Productivity & Complexity
|
| 451 |
+
|
| 452 |
+
| Metric | Value | Interpretation | Recommendation |
|
| 453 |
+
|--------|-------|----------------|----------------|
|
| 454 |
+
| Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
|
| 455 |
+
| Idiomaticity Gap | **1.652** | High formulaic/idiomatic content | - |
|
| 456 |
+
|
| 457 |
+
### 6.2 Affix Inventory (Productive Units)
|
| 458 |
+
|
| 459 |
+
These are the most productive prefixes and suffixes identified by sampling the vocabulary for global substitutability patterns. A unit is considered an affix if stripping it leaves a valid stem that appears in other contexts.
|
| 460 |
+
|
| 461 |
+
#### Productive Prefixes
|
| 462 |
+
| Prefix | Examples |
|
| 463 |
+
|--------|----------|
|
| 464 |
+
| `-स` | सम्पन्नमासीदिति, सर्वोत्तमं, स्वप्रशासनम् |
|
| 465 |
+
| `-क` | क्रीतवान्, कृण्वती, कृशः |
|
| 466 |
+
| `-म` | मूलभूतं, मांसाशी, महिषासुरमर्दिनी |
|
| 467 |
+
| `-अ` | अस्वास्थ्यं, अहम्, अथासौ |
|
| 468 |
+
| `-प` | प्रतिपादन, पर्यटनस्य, पीलीभीतनगरम् |
|
| 469 |
+
| `-व` | वाचमुपासते, व्यक्तित्वैक्यं, व्यञ्जनयोः |
|
| 470 |
+
| `-न` | निर्भरति, निष्पाद्यते, निरोद्धव्याः |
|
| 471 |
+
| `-ब` | बाङ्ला, बॉटनिकल, बलूची |
|
| 472 |
+
|
| 473 |
+
#### Productive Suffixes
|
| 474 |
+
| Suffix | Examples |
|
| 475 |
+
|--------|----------|
|
| 476 |
+
| `-य` | पर्यटनस्य, गणकयन्त्रस्य, मुख्यभवनस्य |
|
| 477 |
+
| `-न` | प्रतिपादन, भारतसम्राट्त्वेन, एकाग्रीकरणेन |
|
| 478 |
+
| `-ण` | महाभाष्येण, आनन्दवर्धनाचार्येण, कृतिरूपेण |
|
| 479 |
+
| `-व` | मिलित्व, एतेषामेव, सुविदितमेव |
|
| 480 |
+
| `-र` | चचार, हरिदुष्ट्र, कालचक्र |
|
| 481 |
+
| `-च` | वाक्यपदीयकारश्च, मरिच, आश्रमाणाञ्च |
|
| 482 |
+
| `-s` | overlays, metals, properties |
|
| 483 |
+
| `-त` | चालित, स्वीक्रियन्त, अवर्तन्त |
|
| 484 |
+
|
| 485 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 486 |
+
|
| 487 |
+
Bound stems are high-frequency subword units that are semantically cohesive but rarely appear as standalone words. These often correspond to the 'core' of a word that requires inflection or derivation to be valid.
|
| 488 |
+
|
| 489 |
+
| Stem | Cohesion | Substitutability | Examples |
|
| 490 |
+
|------|----------|------------------|----------|
|
| 491 |
+
| `tion` | 3.78x | 25 contexts | notion, nation, motion |
|
| 492 |
+
| `atio` | 3.63x | 19 contexts | nation, station, nations |
|
| 493 |
+
| `ture` | 3.78x | 16 contexts | nature, future, futures |
|
| 494 |
+
| `nter` | 3.65x | 16 contexts | inter, enter, unter |
|
| 495 |
+
| `ment` | 3.56x | 14 contexts | mental, cement, moment |
|
| 496 |
+
| `ical` | 3.83x | 6 contexts | radical, logical, ethical |
|
| 497 |
+
| `inte` | 3.67x | 6 contexts | inter, winter, interna |
|
| 498 |
+
| `comm` | 3.65x | 4 contexts | common, comment, commons |
|
| 499 |
+
| `enta` | 3.56x | 3 contexts | mental, dental, oriental |
|
| 500 |
+
|
| 501 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 502 |
+
|
| 503 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 504 |
+
|
| 505 |
+
| Prefix | Suffix | Frequency | Examples |
|
| 506 |
+
|--------|--------|-----------|----------|
|
| 507 |
+
| `-प` | `-य` | 78 words | परिश्रम्य, प्रियदासस्य |
|
| 508 |
+
| `-स` | `-य` | 75 words | सारानाथस्य, सम्बोद्ध्य |
|
| 509 |
+
| `-व` | `-य` | 67 words | वर्णधर्मस्य, वेङ्कटमाधवस्य |
|
| 510 |
+
| `-अ` | `-य` | 66 words | अधर्माय, अपसारणाय |
|
| 511 |
+
| `-क` | `-य` | 53 words | कन्नडसाहित्यसम्मेलनस्य, कूपिय |
|
| 512 |
+
| `-म` | `-य` | 39 words | महाराजस्य, मान्यखेटस्य |
|
| 513 |
+
| `-न` | `-य` | 39 words | निश्चिकाय, निर्गमनाय |
|
| 514 |
+
| `-प` | `-न` | 29 words | पूरणेन, प्रतिमानेन |
|
| 515 |
+
| `-ज` | `-य` | 26 words | जापानीय, जीवेश्वरभेदस्य |
|
| 516 |
+
| `-स` | `-न` | 26 words | स्वप्रयत्नेन, सोमेन |
|
| 517 |
+
|
| 518 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 519 |
+
|
| 520 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 521 |
+
|
| 522 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 523 |
+
|------|-----------------|------------|------|
|
| 524 |
+
| उत्पादनेन | **`उत्पादने-न`** | 4.5 | `उत्पादने` |
|
| 525 |
+
| upanishads | **`upanishad-s`** | 4.5 | `upanishad` |
|
| 526 |
+
| अवस्थितिः | **`अव-स्थितिः`** | 4.5 | `स्थितिः` |
|
| 527 |
+
| अशस्त्रम् | **`अ-श-स्त्रम्`** | 4.5 | `स्त्रम्` |
|
| 528 |
+
| उपनायकत्वेन | **`उप-नायकत्वेन`** | 4.5 | `नायकत्वेन` |
|
| 529 |
+
| आक्षिपन्ति | **`आ-क्षिपन्ति`** | 4.5 | `क्षिपन्ति` |
|
| 530 |
+
| भक्तियोगेन | **`भक्तियोगे-न`** | 4.5 | `भक्तियोगे` |
|
| 531 |
+
| योगानन्देन | **`योगानन्दे-न`** | 4.5 | `योगानन्दे` |
|
| 532 |
+
| उपलभ्यमाने | **`उप-लभ्यमाने`** | 4.5 | `लभ्यमाने` |
|
| 533 |
+
| गुजरातराज्येण | **`गुजरातराज्ये-ण`** | 4.5 | `गुजरातराज्ये` |
|
| 534 |
+
| उत्तेजकानि | **`उ-त-्तेजकानि`** | 4.5 | `्तेजकानि` |
|
| 535 |
+
| अल्पतमाङ्कस्य | **`अ-ल-्पतमाङ्कस्य`** | 4.5 | `्पतमाङ्कस्य` |
|
| 536 |
+
| आरम्भकर्तृषु | **`आर-म-्भकर्तृषु`** | 4.5 | `्भकर्तृषु` |
|
| 537 |
+
| रक्तपित्ते | **`र-क-्तपित्ते`** | 4.5 | `्तपित्ते` |
|
| 538 |
+
| कार्यकरणेन | **`कार्यकरणे-न`** | 4.5 | `कार्यकरणे` |
|
| 539 |
+
|
| 540 |
+
### 6.6 Linguistic Interpretation
|
| 541 |
+
|
| 542 |
+
> **Automated Insight:**
|
| 543 |
+
The language Sanskrit shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
|
| 544 |
+
|
| 545 |
+
> **Note on Idiomaticity:** The high Idiomaticity Gap suggests a large number of frequent multi-word expressions or formulaic sequences that are statistically distinct from their component parts.
|
| 546 |
+
|
| 547 |
+
---
|
| 548 |
+
## 7. Summary & Recommendations
|
| 549 |
+
|
| 550 |
+

|
| 551 |
+
|
| 552 |
+
### Production Recommendations
|
| 553 |
+
|
| 554 |
+
| Component | Recommended | Rationale |
|
| 555 |
+
|-----------|-------------|-----------|
|
| 556 |
+
| Tokenizer | **64k BPE** | Best compression (4.44x) |
|
| 557 |
+
| N-gram | **2-gram** | Lowest perplexity (4,254) |
|
| 558 |
+
| Markov | **Context-4** | Highest predictability (99.0%) |
|
| 559 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 560 |
+
|
| 561 |
+
|
| 562 |
+
---
|
| 563 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 564 |
+
|
| 565 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 566 |
+
|
| 567 |
+
### Tokenizer Metrics
|
| 568 |
+
|
| 569 |
+
**Compression Ratio**
|
| 570 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 571 |
+
>
|
| 572 |
+
> *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.
|
| 573 |
+
>
|
| 574 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 575 |
+
|
| 576 |
+
**Average Token Length (Fertility)**
|
| 577 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 578 |
+
>
|
| 579 |
+
> *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.
|
| 580 |
+
>
|
| 581 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 582 |
+
|
| 583 |
+
**Unknown Token Rate (OOV Rate)**
|
| 584 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 585 |
+
>
|
| 586 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 587 |
+
>
|
| 588 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 589 |
+
|
| 590 |
+
### N-gram Model Metrics
|
| 591 |
+
|
| 592 |
+
**Perplexity**
|
| 593 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 594 |
+
>
|
| 595 |
+
> *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.
|
| 596 |
+
>
|
| 597 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 598 |
+
|
| 599 |
+
**Entropy**
|
| 600 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 601 |
+
>
|
| 602 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 603 |
+
>
|
| 604 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 605 |
+
|
| 606 |
+
**Coverage (Top-K)**
|
| 607 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 608 |
+
>
|
| 609 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 610 |
+
>
|
| 611 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 612 |
+
|
| 613 |
+
### Markov Chain Metrics
|
| 614 |
+
|
| 615 |
+
**Average Entropy**
|
| 616 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 617 |
+
>
|
| 618 |
+
> *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).
|
| 619 |
+
>
|
| 620 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 621 |
+
|
| 622 |
+
**Branching Factor**
|
| 623 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 624 |
+
>
|
| 625 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 626 |
+
>
|
| 627 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 628 |
+
|
| 629 |
+
**Predictability**
|
| 630 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 631 |
+
>
|
| 632 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 633 |
+
>
|
| 634 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 635 |
+
|
| 636 |
+
### Vocabulary & Zipf's Law Metrics
|
| 637 |
+
|
| 638 |
+
**Zipf's Coefficient**
|
| 639 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 640 |
+
>
|
| 641 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 642 |
+
>
|
| 643 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 644 |
+
|
| 645 |
+
**R² (Coefficient of Determination)**
|
| 646 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 647 |
+
>
|
| 648 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 649 |
+
>
|
| 650 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 651 |
+
|
| 652 |
+
**Vocabulary Coverage**
|
| 653 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 654 |
+
>
|
| 655 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 656 |
+
>
|
| 657 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 658 |
+
|
| 659 |
+
### Word Embedding Metrics
|
| 660 |
+
|
| 661 |
+
**Isotropy**
|
| 662 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 663 |
+
>
|
| 664 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 665 |
+
>
|
| 666 |
+
> *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.
|
| 667 |
+
|
| 668 |
+
**Average Norm**
|
| 669 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 670 |
+
>
|
| 671 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 672 |
+
>
|
| 673 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 674 |
+
|
| 675 |
+
**Cosine Similarity**
|
| 676 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 677 |
+
>
|
| 678 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 679 |
+
>
|
| 680 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 681 |
+
|
| 682 |
+
**t-SNE Visualization**
|
| 683 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 684 |
+
>
|
| 685 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 686 |
+
>
|
| 687 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 688 |
+
|
| 689 |
+
### General Interpretation Guidelines
|
| 690 |
+
|
| 691 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 692 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 693 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 694 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 695 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
### Visualizations Index
|
| 699 |
+
|
| 700 |
+
| Visualization | Description |
|
| 701 |
+
|---------------|-------------|
|
| 702 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 703 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 704 |
+
| Tokenizer OOV | Unknown token rates |
|
| 705 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 706 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 707 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 708 |
+
| N-gram Coverage | Top pattern coverage |
|
| 709 |
+
| N-gram Unique | Unique n-gram counts |
|
| 710 |
+
| Markov Entropy | Entropy by context size |
|
| 711 |
+
| Markov Branching | Branching factor by context |
|
| 712 |
+
| Markov Contexts | Unique context counts |
|
| 713 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 714 |
+
| Vocab Frequency | Word frequency distribution |
|
| 715 |
+
| Top 20 Words | Most frequent words |
|
| 716 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 717 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 718 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 719 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 720 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 721 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 722 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 723 |
+
| Position Encoding | Encoding method comparison |
|
| 724 |
+
| Model Sizes | Storage requirements |
|
| 725 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 726 |
+
|
| 727 |
+
---
|
| 728 |
+
## About This Project
|
| 729 |
+
|
| 730 |
+
### Data Source
|
| 731 |
+
|
| 732 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 733 |
+
|
| 734 |
+
### Project
|
| 735 |
+
|
| 736 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 737 |
+
|
| 738 |
+
### Maintainer
|
| 739 |
+
|
| 740 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 741 |
+
|
| 742 |
+
### Citation
|
| 743 |
+
|
| 744 |
+
If you use these models in your research, please cite:
|
| 745 |
+
|
| 746 |
+
```bibtex
|
| 747 |
+
@misc{wikilangs2025,
|
| 748 |
+
author = {Kamali, Omar},
|
| 749 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 750 |
+
year = {2025},
|
| 751 |
+
doi = {10.5281/zenodo.18073153},
|
| 752 |
+
publisher = {Zenodo},
|
| 753 |
+
url = {https://huggingface.co/wikilangs}
|
| 754 |
+
institution = {Omneity Labs}
|
| 755 |
+
}
|
| 756 |
+
```
|
| 757 |
+
|
| 758 |
+
### License
|
| 759 |
+
|
| 760 |
+
MIT License - Free for academic and commercial use.
|
| 761 |
+
|
| 762 |
+
### Links
|
| 763 |
+
|
| 764 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 765 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 766 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 767 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 768 |
+
- 🤝 Sponsor: [Featherless AI](https://featherless.ai)
|
| 769 |
+
---
|
| 770 |
+
*Generated by Wikilangs Models Pipeline*
|
| 771 |
+
|
| 772 |
+
*Report Date: 2026-01-10 19:34:50*
|
models/embeddings/aligned/sa_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6990f526497e70bb2767e015fedad3c709c6f56a610789385ef14500adfc4c1
|
| 3 |
+
size 1083818749
|
models/embeddings/aligned/sa_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 128, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/sa_128d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c2a0593345c15d232b0ad20067f304d22c9f7a82eb8184433bad5fb811fb45c
|
| 3 |
+
size 65664
|
models/embeddings/aligned/sa_128d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3313,
|
| 7 |
+
"vocab_size": 56564
|
| 8 |
+
}
|
models/embeddings/aligned/sa_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd58887b3eee56eecf4e195732e206499fe04ec1e977da85232280c0720e5a38
|
| 3 |
+
size 272377597
|
models/embeddings/aligned/sa_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 32, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/sa_32d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07d1cdb71f1f3107b78f0f22ac1afd6c276a2344a0f1ddf291b7be73511e168f
|
| 3 |
+
size 4224
|
models/embeddings/aligned/sa_32d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3313,
|
| 7 |
+
"vocab_size": 56564
|
| 8 |
+
}
|
models/embeddings/aligned/sa_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef066799a905adf9e6c45287615f410d5069b14fc779caa06f401a03fef75e8e
|
| 3 |
+
size 542857981
|
models/embeddings/aligned/sa_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 64, "max_seq_len": 512, "is_aligned": true}
|
models/embeddings/aligned/sa_64d.projection.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2d1b7391110d18eb8f2a42d116cbf35a36f7390831e4f24e2b122c3f144b36b
|
| 3 |
+
size 16512
|
models/embeddings/aligned/sa_64d_metadata.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "aligned",
|
| 5 |
+
"hub_language": "en",
|
| 6 |
+
"seed_vocab_size": 3313,
|
| 7 |
+
"vocab_size": 56564
|
| 8 |
+
}
|
models/embeddings/monolingual/sa_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6990f526497e70bb2767e015fedad3c709c6f56a610789385ef14500adfc4c1
|
| 3 |
+
size 1083818749
|
models/embeddings/monolingual/sa_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/sa_128d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 128,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 56564
|
| 16 |
+
}
|
models/embeddings/monolingual/sa_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd58887b3eee56eecf4e195732e206499fe04ec1e977da85232280c0720e5a38
|
| 3 |
+
size 272377597
|
models/embeddings/monolingual/sa_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/sa_32d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 32,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 56564
|
| 16 |
+
}
|
models/embeddings/monolingual/sa_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef066799a905adf9e6c45287615f410d5069b14fc779caa06f401a03fef75e8e
|
| 3 |
+
size 542857981
|
models/embeddings/monolingual/sa_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "sa", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/sa_64d_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"algorithm": "skipgram",
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5,
|
| 11 |
+
"encoding_method": "rope",
|
| 12 |
+
"dim": 64,
|
| 13 |
+
"threads": 5
|
| 14 |
+
},
|
| 15 |
+
"vocab_size": 56564
|
| 16 |
+
}
|
models/subword_markov/sa_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73487898c5284a171fd142778464b64498162a8a67cc7284595587eca51655b9
|
| 3 |
+
size 1498898
|
models/subword_markov/sa_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_contexts": 17979,
|
| 6 |
+
"total_transitions": 16300522
|
| 7 |
+
}
|
models/subword_markov/sa_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cac7b393c13b9d5b104d3036fa29dca77e4c71a701c5bf582eb47338e8b2b90b
|
| 3 |
+
size 9330076
|
models/subword_markov/sa_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_contexts": 250225,
|
| 6 |
+
"total_transitions": 16288038
|
| 7 |
+
}
|
models/subword_markov/sa_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c39477e63c4a46abde3ff6c46805c6da288b5970f5c3a21d201f7a9bd13f0fc9
|
| 3 |
+
size 32437454
|
models/subword_markov/sa_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_contexts": 1217332,
|
| 6 |
+
"total_transitions": 16275554
|
| 7 |
+
}
|
models/subword_markov/sa_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7f0bfdd93071ba5b2bc27bc0454e5b2a4dc877c61f41d7294f1a3d995f3af8b
|
| 3 |
+
size 76570830
|
models/subword_markov/sa_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_contexts": 3333052,
|
| 6 |
+
"total_transitions": 16263070
|
| 7 |
+
}
|
models/subword_ngram/sa_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40e91fe01422407982917ff51b44d79f64b59f23583fb5ce6745e0f05f7ad081
|
| 3 |
+
size 1160265
|
models/subword_ngram/sa_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_ngrams": 77760,
|
| 6 |
+
"total_ngrams": 16300522
|
| 7 |
+
}
|
models/subword_ngram/sa_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e08a671af71000566276421b503874f49a7a335f711140feff1b16826217db9f
|
| 3 |
+
size 6116353
|
models/subword_ngram/sa_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_ngrams": 386589,
|
| 6 |
+
"total_ngrams": 16288038
|
| 7 |
+
}
|
models/subword_ngram/sa_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e09c33c05d5232a6ffa6e9b7b6c8c80e170b4df0cb4f77db2edd8d89a1295f6
|
| 3 |
+
size 20466920
|
models/subword_ngram/sa_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_ngrams": 1206214,
|
| 6 |
+
"total_ngrams": 16275554
|
| 7 |
+
}
|
models/subword_ngram/sa_5gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea4fe669388a9f59c32d7c020313804f28dd9657a849a9134cbe27a4f5fc204a
|
| 3 |
+
size 28808983
|
models/subword_ngram/sa_5gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 5,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "sa",
|
| 5 |
+
"unique_ngrams": 1600156,
|
| 6 |
+
"total_ngrams": 16263070
|
| 7 |
+
}
|
models/tokenizer/sa_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:992779cd3180125ad84dfc304b4481284a8dc5a14f09408a7e14990c3852df96
|
| 3 |
+
size 632416
|
models/tokenizer/sa_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/sa_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2467bce41029d9dc6dae03fcf31190f1de6884af5390323a27d8b80b8742da29
|
| 3 |
+
size 1084486
|
models/tokenizer/sa_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/sa_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9e377607919d87bde365a97e00ca078ebbd9fb032902a8fc628ab0ed3c4efb9
|
| 3 |
+
size 2076267
|
models/tokenizer/sa_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/sa_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bae522004e6670e937732d430292ab890ea6ffbc8f66c1eaa45799bcced9865a
|
| 3 |
+
size 428782
|
models/tokenizer/sa_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/sa_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74ca89505e852e81ae279b2313e91ae23f5f4538a84b3ad0c882e75e35975cbd
|
| 3 |
+
size 3673911
|
models/vocabulary/sa_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "sa",
|
| 3 |
+
"vocabulary_size": 183249,
|
| 4 |
+
"variant": "full",
|
| 5 |
+
"statistics": {
|
| 6 |
+
"type_token_ratio": 0.20155106989666224,
|
| 7 |
+
"coverage": {
|
| 8 |
+
"top_100": 0.21128355172276417,
|
| 9 |
+
"top_1000": 0.39510250544854064,
|
| 10 |
+
"top_5000": 0.5400094440342147,
|
| 11 |
+
"top_10000": 0.6036720554486488
|
| 12 |
+
},
|
| 13 |
+
"hapax_count": 469378,
|
| 14 |
+
"hapax_ratio": 0.719213271899569,
|
| 15 |
+
"total_documents": 12484
|
| 16 |
+
}
|
| 17 |
+
}
|
models/word_markov/sa_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90aefcf6006894e9d51106affc2fd30507ad8546a938bb09e35fc448b2be6a7c
|
| 3 |
+
size 43553335
|