Text Generation
fastText
Achinese
wikilangs
nlp
tokenizer
embeddings
n-gram
markov
wikipedia
feature-extraction
sentence-similarity
tokenization
n-grams
markov-chain
text-mining
babelvec
vocabulous
vocabulary
monolingual
family-austronesian_malay
Instructions to use wikilangs/ace with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use wikilangs/ace with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("wikilangs/ace", "model.bin")) - Notebooks
- Google Colab
- Kaggle
Upload all models and assets for ace (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+6
- README.mdAdded+558
- models/embeddings/monolingual/ace_128d.binAdded+3
- models/embeddings/monolingual/ace_128d.meta.jsonAdded+1
- models/embeddings/monolingual/ace_128d_metadata.jsonAdded+13
- models/embeddings/monolingual/ace_32d.binAdded+3
- models/embeddings/monolingual/ace_32d.meta.jsonAdded+1
- models/embeddings/monolingual/ace_32d_metadata.jsonAdded+13
- models/embeddings/monolingual/ace_64d.binAdded+3
- models/embeddings/monolingual/ace_64d.meta.jsonAdded+1
- models/embeddings/monolingual/ace_64d_metadata.jsonAdded+13
- models/subword_markov/ace_markov_ctx1_subword.parquetAdded+3
- models/subword_markov/ace_markov_ctx1_subword_metadata.jsonAdded+7
- models/subword_markov/ace_markov_ctx2_subword.parquetAdded+3
- models/subword_markov/ace_markov_ctx2_subword_metadata.jsonAdded+7
- models/subword_markov/ace_markov_ctx3_subword.parquetAdded+3
- models/subword_markov/ace_markov_ctx3_subword_metadata.jsonAdded+7
- models/subword_markov/ace_markov_ctx4_subword.parquetAdded+3
- models/subword_markov/ace_markov_ctx4_subword_metadata.jsonAdded+7
- models/subword_ngram/ace_2gram_subword.parquetAdded+3
- models/subword_ngram/ace_2gram_subword_metadata.jsonAdded+7
- models/subword_ngram/ace_3gram_subword.parquetAdded+3
- models/subword_ngram/ace_3gram_subword_metadata.jsonAdded+7
- models/subword_ngram/ace_4gram_subword.parquetAdded+3
- models/subword_ngram/ace_4gram_subword_metadata.jsonAdded+7
- models/tokenizer/ace_tokenizer_16k.modelAdded+3
- models/tokenizer/ace_tokenizer_16k.vocabAdded
- models/tokenizer/ace_tokenizer_32k.modelAdded+3
- models/tokenizer/ace_tokenizer_32k.vocabAdded
- models/tokenizer/ace_tokenizer_64k.modelAdded+3
- models/tokenizer/ace_tokenizer_64k.vocabAdded
- models/tokenizer/ace_tokenizer_8k.modelAdded+3
- models/tokenizer/ace_tokenizer_8k.vocabAdded
- models/vocabulary/ace_vocabulary.parquetAdded+3
- models/vocabulary/ace_vocabulary_metadata.jsonAdded+16
- models/word_markov/ace_markov_ctx1_word.parquetAdded+3
- models/word_markov/ace_markov_ctx1_word_metadata.jsonAdded+7
- models/word_markov/ace_markov_ctx2_word.parquetAdded+3
- models/word_markov/ace_markov_ctx2_word_metadata.jsonAdded+7
- models/word_markov/ace_markov_ctx3_word.parquetAdded+3
- models/word_markov/ace_markov_ctx3_word_metadata.jsonAdded+7
- models/word_markov/ace_markov_ctx4_word.parquetAdded+3
- models/word_markov/ace_markov_ctx4_word_metadata.jsonAdded+7
- models/word_ngram/ace_2gram_word.parquetAdded+3
- models/word_ngram/ace_2gram_word_metadata.jsonAdded+7
- models/word_ngram/ace_3gram_word.parquetAdded+3
- models/word_ngram/ace_3gram_word_metadata.jsonAdded+7
- models/word_ngram/ace_4gram_word.parquetAdded+3
- models/word_ngram/ace_4gram_word_metadata.jsonAdded+7
- visualizations/embedding_isotropy.pngAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404132 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textvisualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -textvisualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -textvisualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -textvisualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -textvisualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -textvisualizations/zipf_law.png filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558---language: acelanguage_name: ACElanguage_family: austronesian_malaytags: - wikilangs - nlp - tokenizer - embeddings - n-gram - markov - wikipedia - monolingual - family-austronesian_malaylicense: mitlibrary_name: wikilangspipeline_tag: feature-extractiondatasets: - omarkamali/wikipedia-monthlydataset_info: name: wikipedia-monthly description: Monthly snapshots of Wikipedia articles across 300+ languagesmetrics: - name: best_compression_ratio type: compression value: 4.814 - name: best_isotropy type: isotropy value: 0.5452 - name: vocabulary_size type: vocab value: 16834generated: 2025-12-27---
# ACE - Wikilangs Models## Comprehensive Research Report & Full Ablation Study
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **ACE** 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-gram)- Markov chains (context of 1, 2, 3 and 4)- Subword N-gram and Markov chains- Embeddings in various sizes and dimensions- 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. Summary & Recommendations](#6-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.989x | 3.94 | 0.2625% | 138,651 || **16k** | 4.326x | 4.27 | 0.2847% | 127,870 || **32k** | 4.588x | 4.53 | 0.3019% | 120,551 || **64k** | 4.814x 🏆 | 4.76 | 0.3168% | 114,908 |
### Tokenization Examples
Below are sample sentences tokenized with each vocabulary size:
**Sample 1:** `Jeremiah "Jerry" O'Connell (1974 – ) nakeuh sidroe aktor asay Amirika Syarikat....`
| Vocab | Tokens | Count ||-------|--------|-------|| 8k | `▁jer em iah ▁" j er ry " ▁o ' ... (+20 more)` | 30 || 16k | `▁jer em iah ▁" j er ry " ▁o ' ... (+19 more)` | 29 || 32k | `▁jer em iah ▁" jerry " ▁o ' con nell ... (+17 more)` | 27 || 64k | `▁jeremiah ▁" jerry " ▁o ' connell ▁( 1 9 ... (+14 more)` | 24 |
**Sample 2:** `Darul Aman nakeuh saboh gampông nyang na lam keucamatan Permata, Kabupaten Bener...`
| Vocab | Tokens | Count ||-------|--------|-------|| 8k | `▁darul ▁aman ▁nakeuh ▁saboh ▁gampông ▁nyang ▁na ▁lam ▁keucamatan ▁permata ... (+10 more)` | 20 || 16k | `▁darul ▁aman ▁nakeuh ▁saboh ▁gampông ▁nyang ▁na ▁lam ▁keucamatan ▁permata ... (+10 more)` | 20 || 32k | `▁darul ▁aman ▁nakeuh ▁saboh ▁gampông ▁nyang ▁na ▁lam ▁keucamatan ▁permata ... (+10 more)` | 20 || 64k | `▁darul ▁aman ▁nakeuh ▁saboh ▁gampông ▁nyang ▁na ▁lam ▁keucamatan ▁permata ... (+10 more)` | 20 |
**Sample 3:** `Nè
Kawan:Gampông di SubulussalamKawan:Longkib, Subulussalam`
| Vocab | Tokens | Count ||-------|--------|-------|| 8k | `▁nè ▁kawan : gampông ▁di ▁subulussalam ▁kawan : longkib , ... (+1 more)` | 11 || 16k | `▁nè ▁kawan : gampông ▁di ▁subulussalam ▁kawan : longkib , ... (+1 more)` | 11 || 32k | `▁nè ▁kawan : gampông ▁di ▁subulussalam ▁kawan : longkib , ... (+1 more)` | 11 || 64k | `▁nè ▁kawan : gampông ▁di ▁subulussalam ▁kawan : longkib , ... (+1 more)` | 11 |
### Key Findings
- **Best Compression:** 64k achieves 4.814x compression- **Lowest UNK Rate:** 8k with 0.2625% 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 | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage ||--------|------------|---------|----------------|------------------|-------------------|| **2-gram** | 936 🏆 | 9.87 | 9,992 | 52.8% | 80.2% || **2-gram** | 261 🏆 | 8.03 | 2,689 | 68.6% | 99.2% || **3-gram** | 1,100 | 10.10 | 14,167 | 50.6% | 79.4% || **3-gram** | 1,398 | 10.45 | 17,865 | 36.2% | 82.1% || **4-gram** | 1,474 | 10.53 | 24,432 | 49.2% | 75.0% || **4-gram** | 4,053 | 11.98 | 71,115 | 25.9% | 65.3% |
### Top 5 N-grams by Size
**2-grams:**
| Rank | N-gram | Count ||------|--------|-------|| 1 | `kawan :` | 14,756 || 2 | `bak laman` | 7,389 || 3 | `gunong nyoe` | 7,388 || 4 | `gampông di` | 6,982 || 5 | `. nè` | 6,946 |
**3-grams:**
| Rank | N-gram | Count ||------|--------|-------|| 1 | `gunong nyoe bak` | 5,541 || 2 | `nè kawan :` | 4,508 || 3 | `. nè kawan` | 4,441 || 4 | `nyoe bak laman` | 3,694 || 5 | `, acèh .` | 3,576 |
**4-grams:**
| Rank | N-gram | Count ||------|--------|-------|| 1 | `. nè kawan :` | 4,441 || 2 | `gunong nyoe bak laman` | 3,694 || 3 | `. lumbôi gampông nyoe` | 3,567 || 4 | `acèh . lumbôi gampông` | 3,564 || 5 | `, acèh . lumbôi` | 3,564 |
### Key Findings
- **Best Perplexity:** 2-gram with 261- **Entropy Trend:** Decreases with larger n-grams (more predictable)- **Coverage:** Top-1000 patterns cover ~65% of corpus- **Recommendation:** 4-gram or 5-gram for best predictive performance
---## 3. Markov Chain Evaluation


### Results
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability ||---------|-------------|------------|------------------|-----------------|----------------|| **1** | 0.7141 | 1.640 | 4.47 | 38,800 | 28.6% || **1** | 1.0130 | 2.018 | 7.11 | 1,076 | 0.0% || **2** | 0.2550 | 1.193 | 1.56 | 172,855 | 74.5% || **2** | 0.8567 | 1.811 | 4.89 | 7,655 | 14.3% || **3** | 0.0849 | 1.061 | 1.15 | 269,187 | 91.5% || **3** | 0.7773 | 1.714 | 3.54 | 37,427 | 22.3% || **4** | 0.0363 🏆 | 1.025 | 1.07 | 309,167 | 96.4% || **4** | 0.5505 🏆 | 1.465 | 2.29 | 132,546 | 44.9% |
### Generated Text Samples
Below are text samples generated from each Markov chain model:
**Context Size 1:**
1. `. kawan : kalimantan seulatan china ) dan la ' el republik indonesia . bab manga`2. `, bah seulamat nibak watèe jitamong lam data cuaca daerah gunong nyoe geuneuk teuka nibak limong`3. `di kabupaten acèh . kawan : lawe sumur nakeuh saboh nanggroe nyang geuseumurat lé shogakkukan .`
**Context Size 2:**
1. `kawan : langsa lama langsa timur ( langsa timur ( langsa timur ) nakeuh sidroe aktor asay`2. `bak laman nasa data matauroe teubiet & teunom di da ' irah bak laman nasa data matauroe`3. `gunong nyoe bak wikidata data cuaca daerah gunong nyoe bak wikidata data cuaca daerah gunong nyoe ba...`
**Context Size 3:**
1. `gunong nyoe bak laman geonames data gunong nyoe bak laman geonames data gunong nyoe bak wikidata dat...`2. `nè kawan : gampông di pidie jaya kawan : meurah dua , pidie jaya . ngon keudèe panté`3. `. nè kawan : gampông di simeulue kawan : teupah teungöh , kabupatèn simeulue , acèh . lumbôi`
**Context Size 4:**
1. `. nè kawan : gampông di acèh rayek kawan : darussalam , acèh rayek . meunurôt riwayat , kuta`2. `gunong nyoe bak laman nasa data matauroe teubiet & teunom di da ' irah bak laman sunrisesunset . com`3. `. lumbôi gampông nyoe lam data peumeurèntah nakeuh 11 . 11 . 03 . 06 . 2040 . nè`
### Key Findings
- **Best Predictability:** Context-4 with 96.4% predictability- **Branching Factor:** Decreases with context size (more deterministic)- **Memory Trade-off:** Larger contexts require more storage (132,546 contexts)- **Recommendation:** Context-3 or Context-4 for text generation
---## 4. Vocabulary Analysis



### Statistics
| Metric | Value ||--------|-------|| Vocabulary Size | 16,834 || Total Tokens | 576,109 || Mean Frequency | 34.22 || Median Frequency | 3 || Frequency Std Dev | 429.12 |
### Most Common Words
| Rank | Word | Frequency ||------|------|-----------|| 1 | di | 21,413 || 2 | nakeuh | 20,825 || 3 | bak | 18,295 || 4 | acèh | 17,701 || 5 | kawan | 14,998 || 6 | nyoe | 13,193 || 7 | gampông | 12,105 || 8 | gunong | 11,874 || 9 | data | 11,091 || 10 | nyang | 9,069 |
### Least Common Words (from vocabulary)
| Rank | Word | Frequency ||------|------|-----------|| 1 | own | 2 || 2 | became | 2 || 3 | influence | 2 || 4 | across | 2 || 5 | represent | 2 || 6 | raising | 2 || 7 | ceremony | 2 || 8 | flown | 2 || 9 | reconstructions | 2 || 10 | jawatimu | 2 |
### Zipf's Law Analysis
| Metric | Value ||--------|-------|| Zipf Coefficient | 1.1968 || R² (Goodness of Fit) | 0.996896 || Adherence Quality | **excellent** |
### Coverage Analysis
| Top N Words | Coverage ||-------------|----------|| Top 100 | 61.4% || Top 1,000 | 83.7% || Top 5,000 | 93.9% || Top 10,000 | 97.4% |
### Key Findings
- **Zipf Compliance:** R²=0.9969 indicates excellent adherence to Zipf's law- **High Frequency Dominance:** Top 100 words cover 61.4% of corpus- **Long Tail:** 6,834 words needed for remaining 2.6% coverage
---## 5. Word Embeddings Evaluation




### Model Comparison
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy ||-------|------------|-----------|----------|----------|----------|| **mono_32d** | 6,710 | 32 | 3.746 | 0.875 | 0.5452 🏆 || **mono_64d** | 6,710 | 64 | 3.801 | 0.865 | 0.1802 || **mono_128d** | 6,710 | 128 | 3.849 | 0.857 | 0.0333 || **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
### Key Findings
- **Best Isotropy:** mono_32d with 0.5452 (more uniform distribution)- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy- **Vocabulary Coverage:** All models cover 6,710 words- **Recommendation:** 100d for balanced semantic capture and efficiency
---## 6. Summary & Recommendations

### Production Recommendations
| Component | Recommended | Rationale ||-----------|-------------|-----------|| Tokenizer | **32k BPE** | Best compression (4.81x) with low UNK rate || N-gram | **5-gram** | Lowest perplexity (261) || Markov | **Context-4** | Highest predictability (96.4%) || 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}, publisher = {HuggingFace}, 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)---*Generated by Wikilangs Models Pipeline*
*Report Date: 2025-12-27 04:33:03*123version https://git-lfs.github.com/spec/v1oid sha256:2046e3b06e8436b76db682bbcbcff52a79ae03beb79e02a5c143feb4aa30e845size 10309819561{"lang": "ace", "dim": 128, "max_seq_len": 512, "is_aligned": false}12345678910111213{ "language": "ace", "dimension": 128, "version": "monolingual", "training_params": { "dim": 128, "min_count": 5, "window": 5, "negative": 5, "epochs": 5 }, "vocab_size": 6710}123version https://git-lfs.github.com/spec/v1oid sha256:865bc53096b61029d31129feb2421f97605a4e1b1fc71a16f09ae2a11377dc30size 2578286761{"lang": "ace", "dim": 32, "max_seq_len": 512, "is_aligned": false}12345678910111213{ "language": "ace", "dimension": 32, "version": "monolingual", "training_params": { "dim": 32, "min_count": 5, "window": 5, "negative": 5, "epochs": 5 }, "vocab_size": 6710}123version https://git-lfs.github.com/spec/v1oid sha256:e407ad194bf72cb228e2d6744a4203d66d913abff54ac372bb7ee406098236c3size 5155464361{"lang": "ace", "dim": 64, "max_seq_len": 512, "is_aligned": false}12345678910111213{ "language": "ace", "dimension": 64, "version": "monolingual", "training_params": { "dim": 64, "min_count": 5, "window": 5, "negative": 5, "epochs": 5 }, "vocab_size": 6710}123version https://git-lfs.github.com/spec/v1oid sha256:994945c1c8459c3679e3e00e0210f36d27f7b92323ac2b7120e6d2efd5d2d126size 618731234567{ "context_size": 1, "variant": "subword", "language": "ace", "unique_contexts": 1076, "total_transitions": 3908719}123version https://git-lfs.github.com/spec/v1oid sha256:c7276dd9bca94f9f03917ff721ff8bf88482f94093dfa6019b62501feb464811size 3124461234567{ "context_size": 2, "variant": "subword", "language": "ace", "unique_contexts": 7655, "total_transitions": 3895602}123version https://git-lfs.github.com/spec/v1oid sha256:fa959fe08fc66a84cabcff2aea19b15147f3ed325699ecddb1034ee1e56ba332size 10204561234567{ "context_size": 3, "variant": "subword", "language": "ace", "unique_contexts": 37427, "total_transitions": 3882485}123version https://git-lfs.github.com/spec/v1oid sha256:0ae4f621898a6636e9b6c7126e341387c206ed707f6ed0fba958ebfe9fc9fbb4size 24701981234567{ "context_size": 4, "variant": "subword", "language": "ace", "unique_contexts": 132546, "total_transitions": 3869368}123version https://git-lfs.github.com/spec/v1oid sha256:4a5e9b80103fed58ac45a1a1dc5018d7bf762a47692e47d327a50b683698f3adsize 365231234567{ "n": 2, "variant": "subword", "language": "ace", "unique_ngrams": 2689, "total_ngrams": 3908719}123version https://git-lfs.github.com/spec/v1oid sha256:8d4bacbf3031b3897258cf39672bf0992a78d116a540da2c29da63b6fe9f5442size 2187631234567{ "n": 3, "variant": "subword", "language": "ace", "unique_ngrams": 17865, "total_ngrams": 3895602}123version https://git-lfs.github.com/spec/v1oid sha256:1535b59d3ffbe8075678699c37413a180fe8e0b10d9a35c6873de3dbef8e23f7size 8441701234567{ "n": 4, "variant": "subword", "language": "ace", "unique_ngrams": 71115, "total_ngrams": 3882485}123version https://git-lfs.github.com/spec/v1oid sha256:e0486832283fb4af24e9a049fd7267139c87b145310f599caa110fb2824272a2size 502107123version https://git-lfs.github.com/spec/v1oid sha256:68ba228d17ef3b883e0874b7c05972fa9a2da79bae088ee77a799ec8ba684117size 780590123version https://git-lfs.github.com/spec/v1oid sha256:6eaefce9e3832566d4b03402b226a5055d116d560a4b6f5c9d79e2f9014b5be2size 1365161123version https://git-lfs.github.com/spec/v1oid sha256:8afabfa554db88a64b6659881e7d87e20f7717006505bdc6bbb199898a6e53a2size 371036123version https://git-lfs.github.com/spec/v1oid sha256:0cdcdc6259363ef9c7e4d76eeee62ba0c6f4da7b3a86d0e338193a83e61e901asize 27959412345678910111213141516{ "language": "ace", "vocabulary_size": 16834, "statistics": { "type_token_ratio": 0.06473562926222352, "coverage": { "top_100": 0.591821547661651, "top_1000": 0.8065606887117759, "top_5000": 0.9046783703966313, "top_10000": 0.9388346884375219 }, "hapax_count": 21877, "hapax_ratio": 0.5651365245020795, "total_documents": 13117 }}123version https://git-lfs.github.com/spec/v1oid sha256:064d6047862cf68da2b906472e39980d8a5b9be018d078f381c09a061281db10size 13417041234567{ "context_size": 1, "variant": "word", "language": "ace", "unique_contexts": 38800, "total_transitions": 712935}123version https://git-lfs.github.com/spec/v1oid sha256:80655ab7d24dd0562f6dd00bf8454b23ac16d8f6145ab9327656208ee794c040size 29605271234567{ "context_size": 2, "variant": "word", "language": "ace", "unique_contexts": 172855, "total_transitions": 699818}123version https://git-lfs.github.com/spec/v1oid sha256:c713caa0041630e45e31c03c7212c262abebdd3fc3bd44d99b0c957bc7aa8187size 42050221234567{ "context_size": 3, "variant": "word", "language": "ace", "unique_contexts": 269187, "total_transitions": 686702}123version https://git-lfs.github.com/spec/v1oid sha256:26e6fd733dee534e51fd8ce9dac5ca06b9de38d8fcabd817bd83cb1b54510e03size 49168101234567{ "context_size": 4, "variant": "word", "language": "ace", "unique_contexts": 309167, "total_transitions": 673586}123version https://git-lfs.github.com/spec/v1oid sha256:86dcd174e63bb4d8107dc7bd51314f22ac64b7d467c5f885bf2addb1e9905a3fsize 1368291234567{ "n": 2, "variant": "word", "language": "ace", "unique_ngrams": 9992, "total_ngrams": 712935}123version https://git-lfs.github.com/spec/v1oid sha256:97bce04690e426c1a9f5c64e762c9e3a260299f30e22a6cee8f161a141a80787size 2095061234567{ "n": 3, "variant": "word", "language": "ace", "unique_ngrams": 14167, "total_ngrams": 699818}123version https://git-lfs.github.com/spec/v1oid sha256:31a6dcf0f123c74ce564b8bc022d3cfcb9f30465f679ad41e38919ddffdd61c9size 3688751234567{ "n": 4, "variant": "word", "language": "ace", "unique_ngrams": 24432, "total_ngrams": 686702}.gitattributes+6
README.mdAdded+558
models/embeddings/monolingual/ace_128d.binAdded+3
models/embeddings/monolingual/ace_128d.meta.jsonAdded+1
models/embeddings/monolingual/ace_128d_metadata.jsonAdded+13
models/embeddings/monolingual/ace_32d.binAdded+3
models/embeddings/monolingual/ace_32d.meta.jsonAdded+1
models/embeddings/monolingual/ace_32d_metadata.jsonAdded+13
models/embeddings/monolingual/ace_64d.binAdded+3
models/embeddings/monolingual/ace_64d.meta.jsonAdded+1
models/embeddings/monolingual/ace_64d_metadata.jsonAdded+13
models/subword_markov/ace_markov_ctx1_subword.parquetAdded+3
models/subword_markov/ace_markov_ctx1_subword_metadata.jsonAdded+7
models/subword_markov/ace_markov_ctx2_subword.parquetAdded+3
models/subword_markov/ace_markov_ctx2_subword_metadata.jsonAdded+7
models/subword_markov/ace_markov_ctx3_subword.parquetAdded+3
models/subword_markov/ace_markov_ctx3_subword_metadata.jsonAdded+7
models/subword_markov/ace_markov_ctx4_subword.parquetAdded+3
models/subword_markov/ace_markov_ctx4_subword_metadata.jsonAdded+7
models/subword_ngram/ace_2gram_subword.parquetAdded+3
models/subword_ngram/ace_2gram_subword_metadata.jsonAdded+7
models/subword_ngram/ace_3gram_subword.parquetAdded+3
models/subword_ngram/ace_3gram_subword_metadata.jsonAdded+7
models/subword_ngram/ace_4gram_subword.parquetAdded+3
models/subword_ngram/ace_4gram_subword_metadata.jsonAdded+7
models/tokenizer/ace_tokenizer_16k.modelAdded+3
models/tokenizer/ace_tokenizer_16k.vocabAdded
models/tokenizer/ace_tokenizer_32k.modelAdded+3
models/tokenizer/ace_tokenizer_32k.vocabAdded
models/tokenizer/ace_tokenizer_64k.modelAdded+3
models/tokenizer/ace_tokenizer_64k.vocabAdded
models/tokenizer/ace_tokenizer_8k.modelAdded+3
models/tokenizer/ace_tokenizer_8k.vocabAdded
models/vocabulary/ace_vocabulary.parquetAdded+3
models/vocabulary/ace_vocabulary_metadata.jsonAdded+16
models/word_markov/ace_markov_ctx1_word.parquetAdded+3
models/word_markov/ace_markov_ctx1_word_metadata.jsonAdded+7
models/word_markov/ace_markov_ctx2_word.parquetAdded+3
models/word_markov/ace_markov_ctx2_word_metadata.jsonAdded+7
models/word_markov/ace_markov_ctx3_word.parquetAdded+3
models/word_markov/ace_markov_ctx3_word_metadata.jsonAdded+7
models/word_markov/ace_markov_ctx4_word.parquetAdded+3
models/word_markov/ace_markov_ctx4_word_metadata.jsonAdded+7
models/word_ngram/ace_2gram_word.parquetAdded+3
models/word_ngram/ace_2gram_word_metadata.jsonAdded+7
models/word_ngram/ace_3gram_word.parquetAdded+3
models/word_ngram/ace_3gram_word_metadata.jsonAdded+7
models/word_ngram/ace_4gram_word.parquetAdded+3
models/word_ngram/ace_4gram_word_metadata.jsonAdded+7
visualizations/embedding_isotropy.pngAdded
