|
|
--- |
|
|
language: or |
|
|
language_name: Odia |
|
|
language_family: indoaryan_eastern |
|
|
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-indoaryan_eastern |
|
|
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.964 |
|
|
- name: best_isotropy |
|
|
type: isotropy |
|
|
value: 0.8415 |
|
|
- name: vocabulary_size |
|
|
type: vocab |
|
|
value: 0 |
|
|
generated: 2026-01-10 |
|
|
--- |
|
|
|
|
|
# Odia - Wikilangs Models |
|
|
## Comprehensive Research Report & Full Ablation Study |
|
|
|
|
|
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Odia** 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 |
|
|
|
|
|
 |
|
|
|
|
|
### 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 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
### Results |
|
|
|
|
|
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens | |
|
|
|------------|-------------|---------------|----------|--------------| |
|
|
| **8k** | 3.812x | 3.81 | 0.1748% | 431,339 | |
|
|
| **16k** | 4.280x | 4.28 | 0.1962% | 384,250 | |
|
|
| **32k** | 4.668x | 4.67 | 0.2140% | 352,257 | |
|
|
| **64k** | 4.964x ๐ | 4.97 | 0.2276% | 331,277 | |
|
|
|
|
|
### Tokenization Examples |
|
|
|
|
|
Below are sample sentences tokenized with each vocabulary size: |
|
|
|
|
|
**Sample 1:** `เฌเฌเฌฃเฌพเฌฌเฌณเญ เฌเฌจเญเฌฎ เฌเฌณเญเฌชเฌจเฌพ เฌฆเฌพเฌถ, เฌชเฌฐเญเฌฌเฌคเฌพเฌฐเญเฌนเญ เฌฎเญเฌคเญเญเญ เฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ เฌฌเฌพเฌนเฌพเฌฐ เฌฒเฌฟเฌเญเฌ BBC: เฌเฌนเฌฟ เฌฆเฌฟเฌจ ...` |
|
|
|
|
|
| Vocab | Tokens | Count | |
|
|
|-------|--------|-------| |
|
|
| 8k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌเฌณเญเฌชเฌจเฌพ โเฌฆเฌพเฌถ , โเฌชเฌฐเญเฌฌ เฌคเฌพเฌฐ เญ เฌนเญ โเฌฎเญเฌคเญเญเญ ... (+13 more)` | 23 | |
|
|
| 16k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌเฌณเญเฌชเฌจเฌพ โเฌฆเฌพเฌถ , โเฌชเฌฐเญเฌฌ เฌคเฌพเฌฐ เญ เฌนเญ โเฌฎเญเฌคเญเญเญ ... (+13 more)` | 23 | |
|
|
| 32k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌเฌณเญเฌชเฌจเฌพ โเฌฆเฌพเฌถ , โเฌชเฌฐเญเฌฌเฌคเฌพเฌฐ เญเฌนเญ โเฌฎเญเฌคเญเญเญ โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ ... (+11 more)` | 21 | |
|
|
| 64k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌเฌณเญเฌชเฌจเฌพ โเฌฆเฌพเฌถ , โเฌชเฌฐเญเฌฌเฌคเฌพเฌฐเญเฌนเญ โเฌฎเญเฌคเญเญเญ โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ โเฌฒเฌฟเฌเญเฌ ... (+10 more)` | 20 | |
|
|
|
|
|
**Sample 2:** `เฌเฌเฌฃเฌพเฌฌเฌณเญ เฌเฌจเญเฌฎ เฌฆเญเฌนเฌพเฌจเญเฌค เฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ เฌฌเฌพเฌนเฌพเฌฐ เฌฒเฌฟเฌเญเฌ BBC: เฌเฌนเฌฟ เฌฆเฌฟเฌจ เฌเฌพเฌจเฌพเฌกเฌพเฌฐเญ เฌเฌนเฌฟ เฌฆเฌฟเฌจ เฌคเฌฟเฌเฌฐเฌฟ...` |
|
|
|
|
|
| Vocab | Tokens | Count | |
|
|
|-------|--------|-------| |
|
|
| 8k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌฆเญเฌนเฌพเฌจเญเฌค โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ โเฌฒเฌฟเฌเญเฌ โbbc : โเฌเฌนเฌฟ โเฌฆเฌฟเฌจ ... (+6 more)` | 16 | |
|
|
| 16k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌฆเญเฌนเฌพเฌจเญเฌค โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ โเฌฒเฌฟเฌเญเฌ โbbc : โเฌเฌนเฌฟ โเฌฆเฌฟเฌจ ... (+6 more)` | 16 | |
|
|
| 32k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌฆเญเฌนเฌพเฌจเญเฌค โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ โเฌฒเฌฟเฌเญเฌ โbbc : โเฌเฌนเฌฟ โเฌฆเฌฟเฌจ ... (+6 more)` | 16 | |
|
|
| 64k | `โเฌเฌเฌฃเฌพเฌฌเฌณเญ โเฌเฌจเญเฌฎ โเฌฆเญเฌนเฌพเฌจเญเฌค โเฌชเฌฐเญเฌฌเฌชเฌฐเญเฌฌเฌพเฌฃเฌฟ โเฌฌเฌพเฌนเฌพเฌฐ โเฌฒเฌฟเฌเญเฌ โbbc : โเฌเฌนเฌฟ โเฌฆเฌฟเฌจ ... (+6 more)` | 16 | |
|
|
|
|
|
**Sample 3:** `เฌเฌฎเฌทเญเฌเฌฐเฌกเฌผเฌฎ, เฌจเญเฌฆเฌฐเฌฒเฌพเฌฃเญเฌกเฌฐ เฌฐเฌพเฌเฌงเฌพเฌจเญ เฅค เฌญเญเฌเญเฌณ เฌเฌคเฌฟเฌนเฌพเฌธ เฌชเฌฐเญเฌฏเญเญเฌเฌจ เฌเฌงเฌพเฌฐ เฌฌเฌพเฌนเฌพเฌฐ เฌคเฌฅเญเญ เฌธเฌนเฌฐ` |
|
|
|
|
|
| Vocab | Tokens | Count | |
|
|
|-------|--------|-------| |
|
|
| 8k | `โเฌเฌฎ เฌทเญเฌเฌฐ เฌกเฌผ เฌฎ , โเฌจเญ เฌฆเฌฐ เฌฒเฌพ เฌฃเญเฌกเฌฐ โเฌฐเฌพเฌเฌงเฌพเฌจเญ ... (+8 more)` | 18 | |
|
|
| 16k | `โเฌเฌฎ เฌทเญเฌเฌฐ เฌกเฌผ เฌฎ , โเฌจเญ เฌฆเฌฐ เฌฒเฌพเฌฃเญเฌกเฌฐ โเฌฐเฌพเฌเฌงเฌพเฌจเญ โเฅค ... (+7 more)` | 17 | |
|
|
| 32k | `โเฌเฌฎ เฌทเญเฌเฌฐ เฌกเฌผ เฌฎ , โเฌจเญเฌฆเฌฐ เฌฒเฌพเฌฃเญเฌกเฌฐ โเฌฐเฌพเฌเฌงเฌพเฌจเญ โเฅค โเฌญเญเฌเญเฌณ ... (+6 more)` | 16 | |
|
|
| 64k | `โเฌเฌฎ เฌทเญเฌเฌฐ เฌกเฌผเฌฎ , โเฌจเญเฌฆเฌฐ เฌฒเฌพเฌฃเญเฌกเฌฐ โเฌฐเฌพเฌเฌงเฌพเฌจเญ โเฅค โเฌญเญเฌเญเฌณ โเฌเฌคเฌฟเฌนเฌพเฌธ ... (+5 more)` | 15 | |
|
|
|
|
|
|
|
|
### Key Findings |
|
|
|
|
|
- **Best Compression:** 64k achieves 4.964x compression |
|
|
- **Lowest UNK Rate:** 8k with 0.1748% 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 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
### Results |
|
|
|
|
|
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage | |
|
|
|--------|---------|------------|---------|----------------|------------------|-------------------| |
|
|
| **2-gram** | Word | 29,849 | 14.87 | 100,627 | 11.3% | 29.3% | |
|
|
| **2-gram** | Subword | 2,236 ๐ | 11.13 | 49,387 | 34.1% | 70.8% | |
|
|
| **3-gram** | Word | 24,001 | 14.55 | 101,801 | 15.3% | 35.2% | |
|
|
| **3-gram** | Subword | 18,474 | 14.17 | 248,330 | 13.5% | 36.9% | |
|
|
| **4-gram** | Word | 38,336 | 15.23 | 175,673 | 15.6% | 32.6% | |
|
|
| **4-gram** | Subword | 86,597 | 16.40 | 939,792 | 8.5% | 23.8% | |
|
|
| **5-gram** | Word | 26,841 | 14.71 | 131,848 | 18.5% | 36.0% | |
|
|
| **5-gram** | Subword | 206,339 | 17.65 | 1,508,952 | 6.0% | 17.6% | |
|
|
|
|
|
### Top 5 N-grams by Size |
|
|
|
|
|
**2-grams (Word):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌเฌกเฌผเฌฟเฌถเฌพ เฌฌเฌฟเฌงเฌพเฌจ` | 9,207 | |
|
|
| 2 | `เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ` | 5,589 | |
|
|
| 3 | `เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ` | 5,588 | |
|
|
| 4 | `เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ` | 5,585 | |
|
|
| 5 | `เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ` | 5,585 | |
|
|
|
|
|
**3-grams (Word):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ` | 5,580 | |
|
|
| 2 | `เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ` | 5,580 | |
|
|
| 3 | `เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ` | 5,578 | |
|
|
| 4 | `เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ` | 5,575 | |
|
|
| 5 | `เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ` | 5,575 | |
|
|
|
|
|
**4-grams (Word):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ` | 5,580 | |
|
|
| 2 | `เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ` | 5,575 | |
|
|
| 3 | `เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ` | 5,575 | |
|
|
| 4 | `เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ` | 5,574 | |
|
|
| 5 | `เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ` | 5,571 | |
|
|
|
|
|
**5-grams (Word):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ` | 5,575 | |
|
|
| 2 | `เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ` | 5,572 | |
|
|
| 3 | `เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ` | 5,571 | |
|
|
| 4 | `เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ` | 5,571 | |
|
|
| 5 | `เฌเฌกเฌผเฌฟเฌถเฌพ เฌฌเฌฟเฌงเฌพเฌจ เฌธเฌญเฌพเฌฐเญ เฌเฌฃเญ เฌฌเฌฟเฌงเฌพเญเฌ` | 1,965 | |
|
|
|
|
|
**2-grams (Subword):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌฐ _` | 374,450 | |
|
|
| 2 | `เฌฐเญ _` | 325,653 | |
|
|
| 3 | `เฅค _` | 280,176 | |
|
|
| 4 | `_ เฅค` | 264,038 | |
|
|
| 5 | `_ เฌ` | 222,101 | |
|
|
|
|
|
**3-grams (Subword):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `_ เฅค _` | 256,912 | |
|
|
| 2 | `_ เฌ เฌฐเฌฟ` | 90,546 | |
|
|
| 3 | `เฌฅเฌฟ เฌฒเญ _` | 77,030 | |
|
|
| 4 | `_ เฌ _` | 75,329 | |
|
|
| 5 | `เฌฒเญ _ เฅค` | 66,216 | |
|
|
|
|
|
**4-grams (Subword):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌฒเญ _ เฅค _` | 64,694 | |
|
|
| 2 | `เฌฅเฌฟ เฌฒเญ _ เฅค` | 58,856 | |
|
|
| 3 | `_ เฌ เฌนเฌฟ _` | 44,903 | |
|
|
| 4 | `_ เฌ เฌฐเฌฟ เฌฅเฌฟ` | 43,331 | |
|
|
| 5 | `_ เฅค _ เฌ` | 42,881 | |
|
|
|
|
|
**5-grams (Subword):** |
|
|
|
|
|
| Rank | N-gram | Count | |
|
|
|------|--------|-------| |
|
|
| 1 | `เฌฅเฌฟ เฌฒเญ _ เฅค _` | 57,518 | |
|
|
| 2 | `_ เฌ เฌฐเฌฟ เฌฅเฌฟ เฌฒเญ` | 36,616 | |
|
|
| 3 | `เฌ เฌฐเฌฟ เฌฅเฌฟ เฌฒเญ _` | 33,661 | |
|
|
| 4 | `เฌฐเฌฟ เฌฅเฌฟ เฌฒเญ _ เฅค` | 28,715 | |
|
|
| 5 | `เฌฅเฌฟ เฌฒเฌพ _ เฅค _` | 27,225 | |
|
|
|
|
|
|
|
|
### Key Findings |
|
|
|
|
|
- **Best Perplexity:** 2-gram (subword) with 2,236 |
|
|
- **Entropy Trend:** Decreases with larger n-grams (more predictable) |
|
|
- **Coverage:** Top-1000 patterns cover ~18% of corpus |
|
|
- **Recommendation:** 4-gram or 5-gram for best predictive performance |
|
|
|
|
|
--- |
|
|
## 3. Markov Chain Evaluation |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
### Results |
|
|
|
|
|
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability | |
|
|
|---------|---------|-------------|------------|------------------|-----------------|----------------| |
|
|
| **1** | Word | 0.8072 | 1.750 | 6.67 | 340,484 | 19.3% | |
|
|
| **1** | Subword | 0.9446 | 1.925 | 13.59 | 10,595 | 5.5% | |
|
|
| **2** | Word | 0.2495 | 1.189 | 1.58 | 2,269,616 | 75.0% | |
|
|
| **2** | Subword | 0.6564 | 1.576 | 4.70 | 143,947 | 34.4% | |
|
|
| **3** | Word | 0.0678 | 1.048 | 1.11 | 3,579,859 | 93.2% | |
|
|
| **3** | Subword | 0.5343 | 1.448 | 3.26 | 676,398 | 46.6% | |
|
|
| **4** | Word | 0.0235 ๐ | 1.016 | 1.04 | 3,976,608 | 97.6% | |
|
|
| **4** | Subword | 0.3939 | 1.314 | 2.07 | 2,202,293 | 60.6% | |
|
|
|
|
|
### Generated Text Samples (Word-based) |
|
|
|
|
|
Below are text samples generated from each word-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. `เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ เฌฎเญเฌคเญเญเญ เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธ...` |
|
|
3. `เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌเญเฌฌเฌฐ เฌกเฌฟเฌธเญเฌฎเญเฌฌเฌฐ เฌฎเญเฌคเญเญเญ เฌเฌพเฌจเญเฌเฌฐเญ เฌฎเฌพเฌฐเญเฌเญเฌ เฌ
เฌชเญเฌฐเญเฌฒ เฌเญเฌจ เฌเญเฌฒเฌพเฌ เฌธเญเฌชเญเฌเญเฌฎเญเฌฌเฌฐ เฌ
เฌเญเฌ...` |
|
|
|
|
|
|
|
|
### Generated Text Samples (Subword-based) |
|
|
|
|
|
Below are text samples generated from each subword-based Markov chain model: |
|
|
|
|
|
**Context Size 1:** |
|
|
|
|
|
1. `_เฌเฌนเฌพ_เฌเฌคเญเฌคเฌฎ_เฌเญเฌ_f)_เฌฐเฌพ_` |
|
|
2. `เฌฐ_เฌเฌพเฌจเญเฌฆเฌฐ_เฌค_เฌเฌฅเฌฟเฌฌเฌเญเฌ_เฅค_เฌ` |
|
|
3. `เฌ_เฌธเฌเญ_เฌฐเฌพเฌเญเฌฌเฌฐ_เฌชเญเฌฐเฌธเญเฌคเญ_เฌถเญเฌเฌฃเฌฟ` |
|
|
|
|
|
**Context Size 2:** |
|
|
|
|
|
1. `เฌฐ_เฌฌเฌจเญเฌงเฌพเฌฏเฌพเฌ_เฅค_เฌฆเญเฌฐเญเฌ_เฌเฌจเฌพเฌฐเญ_เฌ` |
|
|
2. `เฌฐเญ_เฌชเฌกเฌฟเฌฒเฌพ_เฅค_เฌฏเฌฅเฌพ-_เญฉเญฆ_เฌเฌพเฌคเฌฟ` |
|
|
3. `เฅค_เฌธเฌฌเญเฌฐ_เฌชเญเฌฐเฌเฌคเญเญ_(เฌธเญเฌคเญเฌฌเญเฌณเญ_` |
|
|
|
|
|
**Context Size 3:** |
|
|
|
|
|
1. `_เฅค_เฌชเญเฌฐเฌพเฌฐเฌฎเญเฌญเฌฟเฌ_เฌ
เฌฌเฌฐเญเฌง_เฌเฌฐเฌฟเฌเฌจเญเฌคเฌฟเฅค` |
|
|
2. `_เฌเฌฐเฌฟเฌฅเฌพเฌ,_เฌฏเฌพเฌนเฌพเฌเฌฟ_เฌชเญเฌเฌพ_เฌชเฌพเฌเฌฅเฌฟเฌฒเญ` |
|
|
3. `เฌฅเฌฟเฌฒเญ_เฌฎเฌงเญเญ_เฌญเฌเฌจ_เฌเญเฌนเฌฎเฌจเญเฌคเญเฌฐเญ_เฌฐเฌนเฌฟเฌฒเฌพ` |
|
|
|
|
|
**Context Size 4:** |
|
|
|
|
|
1. `เฌฒเญ_เฅค_เฌเฌจเญเฌฎ,_เฌชเฌฐเฌฟเฌฌเฌพเฌฐ_เฌเฌฌเฌถเญเญเฌเญเญ_` |
|
|
2. `เฌฅเฌฟเฌฒเญ_เฅค_เฌธเญเฌ_เฌฎเฌนเฌฎเญเฌฎเฌฆ_เฌเฌพเฌจเฌเญเฌ_เฌฎเฌจเญ` |
|
|
3. `_เฌเฌนเฌฟ_เฌฌเฌฟเฌทเญเฌฐเญ_เฌเฌพเฌฃเฌฟเฌนเญเฌฌ_เฅค_เฌธเฌพเฌจเญ_` |
|
|
|
|
|
|
|
|
### Key Findings |
|
|
|
|
|
- **Best Predictability:** Context-4 (word) with 97.6% predictability |
|
|
- **Branching Factor:** Decreases with context size (more deterministic) |
|
|
- **Memory Trade-off:** Larger contexts require more storage (2,202,293 contexts) |
|
|
- **Recommendation:** Context-3 or Context-4 for text generation |
|
|
|
|
|
--- |
|
|
## 4. Vocabulary Analysis |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
### Statistics |
|
|
|
|
|
| Metric | Value | |
|
|
|--------|-------| |
|
|
| Vocabulary Size | 136,870 | |
|
|
| Total Tokens | 4,501,470 | |
|
|
| Mean Frequency | 32.89 | |
|
|
| Median Frequency | 4 | |
|
|
| Frequency Std Dev | 438.76 | |
|
|
|
|
|
### Most Common Words |
|
|
|
|
|
| Rank | Word | Frequency | |
|
|
|------|------|-----------| |
|
|
| 1 | เฌ | 75,711 | |
|
|
| 2 | เฌธเญ | 45,611 | |
|
|
| 3 | เฌเฌนเฌฟ | 45,373 | |
|
|
| 4 | เฌเฌฌเฌ | 41,576 | |
|
|
| 5 | เฌเฌ | 38,494 | |
|
|
| 6 | เฌเฌฐเฌฟเฌฅเฌฟเฌฒเญ | 36,605 | |
|
|
| 7 | เฌเฌนเฌพ | 26,828 | |
|
|
| 8 | เฌชเฌพเฌเฌ | 24,033 | |
|
|
| 9 | เฌเฌงเฌพเฌฐ | 21,330 | |
|
|
| 10 | เฌฎเฌงเญเญ | 18,417 | |
|
|
|
|
|
### Least Common Words (from vocabulary) |
|
|
|
|
|
| Rank | Word | Frequency | |
|
|
|------|------|-----------| |
|
|
| 1 | เฌเญเฌณเญเฌถเญเญฑเฌฐ | 2 | |
|
|
| 2 | เฌเญเฌฐเฌฟเญเฌจ | 2 | |
|
|
| 3 | เฌเฌฒเฌพเฌชเญเฌชเญเฌเฌพ | 2 | |
|
|
| 4 | เฌเญเฌฐเฌฅเฌพเฌฒเฌพ | 2 | |
|
|
| 5 | cherthala | 2 | |
|
|
| 6 | เฌชเญเฌฅเฌฟเญเฌพเฌญเฌฟเฌฒเฌพ | 2 | |
|
|
| 7 | puthiyavila | 2 | |
|
|
| 8 | เฌฎเฌพเฌญเญเฌฒเฌฟเฌเญเฌเฌฐ | 2 | |
|
|
| 9 | cheriyanad | 2 | |
|
|
| 10 | padanilam | 2 | |
|
|
|
|
|
### Zipf's Law Analysis |
|
|
|
|
|
| Metric | Value | |
|
|
|--------|-------| |
|
|
| Zipf Coefficient | 1.0564 | |
|
|
| Rยฒ (Goodness of Fit) | 0.989694 | |
|
|
| Adherence Quality | **excellent** | |
|
|
|
|
|
### Coverage Analysis |
|
|
|
|
|
| Top N Words | Coverage | |
|
|
|-------------|----------| |
|
|
| Top 100 | 24.7% | |
|
|
| Top 1,000 | 54.1% | |
|
|
| Top 5,000 | 74.9% | |
|
|
| Top 10,000 | 82.2% | |
|
|
|
|
|
### Key Findings |
|
|
|
|
|
- **Zipf Compliance:** Rยฒ=0.9897 indicates excellent adherence to Zipf's law |
|
|
- **High Frequency Dominance:** Top 100 words cover 24.7% of corpus |
|
|
- **Long Tail:** 126,870 words needed for remaining 17.8% coverage |
|
|
|
|
|
--- |
|
|
## 5. Word Embeddings Evaluation |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
### 5.1 Cross-Lingual Alignment |
|
|
|
|
|
 |
|
|
|
|
|
 |
|
|
|
|
|
|
|
|
### 5.2 Model Comparison |
|
|
|
|
|
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 | |
|
|
|-------|-----------|----------|------------------|---------------|----------------| |
|
|
| **mono_32d** | 32 | 0.8415 ๐ | 0.3599 | N/A | N/A | |
|
|
| **mono_64d** | 64 | 0.8361 | 0.2726 | N/A | N/A | |
|
|
| **mono_128d** | 128 | 0.8229 | 0.2022 | N/A | N/A | |
|
|
| **aligned_32d** | 32 | 0.8415 | 0.3633 | 0.0280 | 0.2100 | |
|
|
| **aligned_64d** | 64 | 0.8361 | 0.2795 | 0.0380 | 0.2660 | |
|
|
| **aligned_128d** | 128 | 0.8229 | 0.2078 | 0.1060 | 0.3460 | |
|
|
|
|
|
### Key Findings |
|
|
|
|
|
- **Best Isotropy:** mono_32d with 0.8415 (more uniform distribution) |
|
|
- **Semantic Density:** Average pairwise similarity of 0.2809. Lower values indicate better semantic separation. |
|
|
- **Alignment Quality:** Aligned models achieve up to 10.6% 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 | **1.043** | 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` | endocarditis, notes, colours | |
|
|
| `-เฌเฌฐ` | เฌกเฌพเฌเญเฌคเฌฐเฌฎเฌพเฌจเฌเญเฌเฌฐ, เฌคเญเฌฐเญเฌฅเฌเญเฌเฌฐเฌเญเฌเฌฐ, เฌชเญเฌฐเฌฃเญเฌคเฌพเฌเญเฌเฌฐ | |
|
|
| `-เฌค` | เฌฒเฌฃเญเฌกเฌจเฌธเญเฌฅเฌฟเฌค, เฌเฌพเฌฐเญเฌฏเฌฐเฌค, เฌฎเฌฐเญเฌฎเฌพเฌนเฌค | |
|
|
| `-e` | commemorate, define, triple | |
|
|
| `-เญ` | เฌฆเญเฌฐเญเฌเฌธเฌฎเญ, เฌเฌทเฌฟเญ, เฌธเฌฆเญเญ | |
|
|
|
|
|
### 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 | |
|
|
|------|----------|------------------|----------| |
|
|
| `ther` | 3.09x | 37 contexts | other, ether, there | |
|
|
| `atio` | 3.04x | 34 contexts | ratio, ration, nation | |
|
|
| `tion` | 2.94x | 35 contexts | option, action, ration | |
|
|
| `indi` | 3.19x | 26 contexts | hindi, india, indie | |
|
|
| `ture` | 3.19x | 25 contexts | nature, mature, future | |
|
|
| `vers` | 3.09x | 26 contexts | verso, overs, versa | |
|
|
| `ment` | 3.07x | 25 contexts | moment, cement, mentor | |
|
|
| `ress` | 2.99x | 27 contexts | dress, press, stress | |
|
|
| `nter` | 2.90x | 29 contexts | enter, inter, center | |
|
|
| `ctio` | 2.94x | 19 contexts | action, section, actions | |
|
|
| `stor` | 3.07x | 16 contexts | istor, store, story | |
|
|
| `tern` | 2.88x | 17 contexts | stern, sternal, externa | |
|
|
|
|
|
### 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 | |
|
|
|--------|--------|-----------|----------| |
|
|
| `-เฌธ` | `-เฌฐ` | 75 words | เฌธเฌพเฌเญเฌทเฌพเฌคเฌฐ, เฌธเญเฌฅเฌณเฌฌเฌนเฌฟเฌจเญเฌฐ | |
|
|
| `-เฌช` | `-เฌฐ` | 57 words | เฌชเฌคเฌฟเฌเญเฌเฌฐ, เฌชเญเฌฐเฌงเฌพเฌจเฌฎเฌจเญเฌคเญเฌฐเญเฌเญเฌเฌฐ | |
|
|
| `-เฌ` | `-เฌฐ` | 53 words | เฌเญเฌณเฌฐ, เฌเฌฅเฌเฌณเญเฌฐ | |
|
|
| `-เฌฌ` | `-เฌฐ` | 46 words | เฌฌเฌพเฌเฌฆเฌชเญเฌฐ, เฌฌเฌฟเฌนเญเฌญเฌฟเฌ
เฌฐ | |
|
|
| `-เฌฎ` | `-เฌฐ` | 45 words | เฌฎเฌพเฌคเญเฌเฌพเฌฎเฌพเฌจเฌเญเฌเฌฐ, เฌฎเญเฌฐเญเฌเฌฐ | |
|
|
| `-เฌฌ` | `-เฌ` | 44 words | เฌฌเฌพเฌธเฌจเญเฌคเญเฌเญเฌ, เฌฌเฌพเฌเฌซเญเฌเฌฟเฌ | |
|
|
| `-เฌธ` | `-เฌ` | 43 words | เฌธเฌฎเญเฌคเฌ, เฌธเญเฌทเญเฌฃเฌเญเฌ | |
|
|
| `-เฌช` | `-เฌ` | 36 words | เฌชเญเฌทเญเฌชเฌ, เฌชเญเฌฐเฌพเฌเญเฌเฌคเฌฟเฌนเฌพเฌธเฌฟเฌ | |
|
|
| `-เฌจ` | `-เฌฐ` | 35 words | เฌจเฌฌเฌเฌณเญเฌฌเฌฐเฌฐ, เฌจเฌเญเฌทเฌคเญเฌฐเฌชเญเฌฐ | |
|
|
| `-เฌฎ` | `-เฌ` | 33 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 | |
|
|
|------|-----------------|------------|------| |
|
|
| เฌฌเฌฐเฌเฌพเฌเฌ เฌพเฌฐเญ | **`เฌฌ-เฌฐ-เฌเฌพเฌเฌ เฌพเฌฐเญ`** | 7.5 | `เฌเฌพเฌเฌ เฌพเฌฐเญ` | |
|
|
| helminths | **`helminth-s`** | 4.5 | `helminth` | |
|
|
| เฌฎเฌนเฌพเฌฐเฌพเฌทเญเฌเญเฌฐเฌฐ | **`เฌฎเฌนเฌพเฌฐเฌพเฌทเญเฌเญเฌฐ-เฌฐ`** | 4.5 | `เฌฎเฌนเฌพเฌฐเฌพเฌทเญเฌเญเฌฐ` | |
|
|
| เฌชเฌฐเญเฌฌเฌคเฌเญเฌกเฌผเฌฟเฌเฌฐ | **`เฌชเฌฐเญเฌฌเฌคเฌเญเฌกเฌผเฌฟเฌ-เฌฐ`** | 4.5 | `เฌชเฌฐเญเฌฌเฌคเฌเญเฌกเฌผเฌฟเฌ` | |
|
|
| เฌเญเฌทเญเฌฃเฌเฌจเญเฌฆเญเฌฐเฌเญเฌเฌฐ | **`เฌเญเฌทเญเฌฃเฌเฌจเญเฌฆเญเฌฐเฌเญเฌ-เฌฐ`** | 4.5 | `เฌเญเฌทเญเฌฃเฌเฌจเญเฌฆเญเฌฐเฌเญเฌ` | |
|
|
| เฌเฌเญเฌเฌฌเฌฐเญเฌเฌฐ | **`เฌเฌเญเฌเฌฌเฌฐเญเฌ-เฌฐ`** | 4.5 | `เฌเฌเญเฌเฌฌเฌฐเญเฌ` | |
|
|
| inventory | **`inventor-y`** | 4.5 | `inventor` | |
|
|
| เฌเฌธเญเฌธเญเฌฎเญเฌฃเญเฌเฌฐ | **`เฌเฌธเญเฌธเญเฌฎเญเฌฃเญเฌ-เฌฐ`** | 4.5 | `เฌเฌธเญเฌธเญเฌฎเญเฌฃเญเฌ` | |
|
|
| เฌฏเญเฌฆเญเฌงเฌพเฌเญเฌเฌฐ | **`เฌฏเญเฌฆเญเฌงเฌพเฌเญเฌ-เฌฐ`** | 4.5 | `เฌฏเญเฌฆเญเฌงเฌพเฌเญเฌ` | |
|
|
| analytics | **`analytic-s`** | 4.5 | `analytic` | |
|
|
| เฌฐเฌพเญเฌเฌกเฌผเฌผเฌพเฌฐ | **`เฌฐเฌพเญเฌเฌกเฌผเฌผเฌพ-เฌฐ`** | 4.5 | `เฌฐเฌพเญเฌเฌกเฌผเฌผเฌพ` | |
|
|
| เฌธเฌฟเฌเฌฟเฌฐเฌฟเญเฌพเฌฐ | **`เฌธเฌฟเฌเฌฟเฌฐเฌฟเญเฌพ-เฌฐ`** | 4.5 | `เฌธเฌฟเฌเฌฟเฌฐเฌฟเญเฌพ` | |
|
|
| เฌเฌฎเฌพเฌจโเฌเญเฌเญ | **`เฌ-เฌฎ-เฌพเฌจโเฌเญเฌเญ`** | 4.5 | `เฌพเฌจโเฌเญเฌเญ` | |
|
|
| เฌชเญเฌฐเฌพเฌธเฌพเฌฆเฌเฌฟเฌฐ | **`เฌชเญเฌฐเฌพเฌธเฌพเฌฆเฌเฌฟ-เฌฐ`** | 4.5 | `เฌชเญเฌฐเฌพเฌธเฌพเฌฆเฌเฌฟ` | |
|
|
| เฌธเญเฌทเญเฌเฌฟเฌเฌฐเฌฟเฌฌ | **`เฌธเญเฌทเญเฌเฌฟเฌเฌฐเฌฟ-เฌฌ`** | 4.5 | `เฌธเญเฌทเญเฌเฌฟเฌเฌฐเฌฟ` | |
|
|
|
|
|
### 6.6 Linguistic Interpretation |
|
|
|
|
|
> **Automated Insight:** |
|
|
The language Odia 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 |
|
|
|
|
|
 |
|
|
|
|
|
### Production Recommendations |
|
|
|
|
|
| Component | Recommended | Rationale | |
|
|
|-----------|-------------|-----------| |
|
|
| Tokenizer | **64k BPE** | Best compression (4.96x) | |
|
|
| N-gram | **2-gram** | Lowest perplexity (2,236) | |
|
|
| Markov | **Context-4** | Highest predictability (97.6%) | |
|
|
| 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 17:17:27* |
|
|
|