Upload all models and assets for anp (20251201)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +6 -0
- README.md +557 -0
- models/embeddings/monolingual/anp_128d.bin +3 -0
- models/embeddings/monolingual/anp_128d.meta.json +1 -0
- models/embeddings/monolingual/anp_128d_metadata.json +13 -0
- models/embeddings/monolingual/anp_32d.bin +3 -0
- models/embeddings/monolingual/anp_32d.meta.json +1 -0
- models/embeddings/monolingual/anp_32d_metadata.json +13 -0
- models/embeddings/monolingual/anp_64d.bin +3 -0
- models/embeddings/monolingual/anp_64d.meta.json +1 -0
- models/embeddings/monolingual/anp_64d_metadata.json +13 -0
- models/subword_markov/anp_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/anp_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/anp_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/anp_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/anp_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/anp_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/anp_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/anp_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/anp_2gram_subword.parquet +3 -0
- models/subword_ngram/anp_2gram_subword_metadata.json +7 -0
- models/subword_ngram/anp_3gram_subword.parquet +3 -0
- models/subword_ngram/anp_3gram_subword_metadata.json +7 -0
- models/subword_ngram/anp_4gram_subword.parquet +3 -0
- models/subword_ngram/anp_4gram_subword_metadata.json +7 -0
- models/tokenizer/anp_tokenizer_16k.model +3 -0
- models/tokenizer/anp_tokenizer_16k.vocab +0 -0
- models/tokenizer/anp_tokenizer_32k.model +3 -0
- models/tokenizer/anp_tokenizer_32k.vocab +0 -0
- models/tokenizer/anp_tokenizer_64k.model +3 -0
- models/tokenizer/anp_tokenizer_64k.vocab +0 -0
- models/tokenizer/anp_tokenizer_8k.model +3 -0
- models/tokenizer/anp_tokenizer_8k.vocab +0 -0
- models/vocabulary/anp_vocabulary.parquet +3 -0
- models/vocabulary/anp_vocabulary_metadata.json +16 -0
- models/word_markov/anp_markov_ctx1_word.parquet +3 -0
- models/word_markov/anp_markov_ctx1_word_metadata.json +7 -0
- models/word_markov/anp_markov_ctx2_word.parquet +3 -0
- models/word_markov/anp_markov_ctx2_word_metadata.json +7 -0
- models/word_markov/anp_markov_ctx3_word.parquet +3 -0
- models/word_markov/anp_markov_ctx3_word_metadata.json +7 -0
- models/word_markov/anp_markov_ctx4_word.parquet +3 -0
- models/word_markov/anp_markov_ctx4_word_metadata.json +7 -0
- models/word_ngram/anp_2gram_word.parquet +3 -0
- models/word_ngram/anp_2gram_word_metadata.json +7 -0
- models/word_ngram/anp_3gram_word.parquet +3 -0
- models/word_ngram/anp_3gram_word_metadata.json +7 -0
- models/word_ngram/anp_4gram_word.parquet +3 -0
- models/word_ngram/anp_4gram_word_metadata.json +7 -0
- visualizations/embedding_isotropy.png +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/tsne_words.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/zipf_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: anp
|
| 3 |
+
language_name: ANP
|
| 4 |
+
language_family: indoaryan_central
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- monolingual
|
| 14 |
+
- family-indoaryan_central
|
| 15 |
+
license: mit
|
| 16 |
+
library_name: wikilangs
|
| 17 |
+
pipeline_tag: feature-extraction
|
| 18 |
+
datasets:
|
| 19 |
+
- omarkamali/wikipedia-monthly
|
| 20 |
+
dataset_info:
|
| 21 |
+
name: wikipedia-monthly
|
| 22 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 23 |
+
metrics:
|
| 24 |
+
- name: best_compression_ratio
|
| 25 |
+
type: compression
|
| 26 |
+
value: 4.233
|
| 27 |
+
- name: best_isotropy
|
| 28 |
+
type: isotropy
|
| 29 |
+
value: 0.8322
|
| 30 |
+
- name: vocabulary_size
|
| 31 |
+
type: vocab
|
| 32 |
+
value: 9567
|
| 33 |
+
generated: 2025-12-27
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# ANP - Wikilangs Models
|
| 37 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 38 |
+
|
| 39 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **ANP** Wikipedia data.
|
| 40 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 41 |
+
|
| 42 |
+
## 📋 Repository Contents
|
| 43 |
+
|
| 44 |
+
### Models & Assets
|
| 45 |
+
|
| 46 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 47 |
+
- N-gram models (2, 3, 4-gram)
|
| 48 |
+
- Markov chains (context of 1, 2, 3 and 4)
|
| 49 |
+
- Subword N-gram and Markov chains
|
| 50 |
+
- Embeddings in various sizes and dimensions
|
| 51 |
+
- Language Vocabulary
|
| 52 |
+
- Language Statistics
|
| 53 |
+

|
| 54 |
+
|
| 55 |
+
### Analysis and Evaluation
|
| 56 |
+
|
| 57 |
+
- [1. Tokenizer Evaluation](#1-tokenizer-evaluation)
|
| 58 |
+
- [2. N-gram Model Evaluation](#2-n-gram-model-evaluation)
|
| 59 |
+
- [3. Markov Chain Evaluation](#3-markov-chain-evaluation)
|
| 60 |
+
- [4. Vocabulary Analysis](#4-vocabulary-analysis)
|
| 61 |
+
- [5. Word Embeddings Evaluation](#5-word-embeddings-evaluation)
|
| 62 |
+
- [6. Summary & Recommendations](#6-summary--recommendations)
|
| 63 |
+
- [Metrics Glossary](#appendix-metrics-glossary--interpretation-guide)
|
| 64 |
+
- [Visualizations Index](#visualizations-index)
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
## 1. Tokenizer Evaluation
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
|
| 71 |
+
### Results
|
| 72 |
+
|
| 73 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 74 |
+
|------------|-------------|---------------|----------|--------------|
|
| 75 |
+
| **8k** | 3.431x | 3.37 | 0.0938% | 441,405 |
|
| 76 |
+
| **16k** | 3.755x | 3.69 | 0.1026% | 403,338 |
|
| 77 |
+
| **32k** | 4.015x | 3.95 | 0.1098% | 377,196 |
|
| 78 |
+
| **64k** | 4.233x 🏆 | 4.16 | 0.1157% | 357,719 |
|
| 79 |
+
|
| 80 |
+
### Tokenization Examples
|
| 81 |
+
|
| 82 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 83 |
+
|
| 84 |
+
**Sample 1:** `मंजूषा कला अंगप्रदेश के एक बहुचर्चित लोकगाथा बिहुला विषहरी पर आधारित छै।`
|
| 85 |
+
|
| 86 |
+
| Vocab | Tokens | Count |
|
| 87 |
+
|-------|--------|-------|
|
| 88 |
+
| 8k | `▁म ंज ूष ा ▁कला ▁अंग प्र देश ▁के ▁एक ... (+16 more)` | 26 |
|
| 89 |
+
| 16k | `▁मंज ूष ा ▁कला ▁अंग प्रदेश ▁के ▁एक ▁बहु च ... (+13 more)` | 23 |
|
| 90 |
+
| 32k | `▁मंज ूष ा ▁कला ▁अंगप्रदेश ▁के ▁एक ▁बहु चर्चित ▁लोकगाथा ... (+7 more)` | 17 |
|
| 91 |
+
| 64k | `▁मंजूषा ▁कला ▁अंगप्रदेश ▁के ▁एक ▁बहुचर्चित ▁लोकगाथा ▁बिहुला ▁विष हरी ... (+4 more)` | 14 |
|
| 92 |
+
|
| 93 |
+
**Sample 2:** `कार्बन के रासायनिक तत्व छेकै। इ ठोस अवस्था मँ पैलौ जाय वाला अधातु छेकै।
|
| 94 |
+
|
| 95 |
+
एकरो दे...`
|
| 96 |
+
|
| 97 |
+
| Vocab | Tokens | Count |
|
| 98 |
+
|-------|--------|-------|
|
| 99 |
+
| 8k | `▁कार्बन ▁के ▁रासायनिक ▁तत्व ▁छेकै । ▁इ ▁ठोस ▁अवस्था ▁मँ ... (+13 more)` | 23 |
|
| 100 |
+
| 16k | `▁कार्बन ▁के ▁रासायनिक ▁तत्व ▁छेकै । ▁इ ▁ठोस ▁अवस्था ▁मँ ... (+11 more)` | 21 |
|
| 101 |
+
| 32k | `▁कार्बन ▁के ▁रासायनिक ▁तत्व ▁छेकै । ▁इ ▁ठोस ▁अवस्था ▁मँ ... (+11 more)` | 21 |
|
| 102 |
+
| 64k | `▁कार्बन ▁के ▁रासायनिक ▁तत्व ▁छेकै । ▁इ ▁ठोस ▁अवस्था ▁मँ ... (+11 more)` | 21 |
|
| 103 |
+
|
| 104 |
+
**Sample 3:** `ब्रह्मपुत्र
|
| 105 |
+
श्रेणी:नद्दी`
|
| 106 |
+
|
| 107 |
+
| Vocab | Tokens | Count |
|
| 108 |
+
|-------|--------|-------|
|
| 109 |
+
| 8k | `▁ब्रह्म पुत्र ▁श्रेणी : न द्दी` | 6 |
|
| 110 |
+
| 16k | `▁ब्रह्मपुत्र ▁श्रेणी : न द्दी` | 5 |
|
| 111 |
+
| 32k | `▁ब्रह्मपुत्र ▁श्रेणी : नद्दी` | 4 |
|
| 112 |
+
| 64k | `▁ब्रह्मपुत्र ▁श्रेणी : नद्दी` | 4 |
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
### Key Findings
|
| 116 |
+
|
| 117 |
+
- **Best Compression:** 64k achieves 4.233x compression
|
| 118 |
+
- **Lowest UNK Rate:** 8k with 0.0938% unknown tokens
|
| 119 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 120 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
## 2. N-gram Model Evaluation
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
|
| 129 |
+
### Results
|
| 130 |
+
|
| 131 |
+
| N-gram | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 132 |
+
|--------|------------|---------|----------------|------------------|-------------------|
|
| 133 |
+
| **2-gram** | 1,473 🏆 | 10.52 | 19,190 | 39.0% | 79.4% |
|
| 134 |
+
| **2-gram** | 611 🏆 | 9.26 | 5,088 | 50.3% | 92.6% |
|
| 135 |
+
| **3-gram** | 10,511 | 13.36 | 71,690 | 14.3% | 44.9% |
|
| 136 |
+
| **3-gram** | 4,774 | 12.22 | 39,446 | 20.6% | 57.0% |
|
| 137 |
+
| **4-gram** | 37,995 | 15.21 | 200,757 | 8.2% | 28.1% |
|
| 138 |
+
| **4-gram** | 20,752 | 14.34 | 155,528 | 10.6% | 34.2% |
|
| 139 |
+
|
| 140 |
+
### Top 5 N-grams by Size
|
| 141 |
+
|
| 142 |
+
**2-grams:**
|
| 143 |
+
|
| 144 |
+
| Rank | N-gram | Count |
|
| 145 |
+
|------|--------|-------|
|
| 146 |
+
| 1 | `क े` | 45,157 |
|
| 147 |
+
| 2 | `ा र` | 27,669 |
|
| 148 |
+
| 3 | `् र` | 26,110 |
|
| 149 |
+
| 4 | `ि क` | 21,854 |
|
| 150 |
+
| 5 | `य ा` | 21,115 |
|
| 151 |
+
|
| 152 |
+
**3-grams:**
|
| 153 |
+
|
| 154 |
+
| Rank | N-gram | Count |
|
| 155 |
+
|------|--------|-------|
|
| 156 |
+
| 1 | `म े ं` | 15,079 |
|
| 157 |
+
| 2 | `ि य ा` | 9,483 |
|
| 158 |
+
| 3 | `छ ै ।` | 7,624 |
|
| 159 |
+
| 4 | `् य ा` | 7,466 |
|
| 160 |
+
| 5 | `ा क े` | 7,405 |
|
| 161 |
+
|
| 162 |
+
**4-grams:**
|
| 163 |
+
|
| 164 |
+
| Rank | N-gram | Count |
|
| 165 |
+
|------|--------|-------|
|
| 166 |
+
| 1 | `भ ा ष ा` | 4,716 |
|
| 167 |
+
| 2 | `प ् र ा` | 3,403 |
|
| 168 |
+
| 3 | `क े र ौ` | 3,367 |
|
| 169 |
+
| 4 | `ा ह ै ।` | 3,140 |
|
| 170 |
+
| 5 | `ै , ज े` | 3,079 |
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
### Key Findings
|
| 174 |
+
|
| 175 |
+
- **Best Perplexity:** 2-gram with 611
|
| 176 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 177 |
+
- **Coverage:** Top-1000 patterns cover ~34% of corpus
|
| 178 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 179 |
+
|
| 180 |
+
---
|
| 181 |
+
## 3. Markov Chain Evaluation
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+
### Results
|
| 188 |
+
|
| 189 |
+
| Context | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 190 |
+
|---------|-------------|------------|------------------|-----------------|----------------|
|
| 191 |
+
| **1** | 0.6716 | 1.593 | 6.02 | 20,822 | 32.8% |
|
| 192 |
+
| **1** | 1.3840 | 2.610 | 13.82 | 755 | 0.0% |
|
| 193 |
+
| **2** | 0.3861 | 1.307 | 2.68 | 125,337 | 61.4% |
|
| 194 |
+
| **2** | 1.1859 | 2.275 | 7.36 | 10,432 | 0.0% |
|
| 195 |
+
| **3** | 0.3331 | 1.260 | 2.02 | 335,781 | 66.7% |
|
| 196 |
+
| **3** | 0.8363 | 1.785 | 3.79 | 76,706 | 16.4% |
|
| 197 |
+
| **4** | 0.2418 🏆 | 1.182 | 1.55 | 678,169 | 75.8% |
|
| 198 |
+
| **4** | 0.5341 🏆 | 1.448 | 2.27 | 290,862 | 46.6% |
|
| 199 |
+
|
| 200 |
+
### Generated Text Samples
|
| 201 |
+
|
| 202 |
+
Below are text samples generated from each Markov chain model:
|
| 203 |
+
|
| 204 |
+
**Context Size 1:**
|
| 205 |
+
|
| 206 |
+
1. `ा ण ी कम ी ] स ा ) घ ो क ृ त ् रभ`
|
| 207 |
+
2. `् डल स ं ख ् ध ा य ु न े ण अक ा प`
|
| 208 |
+
3. `े म ँ स ू प ि त च ा जन ा न ह ै ज`
|
| 209 |
+
|
| 210 |
+
**Context Size 2:**
|
| 211 |
+
|
| 212 |
+
1. `क े प ु स ् थ अलग करत ी थ ी , ड ा इऑक ्`
|
| 213 |
+
2. `ा र अध ि न े अध ि क ा ल ा म द ि य ा`
|
| 214 |
+
3. `् र ो स ि मड े ग ा न , 2006 क ो खतर े क`
|
| 215 |
+
|
| 216 |
+
**Context Size 3:**
|
| 217 |
+
|
| 218 |
+
1. `म े ं क े द ु मक ा स ॑ ई बड ़ ऽ क ् ष`
|
| 219 |
+
2. `ि य ा च ि त ह ै और यह ी ं भ ी उनक े प ा`
|
| 220 |
+
3. `् य ा 1484 छ े ल ै । २८ नवम ् बर 1889 क ो और तन`
|
| 221 |
+
|
| 222 |
+
**Context Size 4:**
|
| 223 |
+
|
| 224 |
+
1. `भ ा ष ा स ि न ी क स ं स ् थ ा प ि त करन`
|
| 225 |
+
2. `प ् र ा प ् त छ ै । शब ् द - स ा धन इत ि`
|
| 226 |
+
3. `क े र ौ व ि भ ि न ् न - भ ि न ् न प ्`
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
### Key Findings
|
| 230 |
+
|
| 231 |
+
- **Best Predictability:** Context-4 with 75.8% predictability
|
| 232 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 233 |
+
- **Memory Trade-off:** Larger contexts require more storage (290,862 contexts)
|
| 234 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 235 |
+
|
| 236 |
+
---
|
| 237 |
+
## 4. Vocabulary Analysis
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
|
| 245 |
+
### Statistics
|
| 246 |
+
|
| 247 |
+
| Metric | Value |
|
| 248 |
+
|--------|-------|
|
| 249 |
+
| Vocabulary Size | 9,567 |
|
| 250 |
+
| Total Tokens | 1,448,534 |
|
| 251 |
+
| Mean Frequency | 151.41 |
|
| 252 |
+
| Median Frequency | 4 |
|
| 253 |
+
| Frequency Std Dev | 2528.69 |
|
| 254 |
+
|
| 255 |
+
### Most Common Words
|
| 256 |
+
|
| 257 |
+
| Rank | Word | Frequency |
|
| 258 |
+
|------|------|-----------|
|
| 259 |
+
| 1 | क | 136,096 |
|
| 260 |
+
| 2 | र | 92,258 |
|
| 261 |
+
| 3 | स | 77,006 |
|
| 262 |
+
| 4 | म | 59,103 |
|
| 263 |
+
| 5 | त | 56,261 |
|
| 264 |
+
| 6 | न | 54,426 |
|
| 265 |
+
| 7 | य | 53,099 |
|
| 266 |
+
| 8 | ल | 48,343 |
|
| 267 |
+
| 9 | प | 45,425 |
|
| 268 |
+
| 10 | ह | 44,325 |
|
| 269 |
+
|
| 270 |
+
### Least Common Words (from vocabulary)
|
| 271 |
+
|
| 272 |
+
| Rank | Word | Frequency |
|
| 273 |
+
|------|------|-----------|
|
| 274 |
+
| 1 | css | 2 |
|
| 275 |
+
| 2 | zeros | 2 |
|
| 276 |
+
| 3 | ignored | 2 |
|
| 277 |
+
| 4 | dmy | 2 |
|
| 278 |
+
| 5 | mdy | 2 |
|
| 279 |
+
| 6 | paren | 2 |
|
| 280 |
+
| 7 | breaking | 2 |
|
| 281 |
+
| 8 | inserted | 2 |
|
| 282 |
+
| 9 | values | 2 |
|
| 283 |
+
| 10 | separator | 2 |
|
| 284 |
+
|
| 285 |
+
### Zipf's Law Analysis
|
| 286 |
+
|
| 287 |
+
| Metric | Value |
|
| 288 |
+
|--------|-------|
|
| 289 |
+
| Zipf Coefficient | 1.4601 |
|
| 290 |
+
| R² (Goodness of Fit) | 0.993188 |
|
| 291 |
+
| Adherence Quality | **excellent** |
|
| 292 |
+
|
| 293 |
+
### Coverage Analysis
|
| 294 |
+
|
| 295 |
+
| Top N Words | Coverage |
|
| 296 |
+
|-------------|----------|
|
| 297 |
+
| Top 100 | 82.8% |
|
| 298 |
+
| Top 1,000 | 96.2% |
|
| 299 |
+
| Top 5,000 | 99.3% |
|
| 300 |
+
| Top 10,000 | 0.0% |
|
| 301 |
+
|
| 302 |
+
### Key Findings
|
| 303 |
+
|
| 304 |
+
- **Zipf Compliance:** R²=0.9932 indicates excellent adherence to Zipf's law
|
| 305 |
+
- **High Frequency Dominance:** Top 100 words cover 82.8% of corpus
|
| 306 |
+
- **Long Tail:** -433 words needed for remaining 100.0% coverage
|
| 307 |
+
|
| 308 |
+
---
|
| 309 |
+
## 5. Word Embeddings Evaluation
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
|
| 317 |
+

|
| 318 |
+
|
| 319 |
+
### Model Comparison
|
| 320 |
+
|
| 321 |
+
| Model | Vocab Size | Dimension | Avg Norm | Std Norm | Isotropy |
|
| 322 |
+
|-------|------------|-----------|----------|----------|----------|
|
| 323 |
+
| **mono_32d** | 12,167 | 32 | 3.479 | 0.971 | 0.8322 🏆 |
|
| 324 |
+
| **mono_64d** | 12,167 | 64 | 3.809 | 0.905 | 0.7196 |
|
| 325 |
+
| **mono_128d** | 12,167 | 128 | 3.964 | 0.866 | 0.3647 |
|
| 326 |
+
| **embeddings_enhanced** | 0 | 0 | 0.000 | 0.000 | 0.0000 |
|
| 327 |
+
|
| 328 |
+
### Key Findings
|
| 329 |
+
|
| 330 |
+
- **Best Isotropy:** mono_32d with 0.8322 (more uniform distribution)
|
| 331 |
+
- **Dimension Trade-off:** Higher dimensions capture more semantics but reduce isotropy
|
| 332 |
+
- **Vocabulary Coverage:** All models cover 12,167 words
|
| 333 |
+
- **Recommendation:** 100d for balanced semantic capture and efficiency
|
| 334 |
+
|
| 335 |
+
---
|
| 336 |
+
## 6. Summary & Recommendations
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
|
| 340 |
+
### Production Recommendations
|
| 341 |
+
|
| 342 |
+
| Component | Recommended | Rationale |
|
| 343 |
+
|-----------|-------------|-----------|
|
| 344 |
+
| Tokenizer | **32k BPE** | Best compression (4.23x) with low UNK rate |
|
| 345 |
+
| N-gram | **5-gram** | Lowest perplexity (611) |
|
| 346 |
+
| Markov | **Context-4** | Highest predictability (75.8%) |
|
| 347 |
+
| Embeddings | **100d** | Balanced semantic capture and isotropy |
|
| 348 |
+
|
| 349 |
+
---
|
| 350 |
+
## Appendix: Metrics Glossary & Interpretation Guide
|
| 351 |
+
|
| 352 |
+
This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
|
| 353 |
+
|
| 354 |
+
### Tokenizer Metrics
|
| 355 |
+
|
| 356 |
+
**Compression Ratio**
|
| 357 |
+
> *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
|
| 358 |
+
>
|
| 359 |
+
> *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.
|
| 360 |
+
>
|
| 361 |
+
> *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
|
| 362 |
+
|
| 363 |
+
**Average Token Length (Fertility)**
|
| 364 |
+
> *Definition:* Mean number of characters per token produced by the tokenizer.
|
| 365 |
+
>
|
| 366 |
+
> *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.
|
| 367 |
+
>
|
| 368 |
+
> *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
|
| 369 |
+
|
| 370 |
+
**Unknown Token Rate (OOV Rate)**
|
| 371 |
+
> *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
|
| 372 |
+
>
|
| 373 |
+
> *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
|
| 374 |
+
>
|
| 375 |
+
> *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
|
| 376 |
+
|
| 377 |
+
### N-gram Model Metrics
|
| 378 |
+
|
| 379 |
+
**Perplexity**
|
| 380 |
+
> *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
|
| 381 |
+
>
|
| 382 |
+
> *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.
|
| 383 |
+
>
|
| 384 |
+
> *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
|
| 385 |
+
|
| 386 |
+
**Entropy**
|
| 387 |
+
> *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
|
| 388 |
+
>
|
| 389 |
+
> *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
|
| 390 |
+
>
|
| 391 |
+
> *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
|
| 392 |
+
|
| 393 |
+
**Coverage (Top-K)**
|
| 394 |
+
> *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
|
| 395 |
+
>
|
| 396 |
+
> *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
|
| 397 |
+
>
|
| 398 |
+
> *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
|
| 399 |
+
|
| 400 |
+
### Markov Chain Metrics
|
| 401 |
+
|
| 402 |
+
**Average Entropy**
|
| 403 |
+
> *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
|
| 404 |
+
>
|
| 405 |
+
> *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).
|
| 406 |
+
>
|
| 407 |
+
> *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
|
| 408 |
+
|
| 409 |
+
**Branching Factor**
|
| 410 |
+
> *Definition:* Average number of unique next tokens observed for each context.
|
| 411 |
+
>
|
| 412 |
+
> *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
|
| 413 |
+
>
|
| 414 |
+
> *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
|
| 415 |
+
|
| 416 |
+
**Predictability**
|
| 417 |
+
> *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
|
| 418 |
+
>
|
| 419 |
+
> *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
|
| 420 |
+
>
|
| 421 |
+
> *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
|
| 422 |
+
|
| 423 |
+
### Vocabulary & Zipf's Law Metrics
|
| 424 |
+
|
| 425 |
+
**Zipf's Coefficient**
|
| 426 |
+
> *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
|
| 427 |
+
>
|
| 428 |
+
> *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
|
| 429 |
+
>
|
| 430 |
+
> *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
|
| 431 |
+
|
| 432 |
+
**R² (Coefficient of Determination)**
|
| 433 |
+
> *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
|
| 434 |
+
>
|
| 435 |
+
> *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
|
| 436 |
+
>
|
| 437 |
+
> *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
|
| 438 |
+
|
| 439 |
+
**Vocabulary Coverage**
|
| 440 |
+
> *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
|
| 441 |
+
>
|
| 442 |
+
> *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
|
| 443 |
+
>
|
| 444 |
+
> *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
|
| 445 |
+
|
| 446 |
+
### Word Embedding Metrics
|
| 447 |
+
|
| 448 |
+
**Isotropy**
|
| 449 |
+
> *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
|
| 450 |
+
>
|
| 451 |
+
> *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
|
| 452 |
+
>
|
| 453 |
+
> *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.
|
| 454 |
+
|
| 455 |
+
**Average Norm**
|
| 456 |
+
> *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
|
| 457 |
+
>
|
| 458 |
+
> *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
|
| 459 |
+
>
|
| 460 |
+
> *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
|
| 461 |
+
|
| 462 |
+
**Cosine Similarity**
|
| 463 |
+
> *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
|
| 464 |
+
>
|
| 465 |
+
> *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
|
| 466 |
+
>
|
| 467 |
+
> *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
|
| 468 |
+
|
| 469 |
+
**t-SNE Visualization**
|
| 470 |
+
> *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
|
| 471 |
+
>
|
| 472 |
+
> *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
|
| 473 |
+
>
|
| 474 |
+
> *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
|
| 475 |
+
|
| 476 |
+
### General Interpretation Guidelines
|
| 477 |
+
|
| 478 |
+
1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
|
| 479 |
+
2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
|
| 480 |
+
3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
|
| 481 |
+
4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
|
| 482 |
+
5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
### Visualizations Index
|
| 486 |
+
|
| 487 |
+
| Visualization | Description |
|
| 488 |
+
|---------------|-------------|
|
| 489 |
+
| Tokenizer Compression | Compression ratios by vocabulary size |
|
| 490 |
+
| Tokenizer Fertility | Average token length by vocabulary |
|
| 491 |
+
| Tokenizer OOV | Unknown token rates |
|
| 492 |
+
| Tokenizer Total Tokens | Total tokens by vocabulary |
|
| 493 |
+
| N-gram Perplexity | Perplexity by n-gram size |
|
| 494 |
+
| N-gram Entropy | Entropy by n-gram size |
|
| 495 |
+
| N-gram Coverage | Top pattern coverage |
|
| 496 |
+
| N-gram Unique | Unique n-gram counts |
|
| 497 |
+
| Markov Entropy | Entropy by context size |
|
| 498 |
+
| Markov Branching | Branching factor by context |
|
| 499 |
+
| Markov Contexts | Unique context counts |
|
| 500 |
+
| Zipf's Law | Frequency-rank distribution with fit |
|
| 501 |
+
| Vocab Frequency | Word frequency distribution |
|
| 502 |
+
| Top 20 Words | Most frequent words |
|
| 503 |
+
| Vocab Coverage | Cumulative coverage curve |
|
| 504 |
+
| Embedding Isotropy | Vector space uniformity |
|
| 505 |
+
| Embedding Norms | Vector magnitude distribution |
|
| 506 |
+
| Embedding Similarity | Word similarity heatmap |
|
| 507 |
+
| Nearest Neighbors | Similar words for key terms |
|
| 508 |
+
| t-SNE Words | 2D word embedding visualization |
|
| 509 |
+
| t-SNE Sentences | 2D sentence embedding visualization |
|
| 510 |
+
| Position Encoding | Encoding method comparison |
|
| 511 |
+
| Model Sizes | Storage requirements |
|
| 512 |
+
| Performance Dashboard | Comprehensive performance overview |
|
| 513 |
+
|
| 514 |
+
---
|
| 515 |
+
## About This Project
|
| 516 |
+
|
| 517 |
+
### Data Source
|
| 518 |
+
|
| 519 |
+
Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
|
| 520 |
+
|
| 521 |
+
### Project
|
| 522 |
+
|
| 523 |
+
A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
|
| 524 |
+
|
| 525 |
+
### Maintainer
|
| 526 |
+
|
| 527 |
+
[Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
|
| 528 |
+
|
| 529 |
+
### Citation
|
| 530 |
+
|
| 531 |
+
If you use these models in your research, please cite:
|
| 532 |
+
|
| 533 |
+
```bibtex
|
| 534 |
+
@misc{wikilangs2025,
|
| 535 |
+
author = {Kamali, Omar},
|
| 536 |
+
title = {Wikilangs: Open NLP Models for Wikipedia Languages},
|
| 537 |
+
year = {2025},
|
| 538 |
+
publisher = {HuggingFace},
|
| 539 |
+
url = {https://huggingface.co/wikilangs}
|
| 540 |
+
institution = {Omneity Labs}
|
| 541 |
+
}
|
| 542 |
+
```
|
| 543 |
+
|
| 544 |
+
### License
|
| 545 |
+
|
| 546 |
+
MIT License - Free for academic and commercial use.
|
| 547 |
+
|
| 548 |
+
### Links
|
| 549 |
+
|
| 550 |
+
- 🌐 Website: [wikilangs.org](https://wikilangs.org)
|
| 551 |
+
- 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
|
| 552 |
+
- 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
|
| 553 |
+
- 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
|
| 554 |
+
---
|
| 555 |
+
*Generated by Wikilangs Models Pipeline*
|
| 556 |
+
|
| 557 |
+
*Report Date: 2025-12-27 06:08:15*
|
models/embeddings/monolingual/anp_128d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e5037926f606a5261779717c539c9dbbd1ae5b5239b116508b41fe3616febae
|
| 3 |
+
size 1036770452
|
models/embeddings/monolingual/anp_128d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "anp", "dim": 128, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/anp_128d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "anp",
|
| 3 |
+
"dimension": 128,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 128,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 12167
|
| 13 |
+
}
|
models/embeddings/monolingual/anp_32d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd35312939967d31d7d904a9ca1a76cbbdcc4c44fad15183039efe9bf32cbdd2
|
| 3 |
+
size 259426196
|
models/embeddings/monolingual/anp_32d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "anp", "dim": 32, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/anp_32d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "anp",
|
| 3 |
+
"dimension": 32,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 32,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 12167
|
| 13 |
+
}
|
models/embeddings/monolingual/anp_64d.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95dc1f4810dddc464023dcea010decc1b484ac058bc2a8c9392076ea90c65544
|
| 3 |
+
size 518540948
|
models/embeddings/monolingual/anp_64d.meta.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"lang": "anp", "dim": 64, "max_seq_len": 512, "is_aligned": false}
|
models/embeddings/monolingual/anp_64d_metadata.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "anp",
|
| 3 |
+
"dimension": 64,
|
| 4 |
+
"version": "monolingual",
|
| 5 |
+
"training_params": {
|
| 6 |
+
"dim": 64,
|
| 7 |
+
"min_count": 5,
|
| 8 |
+
"window": 5,
|
| 9 |
+
"negative": 5,
|
| 10 |
+
"epochs": 5
|
| 11 |
+
},
|
| 12 |
+
"vocab_size": 12167
|
| 13 |
+
}
|
models/subword_markov/anp_markov_ctx1_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4297aac5947b461b82ded3981b487a038458065f66a84607b9d1d55bb71f1718
|
| 3 |
+
size 83720
|
models/subword_markov/anp_markov_ctx1_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 755,
|
| 6 |
+
"total_transitions": 4171640
|
| 7 |
+
}
|
models/subword_markov/anp_markov_ctx2_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0e556496b318b18ecfe9c97c36c2d23a696de1824af13d8e624e9d9e2c53bad
|
| 3 |
+
size 561964
|
models/subword_markov/anp_markov_ctx2_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 10432,
|
| 6 |
+
"total_transitions": 4168473
|
| 7 |
+
}
|
models/subword_markov/anp_markov_ctx3_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c16a8be91a6fe7953eef4ac6eccf82dca4b99b8816d61fea6fe3718b7600bb34
|
| 3 |
+
size 2057035
|
models/subword_markov/anp_markov_ctx3_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 76706,
|
| 6 |
+
"total_transitions": 4165306
|
| 7 |
+
}
|
models/subword_markov/anp_markov_ctx4_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e54d19d4e7dafad81e1f50c98d138e50a189da919f32e24193b667682fa96a8
|
| 3 |
+
size 5952951
|
models/subword_markov/anp_markov_ctx4_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 290862,
|
| 6 |
+
"total_transitions": 4162139
|
| 7 |
+
}
|
models/subword_ngram/anp_2gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:355f1e9ea12646e5552194569897d90f61b54d55a6596d37ad576bac53b4c18a
|
| 3 |
+
size 66307
|
models/subword_ngram/anp_2gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 5088,
|
| 6 |
+
"total_ngrams": 4171640
|
| 7 |
+
}
|
models/subword_ngram/anp_3gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b14727440da7b6e77cb354d37b0c27476ed4374fb0258851694ef1e8116220f5
|
| 3 |
+
size 516525
|
models/subword_ngram/anp_3gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 39446,
|
| 6 |
+
"total_ngrams": 4168473
|
| 7 |
+
}
|
models/subword_ngram/anp_4gram_subword.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2aa49d6568ec1b8bf85049449b1f7efb6e4ddd46688f5f01f50be945751e4cd
|
| 3 |
+
size 1939235
|
models/subword_ngram/anp_4gram_subword_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "subword",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 155528,
|
| 6 |
+
"total_ngrams": 4165306
|
| 7 |
+
}
|
models/tokenizer/anp_tokenizer_16k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efb5cb1039a55c7f7bb857ffb86e33f81c6dc4d0c89b00b0b2bf254abbf18eaa
|
| 3 |
+
size 617718
|
models/tokenizer/anp_tokenizer_16k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/anp_tokenizer_32k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b0c4178d49ec2b0885bec0eaad33f6a5f7167c07accfe726ef9bfc8acb39865
|
| 3 |
+
size 1020495
|
models/tokenizer/anp_tokenizer_32k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/anp_tokenizer_64k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:688f4ca6efb65501b43b539b7fd3cb2a1fd1b2ecc0be1dc318fb516b5c44a990
|
| 3 |
+
size 1853030
|
models/tokenizer/anp_tokenizer_64k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/tokenizer/anp_tokenizer_8k.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:326640bb83ed996d173f81797fc5a30047a8b1b52c4a054dda0f50dacd58e6d7
|
| 3 |
+
size 424492
|
models/tokenizer/anp_tokenizer_8k.vocab
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/vocabulary/anp_vocabulary.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7846de396d06f632490fe25bb62f459573bd28942c91c218251658557d166439
|
| 3 |
+
size 154433
|
models/vocabulary/anp_vocabulary_metadata.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"language": "anp",
|
| 3 |
+
"vocabulary_size": 9567,
|
| 4 |
+
"statistics": {
|
| 5 |
+
"type_token_ratio": 0.014131336612329602,
|
| 6 |
+
"coverage": {
|
| 7 |
+
"top_100": 0.8221627535895281,
|
| 8 |
+
"top_1000": 0.954931271936766,
|
| 9 |
+
"top_5000": 0.9849848553672154,
|
| 10 |
+
"top_10000": 0.992719888352438
|
| 11 |
+
},
|
| 12 |
+
"hapax_count": 11059,
|
| 13 |
+
"hapax_ratio": 0.5361679433724426,
|
| 14 |
+
"total_documents": 3167
|
| 15 |
+
}
|
| 16 |
+
}
|
models/word_markov/anp_markov_ctx1_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:192ca60a300173cfabd8b1fb3660b244c3be732254c68e60bf1ee02dd07b598e
|
| 3 |
+
size 886162
|
models/word_markov/anp_markov_ctx1_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 1,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 20822,
|
| 6 |
+
"total_transitions": 2733532
|
| 7 |
+
}
|
models/word_markov/anp_markov_ctx2_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a4a530af52e6c9f3eaab3f9243da477a38d9854b21682a25de5c7b9f6c8f144
|
| 3 |
+
size 2833179
|
models/word_markov/anp_markov_ctx2_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 125337,
|
| 6 |
+
"total_transitions": 2730365
|
| 7 |
+
}
|
models/word_markov/anp_markov_ctx3_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7e40a5b87677577d689aa253f08740d9ad689107604462b8e1e4df9ad5a7cba
|
| 3 |
+
size 6746500
|
models/word_markov/anp_markov_ctx3_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 335781,
|
| 6 |
+
"total_transitions": 2727198
|
| 7 |
+
}
|
models/word_markov/anp_markov_ctx4_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df1d380e4e3dbf318266422fddd74c8e3c3c5bbb43bcf44df36feb99255fc67d
|
| 3 |
+
size 12362534
|
models/word_markov/anp_markov_ctx4_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"context_size": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_contexts": 678169,
|
| 6 |
+
"total_transitions": 2724031
|
| 7 |
+
}
|
models/word_ngram/anp_2gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:380fd982ea2b330e8e2918f8c25bfd63e9d5582ff2d103f96917453a9eec5bcd
|
| 3 |
+
size 261069
|
models/word_ngram/anp_2gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 2,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 19190,
|
| 6 |
+
"total_ngrams": 2733532
|
| 7 |
+
}
|
models/word_ngram/anp_3gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f8e4b8e3220800bfc9f062abf2dce74ef08616fa574c66f309c8d9d202644d1
|
| 3 |
+
size 955234
|
models/word_ngram/anp_3gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 3,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 71690,
|
| 6 |
+
"total_ngrams": 2730365
|
| 7 |
+
}
|
models/word_ngram/anp_4gram_word.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9711dcecd0f23b0bdaba6380c42f3dd115a1ded144cc810366c614694e28520a
|
| 3 |
+
size 2713081
|
models/word_ngram/anp_4gram_word_metadata.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n": 4,
|
| 3 |
+
"variant": "word",
|
| 4 |
+
"language": "anp",
|
| 5 |
+
"unique_ngrams": 200757,
|
| 6 |
+
"total_ngrams": 2727198
|
| 7 |
+
}
|
visualizations/embedding_isotropy.png
ADDED
|