rki / README.md
omarkamali's picture
Upload all models and assets for rki (latest)
885bb97 verified
---
language: rki
language_name: Rakhine
language_family: tibetoburman_burmese
tags:
- wikilangs
- nlp
- tokenizer
- embeddings
- n-gram
- markov
- wikipedia
- feature-extraction
- sentence-similarity
- tokenization
- n-grams
- markov-chain
- text-mining
- fasttext
- babelvec
- vocabulous
- vocabulary
- monolingual
- family-tibetoburman_burmese
license: mit
library_name: wikilangs
pipeline_tag: text-generation
datasets:
- omarkamali/wikipedia-monthly
dataset_info:
name: wikipedia-monthly
description: Monthly snapshots of Wikipedia articles across 300+ languages
metrics:
- name: best_compression_ratio
type: compression
value: 4.868
- name: best_isotropy
type: isotropy
value: 0.8300
- name: vocabulary_size
type: vocab
value: 0
generated: 2026-01-10
---
# Rakhine - Wikilangs Models
## Comprehensive Research Report & Full Ablation Study
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Rakhine** Wikipedia data.
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
## ๐Ÿ“‹ Repository Contents
### Models & Assets
- Tokenizers (8k, 16k, 32k, 64k)
- N-gram models (2, 3, 4, 5-gram)
- Markov chains (context of 1, 2, 3, 4 and 5)
- Subword N-gram and Markov chains
- Embeddings in various sizes and dimensions (aligned and unaligned)
- Language Vocabulary
- Language Statistics
![Performance Dashboard](visualizations/performance_dashboard.png)
### Analysis and Evaluation
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
- [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
- [4. Vocabulary Analysis](#4-vocabulary-analysis)
- [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
- [6. Morphological Analysis (Experimental)](#6--morphological-analysis-experimental)
- [7. Summary & Recommendations](#7-summary--recommendations)
- [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
- [Visualizations Index](#visualizations-index)
---
## 1. Tokenizer Evaluation
![Tokenizer Compression](visualizations/tokenizer_compression.png)
![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
![Tokenizer OOV](visualizations/tokenizer_oov.png)
![Total Tokens](visualizations/tokenizer_total_tokens.png)
### Results
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|------------|-------------|---------------|----------|--------------|
| **8k** | 3.940x | 3.94 | 0.1358% | 871,776 |
| **16k** | 4.360x | 4.36 | 0.1503% | 787,889 |
| **32k** | 4.558x | 4.56 | 0.1571% | 753,628 |
| **64k** | 4.868x ๐Ÿ† | 4.87 | 0.1678% | 705,565 |
### Tokenization Examples
Below are sample sentences tokenized with each vocabulary size:
**Sample 1:** `แ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ (แ€กแ€„แ€บแ€นแ€‚แ€œแ€ญแ€•แ€บ: milk tea) แ€›แ€ฑ แ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บแ€”แ€”แ€ทแ€บ แ€”แ€ฝแ€ฌแ€ธแ€”แ€ญแ€ฏแ€ทแ€”แ€”แ€ทแ€บ แ€•แ€ผแ€ฏแ€œแ€ฏแ€•แ€บแ€‘แ€ฌแ€ธแ€›แ€ฑ แ€–...`
| Vocab | Tokens | Count |
|-------|--------|-------|
| 8k | `โ–แ€”แ€ญแ€ฏแ€ท แ€œแ€€แ€บ แ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€กแ€„แ€บแ€นแ€‚แ€œแ€ญแ€•แ€บ : โ–m il k โ–t ... (+16 more)` | 26 |
| 16k | `โ–แ€”แ€ญแ€ฏแ€ท แ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€กแ€„แ€บแ€นแ€‚แ€œแ€ญแ€•แ€บ : โ–m il k โ–t e ... (+12 more)` | 22 |
| 32k | `โ–แ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€กแ€„แ€บแ€นแ€‚แ€œแ€ญแ€•แ€บ : โ–m il k โ–t e a ... (+10 more)` | 20 |
| 64k | `โ–แ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€กแ€„แ€บแ€นแ€‚แ€œแ€ญแ€•แ€บ : โ–milk โ–tea ) โ–แ€›แ€ฑ โ–แ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บแ€”แ€”แ€ทแ€บ โ–แ€”แ€ฝแ€ฌแ€ธแ€”แ€ญแ€ฏแ€ทแ€”แ€”แ€ทแ€บ ... (+3 more)` | 13 |
**Sample 2:** `แ€•แ€ฏแ€œแ€ฒแ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ (แ€แ€›แ€ฏแ€แ€บ: ็็ ๅฅถ่Œถ) แ€†แ€ญแ€ฏแ€›แ€ฑแ€™แ€พแ€ฌ แ€‘แ€ญแ€ฏแ€„แ€บแ€แ€™แ€บแ€แ€ฝแ€„แ€บ แ€œแ€ฐแ€€แ€ผแ€ญแ€ฏแ€€แ€บแ€™แ€ปแ€ฌแ€ธแ€›แ€ฑ แ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บแ€กแ€ก...`
| Vocab | Tokens | Count |
|-------|--------|-------|
| 8k | `โ–แ€•แ€ฏแ€œแ€ฒ แ€”แ€ญแ€ฏแ€ท แ€œแ€€แ€บ แ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€แ€›แ€ฏแ€แ€บ : โ– ็็ ๅฅถ่Œถ ) ... (+20 more)` | 30 |
| 16k | `โ–แ€•แ€ฏแ€œแ€ฒ แ€”แ€ญแ€ฏแ€ท แ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€แ€›แ€ฏแ€แ€บ : โ– ็็ ๅฅถ่Œถ ) โ–แ€†แ€ญแ€ฏแ€›แ€ฑแ€™แ€พแ€ฌ ... (+14 more)` | 24 |
| 32k | `โ–แ€•แ€ฏแ€œแ€ฒ แ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€แ€›แ€ฏแ€แ€บ : โ– ็็ ๅฅถ่Œถ ) โ–แ€†แ€ญแ€ฏแ€›แ€ฑแ€™แ€พแ€ฌ โ–แ€‘แ€ญแ€ฏแ€„แ€บแ€ ... (+11 more)` | 21 |
| 64k | `โ–แ€•แ€ฏแ€œแ€ฒ แ€”แ€ญแ€ฏแ€ทแ€œแ€€แ€บแ€–แ€€แ€บแ€›แ€Šแ€บ โ–( แ€แ€›แ€ฏแ€แ€บ : โ– ็็ ๅฅถ่Œถ ) โ–แ€†แ€ญแ€ฏแ€›แ€ฑแ€™แ€พแ€ฌ โ–แ€‘แ€ญแ€ฏแ€„แ€บแ€แ€™แ€บแ€แ€ฝแ€„แ€บ ... (+7 more)` | 17 |
**Sample 3:** `แ€€แ€ญแ€ฏแ€šแ€บแ€›แ€ฑแ€ธแ€กแ€€แ€ปแ€‰แ€บแ€ธ แ€กแ€œแ€ฏแ€•แ€บแ€กแ€€แ€ญแ€ฏแ€„แ€บ แ€‚แ€ฎแ€แ€œแ€™แ€บแ€ธแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ แ€กแ€šแ€บแ€œแ€บแ€˜แ€™แ€บแ€แ€ญ Single แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ แ€•แ€ซแ€แ€„แ€บแ€žแ€ฎแ€†แ€ญแ€ฏ...`
| Vocab | Tokens | Count |
|-------|--------|-------|
| 8k | `โ–แ€€แ€ญแ€ฏแ€šแ€บแ€›แ€ฑแ€ธแ€กแ€€แ€ปแ€‰แ€บแ€ธ โ–แ€กแ€œแ€ฏแ€•แ€บแ€กแ€€แ€ญแ€ฏแ€„แ€บ โ–แ€‚แ€ฎแ€ แ€œแ€™แ€บแ€ธแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ โ–แ€กแ€šแ€บแ€œแ€บ แ€˜แ€™แ€บแ€แ€ญ โ–s ing le โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ ... (+9 more)` | 19 |
| 16k | `โ–แ€€แ€ญแ€ฏแ€šแ€บแ€›แ€ฑแ€ธแ€กแ€€แ€ปแ€‰แ€บแ€ธ โ–แ€กแ€œแ€ฏแ€•แ€บแ€กแ€€แ€ญแ€ฏแ€„แ€บ โ–แ€‚แ€ฎแ€แ€œแ€™แ€บแ€ธแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ โ–แ€กแ€šแ€บแ€œแ€บแ€˜แ€™แ€บแ€แ€ญ โ–single โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€•แ€ซแ€แ€„แ€บแ€žแ€ฎแ€†แ€ญแ€ฏแ€–แ€ฐแ€ธแ€›แ€ฑ โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ โ–แ€•แ€ผแ€„แ€บแ€•แ€œแ€„แ€ทแ€บ ... (+2 more)` | 12 |
| 32k | `โ–แ€€แ€ญแ€ฏแ€šแ€บแ€›แ€ฑแ€ธแ€กแ€€แ€ปแ€‰แ€บแ€ธ โ–แ€กแ€œแ€ฏแ€•แ€บแ€กแ€€แ€ญแ€ฏแ€„แ€บ โ–แ€‚แ€ฎแ€แ€œแ€™แ€บแ€ธแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ โ–แ€กแ€šแ€บแ€œแ€บแ€˜แ€™แ€บแ€แ€ญ โ–single โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€•แ€ซแ€แ€„แ€บแ€žแ€ฎแ€†แ€ญแ€ฏแ€–แ€ฐแ€ธแ€›แ€ฑ โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ โ–แ€•แ€ผแ€„แ€บแ€•แ€œแ€„แ€ทแ€บ ... (+1 more)` | 11 |
| 64k | `โ–แ€€แ€ญแ€ฏแ€šแ€บแ€›แ€ฑแ€ธแ€กแ€€แ€ปแ€‰แ€บแ€ธ โ–แ€กแ€œแ€ฏแ€•แ€บแ€กแ€€แ€ญแ€ฏแ€„แ€บ โ–แ€‚แ€ฎแ€แ€œแ€™แ€บแ€ธแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ โ–แ€กแ€šแ€บแ€œแ€บแ€˜แ€™แ€บแ€แ€ญ โ–single โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€•แ€ซแ€แ€„แ€บแ€žแ€ฎแ€†แ€ญแ€ฏแ€–แ€ฐแ€ธแ€›แ€ฑ โ–แ€žแ€ฎแ€แ€ปแ€„แ€บแ€ธแ€แ€ญ โ–แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ โ–แ€•แ€ผแ€„แ€บแ€•แ€œแ€„แ€ทแ€บ ... (+1 more)` | 11 |
### Key Findings
- **Best Compression:** 64k achieves 4.868x compression
- **Lowest UNK Rate:** 8k with 0.1358% unknown tokens
- **Trade-off:** Larger vocabularies improve compression but increase model size
- **Recommendation:** 32k vocabulary provides optimal balance for production use
---
## 2. N-gram Model Evaluation
![N-gram Perplexity](visualizations/ngram_perplexity.png)
![N-gram Unique](visualizations/ngram_unique.png)
![N-gram Coverage](visualizations/ngram_coverage.png)
### Results
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|--------|---------|------------|---------|----------------|------------------|-------------------|
| **2-gram** | Word | 2,475 | 11.27 | 3,711 | 18.7% | 59.1% |
| **2-gram** | Subword | 1,997 ๐Ÿ† | 10.96 | 21,097 | 35.0% | 70.8% |
| **3-gram** | Word | 3,510 | 11.78 | 5,274 | 15.1% | 51.1% |
| **3-gram** | Subword | 16,910 | 14.05 | 105,452 | 13.3% | 36.3% |
| **4-gram** | Word | 13,278 | 13.70 | 18,246 | 8.0% | 25.9% |
| **4-gram** | Subword | 74,444 | 16.18 | 313,099 | 6.3% | 19.3% |
| **5-gram** | Word | 12,446 | 13.60 | 16,164 | 7.7% | 25.0% |
| **5-gram** | Subword | 151,855 | 17.21 | 428,759 | 3.6% | 12.6% |
### Top 5 N-grams by Size
**2-grams (Word):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€…` | 226 |
| 2 | `แ€’แ€ฏแ€€แ€นแ€€แ€‹แ€บแ€กแ€ฌแ€•แ€แ€บ แ€žแ€„แ€ทแ€บ` | 225 |
| 3 | `แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€แ€กแ€ฌแ€•แ€แ€บ แ€žแ€„แ€ทแ€บแ€งแ€ท` | 217 |
| 4 | `แ€• แ€›แ€Ÿแ€”แ€บแ€ธ` | 216 |
| 5 | `แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ แ€›แ€Ÿแ€”แ€บแ€ธแ€แ€…แ€บแ€•แ€ซแ€ธแ€…แ€ฝแ€ฌ` | 203 |
**3-grams (Word):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€‘แ€ญแ€ฏแ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€…` | 178 |
| 2 | `แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€•` | 172 |
| 3 | `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท` | 144 |
| 4 | `แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ` | 142 |
| 5 | `แ€™แ€Ÿแ€ฏแ€แ€บแ€™แ€™แ€พแ€”แ€บ แ€•แ€ผแ€ฑแ€ฌแ€†แ€ญแ€ฏแ€›แ€ฑ แ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ` | 80 |
**4-grams (Word):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€•` | 135 |
| 2 | `แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ` | 128 |
| 3 | `แ€‘แ€ญแ€ฏแ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท` | 113 |
| 4 | `แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€ญแ€ฏแ€€แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ` | 67 |
| 5 | `แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€กแ€†แ€ฑแ€ฌแ€€แ€บแ€กแ€ฆแ€ธแ€™แ€ปแ€ฌแ€ธ แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€žแ€ฏแ€แ€ฑแ€žแ€”แ€”แ€พแ€„แ€ทแ€บ แ€กแ€™แ€ปแ€ญแ€ฏแ€ธแ€žแ€ฌแ€ธแ€•แ€ผแ€แ€ญแ€ฏแ€€แ€บแ€ฆแ€ธแ€…แ€ฎแ€ธแ€Œแ€ฌแ€” แ€šแ€‰แ€บแ€€แ€ปแ€ฑแ€ธแ€™แ€ฐแ€แ€”แ€บแ€€แ€ผแ€ฎแ€ธแ€Œแ€ฌแ€”` | 66 |
**5-grams (Word):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€‘แ€ญแ€ฏแ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€•` | 110 |
| 2 | `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ` | 93 |
| 3 | `แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ แ€™แ€ผแ€ฑแ€ฌแ€€แ€บแ€ฆแ€ธแ€’แ€ฑแ€ž แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€กแ€†แ€ฑแ€ฌแ€€แ€บแ€กแ€ฆแ€ธแ€™แ€ปแ€ฌแ€ธ แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€žแ€ฏแ€แ€ฑแ€žแ€”แ€”แ€พแ€„แ€ทแ€บ แ€กแ€™แ€ปแ€ญแ€ฏแ€ธแ€žแ€ฌแ€ธแ€•แ€ผแ€แ€ญแ€ฏแ€€แ€บแ€ฆแ€ธแ€…แ€ฎแ€ธแ€Œแ€ฌแ€”` | 66 |
| 4 | `แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€กแ€†แ€ฑแ€ฌแ€€แ€บแ€กแ€ฆแ€ธแ€™แ€ปแ€ฌแ€ธ แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€žแ€ฏแ€แ€ฑแ€žแ€”แ€”แ€พแ€„แ€ทแ€บ แ€กแ€™แ€ปแ€ญแ€ฏแ€ธแ€žแ€ฌแ€ธแ€•แ€ผแ€แ€ญแ€ฏแ€€แ€บแ€ฆแ€ธแ€…แ€ฎแ€ธแ€Œแ€ฌแ€” แ€šแ€‰แ€บแ€€แ€ปแ€ฑแ€ธแ€™แ€ฐแ€แ€”แ€บแ€€แ€ผแ€ฎแ€ธแ€Œแ€ฌแ€” แ€•แ€ฏแ€‘แ€ญแ€ฏแ€ธแ€แ€ฑแ€ฌแ€บแ€แ€ญ` | 66 |
| 5 | `แ€™แ€ผแ€ฑแ€ฌแ€€แ€บแ€ฆแ€ธแ€’แ€ฑแ€ž แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€กแ€†แ€ฑแ€ฌแ€€แ€บแ€กแ€ฆแ€ธแ€™แ€ปแ€ฌแ€ธ แ€›แ€พแ€ฑแ€ธแ€Ÿแ€ฑแ€ฌแ€„แ€บแ€ธแ€žแ€ฏแ€แ€ฑแ€žแ€”แ€”แ€พแ€„แ€ทแ€บ แ€กแ€™แ€ปแ€ญแ€ฏแ€ธแ€žแ€ฌแ€ธแ€•แ€ผแ€แ€ญแ€ฏแ€€แ€บแ€ฆแ€ธแ€…แ€ฎแ€ธแ€Œแ€ฌแ€” แ€šแ€‰แ€บแ€€แ€ปแ€ฑแ€ธแ€™แ€ฐแ€แ€”แ€บแ€€แ€ผแ€ฎแ€ธแ€Œแ€ฌแ€”` | 66 |
**2-grams (Subword):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€„แ€บ แ€ธ` | 70,638 |
| 2 | `แ€ฌ แ€ธ` | 65,449 |
| 3 | `_ แ€ก` | 56,551 |
| 4 | `แ‹ _` | 52,197 |
| 5 | `แ€ธ _` | 50,866 |
**3-grams (Subword):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€›แ€ฑ แ‹ _` | 31,071 |
| 2 | `แ€ฌ แ€„แ€บ แ€ธ` | 18,078 |
| 3 | `แ€แ€ฝ แ€„แ€บ _` | 14,734 |
| 4 | `แ€” แ€”แ€ทแ€บ _` | 14,037 |
| 5 | `แ€ฌ แ€ธ _` | 12,271 |
**4-grams (Subword):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€œ แ€Šแ€บ แ€ธ _` | 6,741 |
| 2 | `แ€› แ€Ÿ แ€”แ€บ แ€ธ` | 5,765 |
| 3 | `แ€€แ€ฑ แ€ฌ แ€„แ€บ แ€ธ` | 5,150 |
| 4 | `แ€–แ€ผ แ€…แ€บ แ€›แ€ฑ แ‹` | 4,615 |
| 5 | `แ€…แ€บ แ€›แ€ฑ แ‹ _` | 4,465 |
**5-grams (Subword):**
| Rank | N-gram | Count |
|------|--------|-------|
| 1 | `แ€–แ€ผ แ€…แ€บ แ€›แ€ฑ แ‹ _` | 4,438 |
| 2 | `_ แ€› แ€Ÿ แ€”แ€บ แ€ธ` | 3,712 |
| 3 | `แ€• แ€ซ แ€›แ€ฑ แ‹ _` | 3,105 |
| 4 | `แ€€ แ€แ€บ แ€›แ€ฑ แ‹ _` | 2,654 |
| 5 | `_ แ€–แ€ผ แ€…แ€บ แ€›แ€ฑ แ‹` | 2,073 |
### Key Findings
- **Best Perplexity:** 2-gram (subword) with 1,997
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
- **Coverage:** Top-1000 patterns cover ~13% of corpus
- **Recommendation:** 4-gram or 5-gram for best predictive performance
---
## 3. Markov Chain Evaluation
![Markov Entropy](visualizations/markov_entropy.png)
![Markov Contexts](visualizations/markov_contexts.png)
![Markov Branching](visualizations/markov_branching.png)
### Results
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|---------|---------|-------------|------------|------------------|-----------------|----------------|
| **1** | Word | 0.2818 | 1.216 | 1.76 | 243,192 | 71.8% |
| **1** | Subword | 1.4978 | 2.824 | 24.80 | 2,290 | 0.0% |
| **2** | Word | 0.0459 | 1.032 | 1.07 | 427,212 | 95.4% |
| **2** | Subword | 0.7632 | 1.697 | 5.15 | 56,790 | 23.7% |
| **3** | Word | 0.0165 | 1.012 | 1.02 | 454,829 | 98.3% |
| **3** | Subword | 0.4942 | 1.409 | 2.68 | 292,573 | 50.6% |
| **4** | Word | 0.0100 ๐Ÿ† | 1.007 | 1.01 | 463,846 | 99.0% |
| **4** | Subword | 0.3219 | 1.250 | 1.80 | 783,810 | 67.8% |
### Generated Text Samples (Word-based)
Below are text samples generated from each word-based Markov chain model:
**Context Size 1:**
1. `แ€”แ€”แ€ทแ€บ แ€แ€‡แ€ฎแ€›แ€ฌแ€€แ€ญแ€œแ€ฌแ€š vajrakilaya แ€›แ€ญแ€ฏแ€ทแ€•แ€ซแ€แ€„แ€บแ€œแ€ฎแ€›แ€ฑ แ€’แ€ซแ€€แ€ฎแ€”แ€ฎแ€แ€ญ dakini แ€€แ€ฑแ€ฌแ€„แ€บแ€ธแ€€แ€„แ€บแ€žแ€ญแ€ฏแ€ทแ€€แ€ผแ€ฝแ€œแ€พแ€™แ€บแ€ธแ€žแ€ฐ แ€›แ€ฑ แ€’แ€ฑแ€แ€ญแ€‰แ€ฌแ€‰แ€บแ€žแ€˜แ€ฌแ€แ€€แ€”แ€ฑ...`
2. `แ€–แ€ผแ€…แ€บแ€›แ€ฑ แ€กแ€ฌแ€›แ€ฏแ€ถแ€แ€ถแ€€แ€ญแ€›แ€ญแ€šแ€ฌแ€แ€ญแ€€แ€ญแ€ฏ แ€”แ€ฑแ€ทแ€…แ€‰แ€บแ€žแ€ฏแ€ถแ€ธ แ€กแ€›แ€ฌแ€แ€แ€นแ€‘แ€ฏแ€แ€ญแ€แ€ฝแ€„แ€บ แ€กแ€€แ€”แ€ทแ€บแ€กแ€žแ€แ€บแ€–แ€ผแ€„แ€ทแ€บแ€žแ€ฌ แ€กแ€žแ€ฏแ€ถแ€ธแ€แ€ปแ€”แ€ญแ€ฏแ€„แ€บแ€›แ€ฑ แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ แ€”แ€ญแ€ฏแ€„แ€บแ€„แ€ถแ€...`
3. `แ€›แ€ฑ แ€–แ€ญแ€ฏแ€„แ€บแ€แ€ญแ€€แ€ญแ€ฏ แ€–แ€œแ€พแ€šแ€บแ€”แ€ญแ€ฏแ€„แ€บแ€•แ€ผแ€ฎแ€ธแ€€แ€ฑ แ€แ€ฎแ€™แ€ปแ€พแ€›แ€”แ€บ แ€แ€พแ€ญแ€ฏแ€€แ€บแ€˜แ€ฏแ€แ€บ แ€•แ€ฑแ€ซแ€บแ€แ€ฝแ€„แ€บแ€›แ€ฎแ€ธแ€†แ€ฝแ€ฒแ€แ€ผแ€„แ€บแ€ธ แ€šแ€•แ€ญแ€ฏแ€„แ€บแ€™แ€Ÿแ€ฏแ€แ€บแ€€แ€ฑ แ€˜แ€ฑแ€ฌแ€„แ€บแ€”แ€ฎแ€›แ€ฌแ€กแ€€แ€ปแ€šแ€บแ€ก...`
**Context Size 2:**
1. `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€žแ€„แ€บแ€…แ€ฝแ€ฌ แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€ แ€€แ€ปแ€šแ€ฌแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€พแ€ฏแ€งแ€ท แแแ† แแ…แ† แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ ...`
2. `แ€’แ€ฏแ€€แ€นแ€€แ€‹แ€บแ€กแ€ฌแ€•แ€แ€บ แ€žแ€„แ€ทแ€บ แ€• แ€กแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธแ€žแ€ฏแ€ถแ€ธแ€™แ€ปแ€ญแ€ฏแ€ธแ€›แ€ญแ€ฏแ€ทแ€”แ€”แ€ทแ€บ แ€™แ€žแ€ญแ€…แ€ฝแ€ฌแ€€แ€ญแ€ฏ แ€„แ€ซแ€…แ€ฝแ€ฌ แ€žแ€ญแ€œแ€Šแ€บแ€ธ แ€žแ€ญ แ€™แ€ผแ€„แ€บแ€œแ€Šแ€บแ€ธ แ€™แ€ผแ€„แ€บแ€›แ€ฑแ€Ÿแ€ฏ แ€• แ€กแ€€แ€ผแ€ฑแ€ฌแ€„แ€บแ€ธ...`
3. `แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€แ€กแ€ฌแ€•แ€แ€บ แ€žแ€„แ€ทแ€บแ€งแ€ท แ€กแ€แ€ปแ€ญแ€”แ€บแ€ธแ€กแ€แ€ปแ€€แ€บแ€œแ€ฏแ€•แ€บแ€แ€ผแ€„แ€บแ€ธ แ€†แ€ญแ€ฏแ€…แ€ฑแ€ฌแ€บ แ€…แ€…แ€ฑแ€ฌแ€•แ€„แ€บแ€–แ€ผแ€…แ€บแ€…แ€ฎ แ€Šแ€”แ€ญแ€”แ€บแ€แ€ปแ€™แ€บแ€ธแ€•แ€„แ€บแ€–แ€ผแ€…แ€บแ€…แ€ฎ แ€Šแ€‰แ€ทแ€บแ€•แ€„แ€บแ€–แ€ผแ€…แ€บแ€…แ€ฎ แ€”แ€ญ...`
**Context Size 3:**
1. `แ€‘แ€ญแ€ฏแ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€แ€กแ€ฌแ€•แ€แ€บ แ€™แ€žแ€„แ€ทแ€บ แ€’แ€ฏแ€€แ€นแ€€แ€‹แ€บแ€กแ€ฌแ€•แ€แ€บ แ€žแ€„แ€ทแ€บแ€งแ€ทแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บ...`
2. `แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธแ€›แ€ญแ€ฏแ€ท แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€แ€กแ€ฌแ€•แ€แ€บ แ€™แ€žแ€„แ€ทแ€บแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€ฐแ€งแ€ท แ†แ‰ แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ แ€žแ€แ€นแ€แ€›แ€žแ€แ€‚แ€นแ€‚แ€ฎแ€›แ€Ÿแ€”...`
3. `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€žแ€„แ€บแ€…แ€ฝแ€ฌ แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€ แ€€แ€ปแ€šแ€ฌแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€ฐแ€งแ€ท แ†แ… แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ แ€แ€™แ€บแ€ธแ€€แ€ผ...`
**Context Size 4:**
1. `แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€žแ€„แ€บแ€…แ€ฝแ€ฌ แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€ แ€€แ€ปแ€šแ€ฌแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€ฐแ€งแ€ท แ„แ† แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ แ€›แ€Ÿแ€”แ€บแ€ธแ€...`
2. `แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€žแ€„แ€บแ€…แ€ฝแ€ฌแ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€ แ€€แ€ปแ€šแ€ฌแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€ฐแ€งแ€ท แแแ… แ€กแ€šแ€„แ€บแ€แ€ฑแ€ซแ€€แ€บแ€€แ€แ€ซ แ€›แ€Ÿแ€”แ€บแ€ธแ€แ€…แ€บแ€•แ€ซแ€ธแ€…แ€ฝแ€ฌ แ€™แ€ผ...`
3. `แ€‘แ€ญแ€ฏแ€›แ€Ÿแ€”แ€บแ€ธแ€กแ€ฌแ€ธ แ€แ€ฝแ€ฎแ€ธแ€แ€ฑแ€ฌแ€™แ€พแ€ฏ แ€žแ€ถแ€žแ€šแ€€แ€ฏแ€€แ€นแ€€แ€ฏแ€…แ€นแ€… แ€–แ€ผแ€…แ€บแ€งแ€ท แ€• แ€›แ€Ÿแ€”แ€บแ€ธ แ€žแ€„แ€บแ€…แ€ฝแ€ฌ แ€•แ€ซแ€›แ€ฌแ€‡แ€ญแ€€ แ€€แ€ปแ€›แ€ฌแ€œแ€ญแ€ฏแ€ท แ€™แ€ญแ€”แ€ทแ€บแ€แ€ฑแ€ฌแ€บแ€™แ€ฐแ€งแ€ท แˆแ† แ€แ€ญแ€”แ€ฎแ€แ€แ€‘...`
### Generated Text Samples (Subword-based)
Below are text samples generated from each subword-based Markov chain model:
**Context Size 1:**
1. `_แ€†แ€Šแ€บแ€ธแ€กแ€แ€ฝแ€„แ€บแ€‘แ€€แ€บแ€”แ€”แ€ทแ€บ_แ€กแ€žแ€ปแ€พแ€„แ€บแ€’แ€ญแ€ฏ`
2. `แ€ธแ€œแ€ปแ€พแ€•แ€บแ€›แ€ญแ€ฏแ€ทแ€–แ€ผแ€…แ€บแ€แ€ฑแ€ซแ€บแ€›แ€ฌแ€„แ€บแ€ธแ€€แ€ญแ€ฏแ€กแ€แ€ฝแ€ฒแ€•`
3. `แ€ฌแ€ธแ€›แ€ฑแ‹_แ€‡แ€ฌ_แ€žแ€„แ€ทแ€บแ€›แ€”แ€บแ€€แ€ผแ€ฎแ€ธแ€แ€ญแ€”`
**Context Size 2:**
1. `แ€„แ€บแ€ธแ€†แ€ฑแ€ฌแ€„แ€บแ€ธแŒ_แ€žแ€ฐแ€†แ€„แ€บแ€ธ_แ€–แ€ผแ€…แ€บแ€•แ€ผแ€ฑแ€ฌ`
2. `แ€ฌแ€ธแ€›แ€ฑแ€ธแ€”แ€พแ€„แ€ทแ€บแ€œแ€พแ€ฑแ€ฌแ€„แ€บแ€‘แ€ฐแ€‘แ€•แ€บแ€€แ€™แ€บแ€ธแ€™แ€พแ€ฏแ€ก`
3. `_แ€กแ€œแ€ฌแ€€_แ€Ÿแ€ฒแ€ท_แ€™แ€ญแ€™แ€ญแ€€แ€ญแ€ฏแ€šแ€บ_แ€…แ€ฑแ€แ€ฎ_แ€’แ€ฝ`
**Context Size 3:**
1. `แ€›แ€ฑแ‹_แ€€แ€ฐแ€ธแ€…แ€€แ€บแ€แ€ญแ€”แ€”แ€ทแ€บ_แ€›แ€ฝแ€ญแ€ทแ€œแ€ปแ€ฌแ€ธแ€œแ€Šแ€บแ€ธ`
2. `แ€ฌแ€„แ€บแ€ธแ€€แ€ญแ€ฏ_แ€แ€ญแ€…แ€ฝแ€ฌแ€œแ€ฒแ‹_แ€กแ€™แ€พแ€แ€บแ€กแ€žแ€…แ€บแ€แ€ญ`
3. `แ€แ€ฝแ€„แ€บ_แ€›แ€พแ€ฎแ€ธแ€€แ€›แ€€แ€บแ€’แ€ฑแ€ซแ€€แ€บแ€แ€ฌแ€†แ€ฝแ€”แ€บแ€šแ€€แ€บแ€แ€ญ`
**Context Size 4:**
1. `แ€œแ€Šแ€บแ€ธ_แ€”แ€”แ€ทแ€บ_แ€™แ€ปแ€€แ€บแ€”แ€พแ€ฌแ€œแ€Šแ€บแ€ธ_แ€€แ€ปแ€›แ€ฏแ€ถแ€žแ€ฌ`
2. `แ€›แ€Ÿแ€”แ€บแ€ธแ€˜แ€ฑแ€ฌแ€„แ€บแ€•แ€ฑแ€ซแ€บแ€žแ€แ€„แ€บแ€ธ_(wave`
3. `แ€€แ€ฑแ€ฌแ€„แ€บแ€ธแ€œแ€ฑแ€ธแ€™แ€ปแ€€แ€บแ€”แ€พแ€ฌแ€•แ€ผแ€„แ€บแ€แ€…แ€บแ€แ€ฏแ€–แ€ผแ€…แ€บแ_`
### Key Findings
- **Best Predictability:** Context-4 (word) with 99.0% predictability
- **Branching Factor:** Decreases with context size (more deterministic)
- **Memory Trade-off:** Larger contexts require more storage (783,810 contexts)
- **Recommendation:** Context-3 or Context-4 for text generation
---
## 4. Vocabulary Analysis
![Zipf's Law](visualizations/zipf_law.png)
![Top Words](visualizations/top20_words.png)
![Coverage Curve](visualizations/vocab_coverage.png)
### Statistics
| Metric | Value |
|--------|-------|
| Vocabulary Size | 47,832 |
| Total Tokens | 309,275 |
| Mean Frequency | 6.47 |
| Median Frequency | 3 |
| Frequency Std Dev | 31.95 |
### Most Common Words
| Rank | Word | Frequency |
|------|------|-----------|
| 1 | แ€”แ€”แ€ทแ€บ | 2,540 |
| 2 | แ€–แ€ผแ€…แ€บแ€›แ€ฑ | 2,301 |
| 3 | แ€›แ€ฑ | 2,228 |
| 4 | แ€Ÿแ€ฏ | 1,547 |
| 5 | แ€• | 1,498 |
| 6 | แ€€แ€ญแ€ฏ | 1,222 |
| 7 | แ€แ€ฏแ€”แ€พแ€…แ€บ | 1,163 |
| 8 | แ€€แ€ญแ€ฏแ€ธแ€€แ€ฌแ€ธ | 1,147 |
| 9 | แ | 1,146 |
| 10 | แ€Ÿแ€ญแ€›แ€ฑ | 1,132 |
### Least Common Words (from vocabulary)
| Rank | Word | Frequency |
|------|------|-----------|
| 1 | แ€›แ€ฎแ€€แ€ฐแ€ธแ€…แ€ฝแ€ฌแ€•แ€ซแ€›แ€ฌแ€–แ€ผแ€…แ€บแ€–แ€ผแ€…แ€บ | 2 |
| 2 | asr | 2 |
| 3 | mothers | 2 |
| 4 | pdp | 2 |
| 5 | evans | 2 |
| 6 | แ€™แ€ผแ€ฑแ€ฌแ€€แ€บแ€ฆแ€ธแ€™แ€ผแ€ญแ€ฏแ€ทแ€™แ€ฌแ€•แ€„แ€บ | 2 |
| 7 | แแ‰แ€›แƒ | 2 |
| 8 | แแ‰แ€›แ€› | 2 |
| 9 | แแ‰แ‰แ€› | 2 |
| 10 | แ€…แ€ฌแ€”แ€šแ€บแ€‡แ€„แ€บแ€ธแ€กแ€–แ€ฝแ€ฒแ€ทแ€แ€ฝแ€„แ€บ | 2 |
### Zipf's Law Analysis
| Metric | Value |
|--------|-------|
| Zipf Coefficient | 0.8062 |
| Rยฒ (Goodness of Fit) | 0.995656 |
| Adherence Quality | **excellent** |
### Coverage Analysis
| Top N Words | Coverage |
|-------------|----------|
| Top 100 | 15.9% |
| Top 1,000 | 35.9% |
| Top 5,000 | 57.4% |
| Top 10,000 | 68.4% |
### Key Findings
- **Zipf Compliance:** Rยฒ=0.9957 indicates excellent adherence to Zipf's law
- **High Frequency Dominance:** Top 100 words cover 15.9% of corpus
- **Long Tail:** 37,832 words needed for remaining 31.6% coverage
---
## 5. Word Embeddings Evaluation
![Embedding Isotropy](visualizations/embedding_isotropy.png)
![Similarity Matrix](visualizations/embedding_similarity.png)
![t-SNE Words](visualizations/tsne_words.png)
![t-SNE Sentences](visualizations/tsne_sentences.png)
### 5.1 Cross-Lingual Alignment
![Alignment Quality](visualizations/embedding_alignment_quality.png)
![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
### 5.2 Model Comparison
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
|-------|-----------|----------|------------------|---------------|----------------|
| **mono_32d** | 32 | 0.8300 ๐Ÿ† | 0.3077 | N/A | N/A |
| **mono_64d** | 64 | 0.7613 | 0.2695 | N/A | N/A |
| **mono_128d** | 128 | 0.3041 | 0.2391 | N/A | N/A |
| **aligned_32d** | 32 | 0.8300 | 0.3073 | 0.0260 | 0.1900 |
| **aligned_64d** | 64 | 0.7613 | 0.2529 | 0.0400 | 0.2280 |
| **aligned_128d** | 128 | 0.3041 | 0.2467 | 0.0940 | 0.3080 |
### Key Findings
- **Best Isotropy:** mono_32d with 0.8300 (more uniform distribution)
- **Semantic Density:** Average pairwise similarity of 0.2705. Lower values indicate better semantic separation.
- **Alignment Quality:** Aligned models achieve up to 9.4% R@1 in cross-lingual retrieval.
- **Recommendation:** 128d aligned for best cross-lingual performance
---
## 6. Morphological Analysis (Experimental)
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.
### 6.1 Productivity & Complexity
| Metric | Value | Interpretation | Recommendation |
|--------|-------|----------------|----------------|
| Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
| Idiomaticity Gap | **0.985** | High formulaic/idiomatic content | - |
### 6.2 Affix Inventory (Productive Units)
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.
#### Productive Prefixes
| Prefix | Examples |
|--------|----------|
| `-แ€ก` | แ€กแ€›แ€พแ€ฑแ€ทแ€˜แ€€แ€บแ€แ€ฝแ€„แ€บ, แ€กแ€™แ€ผแ€„แ€ทแ€บแ€†แ€ฏแ€ถแ€ธแ€”แ€ฎแ€›แ€ฌแ€™แ€พแ€ฌ, แ€กแ€†แ€„แ€บแ€ธ |
| `-แ€™` | แ€™แ€แ€ฝแ€ญแ€ทแ€žแ€Šแ€บแ€€แ€ญแ€ฏ, แ€™แ€ญแ€™แ€™แ€ฌ, แ€™แ€ฑแ€‘แ€ฏแ€”แ€บแ€กแ€™แ€พแ€ฏแ€แ€ฒแ€ธแ€œแ€ญแ€ฏแ€ท |
| `-แ€ž` | แ€žแ€ฎแ€›แ€ญแ€แ€ญแ€‡แ€šแ€ง, แ€žแ€—แ€ผแ€ฏแ€แ€บแ€žแ€ฎแ€ธแ€€แ€ญแ€ฏ, แ€žแ€ฑแ€ฌแ€แ€ฌแ€•แ€แ€นแ€แ€ญแ€–แ€ญแ€ฏแ€œแ€บแ€žแ€ญแ€ฏแ€ท |
| `-แ€•` | แ€•แ€›แ€ญแ€ฏแ€แ€„แ€บแ€ธแ€“แ€ฌแ€แ€บ, แ€•แ€ผแ€„แ€บแ€›แ€ฑ, แ€•แ€ผแ€”แ€บแ€œแ€ฌแ€›แ€ฑแ€กแ€แ€ซ |
| `-แ€›` | แ€›แ€ฎแ€†แ€ญแ€ฏแ€ธแ€›แ€ฎแ€Šแ€…แ€บแ€แ€ญแ€€แ€ญแ€ฏ, แ€›แ€ฌแ€…แ€ฏแ€žแ€…แ€บแ€กแ€œแ€„แ€บแ€นแ€€แ€ฌ, แ€›แ€ฑแ€•แ€ฎแ€ธแ€แ€ฑแ€›แ€ฎแ€ธ |
| `-แ€€` | แ€€แ€ฝแ€”แ€บแ€šแ€€แ€บแ€›แ€ฑ, แ€€แ€•แ€บแ€•แ€”แ€ฌ, แ€€แ€ฝแ€”แ€บแ€šแ€€แ€บแ€แ€ปแ€ญแ€แ€บแ€†แ€€แ€บแ€™แ€พแ€ฏ |
| `-แ€` | แ€แ€ฑแ€ฌแ€„แ€บแ€ธ, แ€แ€”แ€„แ€บแ€นแ€‚แ€”แ€ฝแ€ฑแ€žแ€ฌแ€ธแ€–แ€ผแ€…แ€บแ€œแ€ปแ€พแ€„แ€บ, แ€แ€ญแ€ฏแ€„แ€บแ€ธแ€›แ€„แ€บแ€ธแ€žแ€ฌแ€ธแ€œแ€ฐแ€™แ€ปแ€ญแ€ฏแ€ธ |
| `-แ€œ` | แ€œแ€€แ€นแ€แ€, แ€œแ€ญแ€ฏแ€ทแ€•แ€ผแ€ฑแ€ฌแ€›แ€ฌ, แ€œแ€ฐแ€™แ€พแ€ฏแ€†แ€€แ€บแ€†แ€ถแ€›แ€ฎแ€ธ |
#### Productive Suffixes
| Suffix | Examples |
|--------|----------|
| `-แ€ง` | แ€žแ€ฎแ€›แ€ญแ€แ€ญแ€‡แ€šแ€ง, แ€”แ€ญแ€ฏแ€„แ€บแ€„แ€ถแ€…แ€ฌแ€แ€ปแ€ฏแ€•แ€บแ€ง, แ€›แ€แ€ญแ€ฏแ€„แ€บแ€กแ€™แ€ปแ€ญแ€ฏแ€ธแ€žแ€ฌแ€ธแ€€แ€ฑแ€ฌแ€„แ€บแ€…แ€ฎแ€ง |
| `-แ€€` | แ€‘แ€ญแ€ฏแ€…แ€‰แ€บแ€กแ€แ€ซแ€€, แ€›แ€Ÿแ€”แ€บแ€ธแ€›แ€ญแ€ฏแ€ทแ€€, แ€šแ€„แ€บแ€ธแ€›แ€ญแ€ฏแ€ทแ€€ |
| `-s` | indus, forces, patients |
| `-e` | amplitude, made, initiative |
| `-n` | radiation, chain, transcription |
| `-on` | radiation, transcription, sanitation |
| `-แ€›` | แ€ฅแ€•แ€’แ€ฑแ€กแ€›, แ€œแ€ฑแ€ทแ€œแ€ฌแ€™แ€พแ€ฏแ€แ€ญแ€กแ€›, แ€•แ€ผแ€ฑแ€ฌแ€•แ€ผแ€แ€ปแ€€แ€บแ€กแ€› |
| `-y` | pty, viceroy, complexity |
### 6.3 Bound Stems (Lexical Roots)
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.
| Stem | Cohesion | Substitutability | Examples |
|------|----------|------------------|----------|
| `atio` | 2.95x | 11 contexts | ratio, nation, nations |
| `tion` | 2.92x | 9 contexts | action, nation, motion |
### 6.4 Affix Compatibility (Co-occurrence)
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
| Prefix | Suffix | Frequency | Examples |
|--------|--------|-----------|----------|
| `-แ€ก` | `-แ€ง` | 22 words | แ€กแ€™แ€พแ€ฏแ€”แ€บแ€แ€ญแ€ง, แ€กแ€ฏแ€•แ€บแ€แ€ปแ€ฏแ€•แ€บแ€žแ€ฐแ€›แ€ญแ€ฏแ€ทแ€ง |
| `-แ€€` | `-แ€ง` | 16 words | แ€€แ€ปแ€šแ€บแ€ง, แ€€แ€ฑแ€ฌแ€บแ€™แ€แ€ฎแ€ง |
| `-แ€™` | `-แ€€` | 11 words | แ€™แ€ผแ€ฌแ€’แ€„แ€บแ€‘แ€€แ€บแ€€, แ€™แ€ญแ€–แ€ฏแ€›แ€ฌแ€ธแ€€ |
| `-แ€ก` | `-แ€€` | 11 words | แ€กแ€ฏแ€•แ€บแ€แ€ปแ€ฏแ€•แ€บแ€žแ€ฐแ€แ€ญแ€€, แ€กแ€ฌแ€€แ€ฌแ€žแ€€ |
| `-แ€™` | `-แ€ง` | 10 words | แ€™แ€Šแ€บแ€žแ€Šแ€ทแ€บแ€€แ€ญแ€”แ€บแ€ธแ€”แ€พแ€…แ€บแ€แ€ฏแ€ง, แ€™แ€ปแ€ญแ€ฏแ€ธแ€›แ€ญแ€ฏแ€ธแ€—แ€ฎแ€‡แ€กแ€„แ€บแ€‚แ€ปแ€„แ€บแ€”แ€ฎแ€šแ€ฌแ€ง |
| `-แ€›` | `-แ€€` | 8 words | แ€›แ€žแ€ฑแ€ทแ€€แ€ผแ€ฎแ€ธแ€€, แ€›แ€ฌแ€…แ€ฏแ€แ€”แ€ทแ€บแ€€ |
| `-แ€ก` | `-แ€›` | 8 words | แ€กแ€”แ€พแ€…แ€บแ€žแ€ฌแ€›, แ€กแ€แ€ผแ€ฎแ€กแ€”แ€ฎแ€กแ€› |
| `-แ€ž` | `-แ€ง` | 7 words | แ€žแ€˜แ€ฌแ€แ€€แ€ญแ€”แ€บแ€ธแ€…แ€ฏแ€ง, แ€žแ€˜แ€ฌแ€แ€แ€›แ€ฌแ€ธแ€ง |
| `-แ€` | `-แ€€` | 7 words | แ€แ€แ€ญแ€šแ€•แ€แ€นแ€แ€ฌแ€žแ€€, แ€แ€ฑแ€ฌแ€„แ€บแ€กแ€ฌแ€–แ€›แ€ญแ€€ |
| `-แ€ž` | `-แ€€` | 6 words | แ€žแ€ถแ€žแ€šแ€Ÿแ€ญแ€•แ€ซแ€€, แ€žแ€€แ€นแ€€ |
### 6.5 Recursive Morpheme Segmentation
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
| Word | Suggested Split | Confidence | Stem |
|------|-----------------|------------|------|
| แ€Ÿแ€ฝแ€”แ€บแ€›แ€พแ€ฐแ€ธแ€€แ€ปแ€ฝแ€”แ€บแ€ธแ€ง | **`แ€Ÿแ€ฝแ€”แ€บแ€›แ€พแ€ฐแ€ธแ€€แ€ปแ€ฝแ€”แ€บแ€ธ-แ€ง`** | 4.5 | `แ€Ÿแ€ฝแ€”แ€บแ€›แ€พแ€ฐแ€ธแ€€แ€ปแ€ฝแ€”แ€บแ€ธ` |
| แ€แ€€แ€บแ€แ€ฒแ€•แ€ผแ€ฎแ€ธ | **`แ€-แ€€-แ€บแ€แ€ฒแ€•แ€ผแ€ฎแ€ธ`** | 4.5 | `แ€บแ€แ€ฒแ€•แ€ผแ€ฎแ€ธ` |
| แ€…แ€ฑแ€แ€ฎแ€แ€ฑแ€ฌแ€บแ€ง | **`แ€…แ€ฑแ€แ€ฎแ€แ€ฑแ€ฌแ€บ-แ€ง`** | 4.5 | `แ€…แ€ฑแ€แ€ฎแ€แ€ฑแ€ฌแ€บ` |
| แ€แ€›แ€ฌแ€ธแ€€แ€ญแ€ฏแ€€แ€ฑแ€œแ€ฑแ€ท | **`แ€-แ€›-แ€ฌแ€ธแ€€แ€ญแ€ฏแ€€แ€ฑแ€œแ€ฑแ€ท`** | 4.5 | `แ€ฌแ€ธแ€€แ€ญแ€ฏแ€€แ€ฑแ€œแ€ฑแ€ท` |
| แ€แ€›แ€ฎแ€ธแ€‘แ€ฝแ€€แ€บแ€•แ€ผแ€”แ€บแ€›แ€ฌ | **`แ€-แ€›-แ€ฎแ€ธแ€‘แ€ฝแ€€แ€บแ€•แ€ผแ€”แ€บแ€›แ€ฌ`** | 4.5 | `แ€ฎแ€ธแ€‘แ€ฝแ€€แ€บแ€•แ€ผแ€”แ€บแ€›แ€ฌ` |
| แ€•แ€ผแ€Šแ€ทแ€บแ€”แ€พแ€…แ€บแ€€ | **`แ€•แ€ผแ€Šแ€ทแ€บแ€”แ€พแ€…แ€บ-แ€€`** | 4.5 | `แ€•แ€ผแ€Šแ€ทแ€บแ€”แ€พแ€…แ€บ` |
| แ€˜แ€’แ€นแ€’แ€€แ€™แ€นแ€˜แ€ฌแ€™แ€พ | **`แ€˜-แ€’-แ€นแ€’แ€€แ€™แ€นแ€˜แ€ฌแ€™แ€พ`** | 3.0 | `แ€นแ€’แ€€แ€™แ€นแ€˜แ€ฌแ€™แ€พ` |
| แ€”แ€แ€บแ€™แ€ผแ€…แ€บแ€งแ€ท | **`แ€”-แ€-แ€บแ€™แ€ผแ€…แ€บแ€งแ€ท`** | 3.0 | `แ€บแ€™แ€ผแ€…แ€บแ€งแ€ท` |
| แ€›แ€„แ€บแ€€แ€ฝแ€ฒแ€”แ€ฌแ€”แ€”แ€ทแ€บ | **`แ€›-แ€„-แ€บแ€€แ€ฝแ€ฒแ€”แ€ฌแ€”แ€”แ€ทแ€บ`** | 3.0 | `แ€บแ€€แ€ฝแ€ฒแ€”แ€ฌแ€”แ€”แ€ทแ€บ` |
| แ€™แ€œแ€€แ€บแ€€แ€ฌแ€กแ€ฌแ€ธ | **`แ€™-แ€œแ€€-แ€บแ€€แ€ฌแ€กแ€ฌแ€ธ`** | 3.0 | `แ€บแ€€แ€ฌแ€กแ€ฌแ€ธ` |
| แ€”แ€แ€บแ€›แ€ฏแ€•แ€บแ€แ€ญ | **`แ€”-แ€-แ€บแ€›แ€ฏแ€•แ€บแ€แ€ญ`** | 3.0 | `แ€บแ€›แ€ฏแ€•แ€บแ€แ€ญ` |
| แ€กแ€•แ€ฑแ€ซแ€บแ€žแ€ญแ€ฏแ€ท | **`แ€ก-แ€•-แ€ฑแ€ซแ€บแ€žแ€ญแ€ฏแ€ท`** | 3.0 | `แ€ฑแ€ซแ€บแ€žแ€ญแ€ฏแ€ท` |
| แ€†แ€”แ€นแ€’แ€•แ€ผแ€™แ€พแ€ฏ | **`แ€†-แ€”-แ€นแ€’แ€•แ€ผแ€™แ€พแ€ฏ`** | 3.0 | `แ€นแ€’แ€•แ€ผแ€™แ€พแ€ฏ` |
| แ€›แ€Ÿแ€ญแ€žแ€–แ€ผแ€„แ€ทแ€บ | **`แ€›-แ€Ÿ-แ€ญแ€žแ€–แ€ผแ€„แ€ทแ€บ`** | 3.0 | `แ€ญแ€žแ€–แ€ผแ€„แ€ทแ€บ` |
| แ€‘แ€ญแ€ฏแ€”แ€Šแ€บแ€ธแ€€แ€ญแ€ฏ | **`แ€‘-แ€ญแ€ฏแ€”แ€Šแ€บแ€ธแ€€แ€ญแ€ฏ`** | 1.5 | `แ€ญแ€ฏแ€”แ€Šแ€บแ€ธแ€€แ€ญแ€ฏ` |
### 6.6 Linguistic Interpretation
> **Automated Insight:**
The language Rakhine shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
> **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.
---
## 7. Summary & Recommendations
![Performance Dashboard](visualizations/performance_dashboard.png)
### Production Recommendations
| Component | Recommended | Rationale |
|-----------|-------------|-----------|
| Tokenizer | **64k BPE** | Best compression (4.87x) |
| N-gram | **2-gram** | Lowest perplexity (1,997) |
| Markov | **Context-4** | Highest predictability (99.0%) |
| Embeddings | **100d** | Balanced semantic capture and isotropy |
---
## Appendix: Metrics Glossary & Interpretation Guide
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
### Tokenizer Metrics
**Compression Ratio**
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
>
> *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.
>
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
**Average Token Length (Fertility)**
> *Definition:* Mean number of characters per token produced by the tokenizer.
>
> *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.
>
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
**Unknown Token Rate (OOV Rate)**
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
>
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
>
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
### N-gram Model Metrics
**Perplexity**
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
>
> *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.
>
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
**Entropy**
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
>
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
>
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
**Coverage (Top-K)**
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
>
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
>
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
### Markov Chain Metrics
**Average Entropy**
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
>
> *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).
>
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
**Branching Factor**
> *Definition:* Average number of unique next tokens observed for each context.
>
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
>
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
**Predictability**
> *Definition:* Derived metric: (1 - normalized_entropy) ร— 100%. Indicates how deterministic the model's predictions are.
>
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
>
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
### Vocabulary & Zipf's Law Metrics
**Zipf's Coefficient**
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
>
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
>
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
**Rยฒ (Coefficient of Determination)**
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
>
> *Intuition:* Rยฒ near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
>
> *What to seek:* Rยฒ > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
**Vocabulary Coverage**
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
>
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
>
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
### Word Embedding Metrics
**Isotropy**
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
>
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
>
> *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.
**Average Norm**
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
>
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
>
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
**Cosine Similarity**
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
>
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
>
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
**t-SNE Visualization**
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
>
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
>
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
### General Interpretation Guidelines
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
### Visualizations Index
| Visualization | Description |
|---------------|-------------|
| Tokenizer Compression | Compression ratios by vocabulary size |
| Tokenizer Fertility | Average token length by vocabulary |
| Tokenizer OOV | Unknown token rates |
| Tokenizer Total Tokens | Total tokens by vocabulary |
| N-gram Perplexity | Perplexity by n-gram size |
| N-gram Entropy | Entropy by n-gram size |
| N-gram Coverage | Top pattern coverage |
| N-gram Unique | Unique n-gram counts |
| Markov Entropy | Entropy by context size |
| Markov Branching | Branching factor by context |
| Markov Contexts | Unique context counts |
| Zipf's Law | Frequency-rank distribution with fit |
| Vocab Frequency | Word frequency distribution |
| Top 20 Words | Most frequent words |
| Vocab Coverage | Cumulative coverage curve |
| Embedding Isotropy | Vector space uniformity |
| Embedding Norms | Vector magnitude distribution |
| Embedding Similarity | Word similarity heatmap |
| Nearest Neighbors | Similar words for key terms |
| t-SNE Words | 2D word embedding visualization |
| t-SNE Sentences | 2D sentence embedding visualization |
| Position Encoding | Encoding method comparison |
| Model Sizes | Storage requirements |
| Performance Dashboard | Comprehensive performance overview |
---
## About This Project
### Data Source
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
### Project
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
### Maintainer
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
### Citation
If you use these models in your research, please cite:
```bibtex
@misc{wikilangs2025,
author = {Kamali, Omar},
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
year = {2025},
doi = {10.5281/zenodo.18073153},
publisher = {Zenodo},
url = {https://huggingface.co/wikilangs}
institution = {Omneity Labs}
}
```
### License
MIT License - Free for academic and commercial use.
### Links
- ๐ŸŒ Website: [wikilangs.org](https://wikilangs.org)
- ๐Ÿค— Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
- ๐Ÿ“Š Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
- ๐Ÿ‘ค Author: [Omar Kamali](https://huggingface.co/omarkamali)
- ๐Ÿค Sponsor: [Featherless AI](https://featherless.ai)
---
*Generated by Wikilangs Models Pipeline*
*Report Date: 2026-01-10 18:35:21*