Upload all models and assets for vi (latest)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +7 -0
- README.md +773 -0
- models/embeddings/aligned/vi_128d.bin +3 -0
- models/embeddings/aligned/vi_128d.meta.json +1 -0
- models/embeddings/aligned/vi_128d.projection.npy +3 -0
- models/embeddings/aligned/vi_128d_metadata.json +8 -0
- models/embeddings/aligned/vi_32d.bin +3 -0
- models/embeddings/aligned/vi_32d.meta.json +1 -0
- models/embeddings/aligned/vi_32d.projection.npy +3 -0
- models/embeddings/aligned/vi_32d_metadata.json +8 -0
- models/embeddings/aligned/vi_64d.bin +3 -0
- models/embeddings/aligned/vi_64d.meta.json +1 -0
- models/embeddings/aligned/vi_64d.projection.npy +3 -0
- models/embeddings/aligned/vi_64d_metadata.json +8 -0
- models/embeddings/monolingual/vi_128d.bin +3 -0
- models/embeddings/monolingual/vi_128d.meta.json +1 -0
- models/embeddings/monolingual/vi_128d_metadata.json +16 -0
- models/embeddings/monolingual/vi_32d.bin +3 -0
- models/embeddings/monolingual/vi_32d.meta.json +1 -0
- models/embeddings/monolingual/vi_32d_metadata.json +16 -0
- models/embeddings/monolingual/vi_64d.bin +3 -0
- models/embeddings/monolingual/vi_64d.meta.json +1 -0
- models/embeddings/monolingual/vi_64d_metadata.json +16 -0
- models/subword_markov/vi_markov_ctx1_subword.parquet +3 -0
- models/subword_markov/vi_markov_ctx1_subword_metadata.json +7 -0
- models/subword_markov/vi_markov_ctx2_subword.parquet +3 -0
- models/subword_markov/vi_markov_ctx2_subword_metadata.json +7 -0
- models/subword_markov/vi_markov_ctx3_subword.parquet +3 -0
- models/subword_markov/vi_markov_ctx3_subword_metadata.json +7 -0
- models/subword_markov/vi_markov_ctx4_subword.parquet +3 -0
- models/subword_markov/vi_markov_ctx4_subword_metadata.json +7 -0
- models/subword_ngram/vi_2gram_subword.parquet +3 -0
- models/subword_ngram/vi_2gram_subword_metadata.json +7 -0
- models/subword_ngram/vi_3gram_subword.parquet +3 -0
- models/subword_ngram/vi_3gram_subword_metadata.json +7 -0
- models/subword_ngram/vi_4gram_subword.parquet +3 -0
- models/subword_ngram/vi_4gram_subword_metadata.json +7 -0
- models/subword_ngram/vi_5gram_subword.parquet +3 -0
- models/subword_ngram/vi_5gram_subword_metadata.json +7 -0
- models/tokenizer/vi_tokenizer_16k.model +3 -0
- models/tokenizer/vi_tokenizer_16k.vocab +0 -0
- models/tokenizer/vi_tokenizer_32k.model +3 -0
- models/tokenizer/vi_tokenizer_32k.vocab +0 -0
- models/tokenizer/vi_tokenizer_64k.model +3 -0
- models/tokenizer/vi_tokenizer_64k.vocab +0 -0
- models/tokenizer/vi_tokenizer_8k.model +3 -0
- models/tokenizer/vi_tokenizer_8k.vocab +0 -0
- models/vocabulary/vi_vocabulary.parquet +3 -0
- models/vocabulary/vi_vocabulary_metadata.json +17 -0
- models/vocabulary/vi_vocabulary_top.parquet +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,10 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
visualizations/embedding_similarity.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
visualizations/embedding_tsne_multilingual.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
visualizations/performance_dashboard.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
visualizations/position_encoding_comparison.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
visualizations/tsne_sentences.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
visualizations/tsne_words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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: vi
|
| 3 |
+
language_name: Vietnamese
|
| 4 |
+
language_family: austroasiatic_vietic
|
| 5 |
+
tags:
|
| 6 |
+
- wikilangs
|
| 7 |
+
- nlp
|
| 8 |
+
- tokenizer
|
| 9 |
+
- embeddings
|
| 10 |
+
- n-gram
|
| 11 |
+
- markov
|
| 12 |
+
- wikipedia
|
| 13 |
+
- feature-extraction
|
| 14 |
+
- sentence-similarity
|
| 15 |
+
- tokenization
|
| 16 |
+
- n-grams
|
| 17 |
+
- markov-chain
|
| 18 |
+
- text-mining
|
| 19 |
+
- fasttext
|
| 20 |
+
- babelvec
|
| 21 |
+
- vocabulous
|
| 22 |
+
- vocabulary
|
| 23 |
+
- monolingual
|
| 24 |
+
- family-austroasiatic_vietic
|
| 25 |
+
license: mit
|
| 26 |
+
library_name: wikilangs
|
| 27 |
+
pipeline_tag: text-generation
|
| 28 |
+
datasets:
|
| 29 |
+
- omarkamali/wikipedia-monthly
|
| 30 |
+
dataset_info:
|
| 31 |
+
name: wikipedia-monthly
|
| 32 |
+
description: Monthly snapshots of Wikipedia articles across 300+ languages
|
| 33 |
+
metrics:
|
| 34 |
+
- name: best_compression_ratio
|
| 35 |
+
type: compression
|
| 36 |
+
value: 3.900
|
| 37 |
+
- name: best_isotropy
|
| 38 |
+
type: isotropy
|
| 39 |
+
value: 0.8322
|
| 40 |
+
- name: vocabulary_size
|
| 41 |
+
type: vocab
|
| 42 |
+
value: 0
|
| 43 |
+
generated: 2026-01-18
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Vietnamese - Wikilangs Models
|
| 47 |
+
## Comprehensive Research Report & Full Ablation Study
|
| 48 |
+
|
| 49 |
+
This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Vietnamese** Wikipedia data.
|
| 50 |
+
We analyze tokenizers, n-gram models, Markov chains, vocabulary statistics, and word embeddings.
|
| 51 |
+
|
| 52 |
+
## 📋 Repository Contents
|
| 53 |
+
|
| 54 |
+
### Models & Assets
|
| 55 |
+
|
| 56 |
+
- Tokenizers (8k, 16k, 32k, 64k)
|
| 57 |
+
- N-gram models (2, 3, 4, 5-gram)
|
| 58 |
+
- Markov chains (context of 1, 2, 3, 4 and 5)
|
| 59 |
+
- Subword N-gram and Markov chains
|
| 60 |
+
- Embeddings in various sizes and dimensions (aligned and unaligned)
|
| 61 |
+
- Language Vocabulary
|
| 62 |
+
- Language Statistics
|
| 63 |
+
|
| 64 |
+

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

|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
|
| 89 |
+
### Results
|
| 90 |
+
|
| 91 |
+
| Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
|
| 92 |
+
|------------|-------------|---------------|----------|--------------|
|
| 93 |
+
| **8k** | 3.647x | 3.65 | 0.1376% | 4,322,437 |
|
| 94 |
+
| **16k** | 3.775x | 3.77 | 0.1424% | 4,176,769 |
|
| 95 |
+
| **32k** | 3.851x | 3.85 | 0.1453% | 4,093,428 |
|
| 96 |
+
| **64k** | 3.900x 🏆 | 3.90 | 0.1471% | 4,042,743 |
|
| 97 |
+
|
| 98 |
+
### Tokenization Examples
|
| 99 |
+
|
| 100 |
+
Below are sample sentences tokenized with each vocabulary size:
|
| 101 |
+
|
| 102 |
+
**Sample 1:** `Siphona scutellata là một loài ruồi trong họ Tachinidae. Chú thích Liên kết ngoà...`
|
| 103 |
+
|
| 104 |
+
| Vocab | Tokens | Count |
|
| 105 |
+
|-------|--------|-------|
|
| 106 |
+
| 8k | `▁si ph ona ▁sc ut ell ata ▁là ▁một ▁loài ... (+12 more)` | 22 |
|
| 107 |
+
| 16k | `▁si ph ona ▁scut ellata ▁là ▁một ▁loài ▁ruồi ▁trong ... (+9 more)` | 19 |
|
| 108 |
+
| 32k | `▁si ph ona ▁scut ellata ▁là ▁một ▁loài ▁ruồi ▁trong ... (+9 more)` | 19 |
|
| 109 |
+
| 64k | `▁siph ona ▁scutellata ▁là ▁một ▁loài ▁ruồi ▁trong ▁họ ▁tach ... (+7 more)` | 17 |
|
| 110 |
+
|
| 111 |
+
**Sample 2:** `Kocaali là một xã thuộc huyện Ergani, tỉnh Diyarbakır, Thổ Nhĩ Kỳ. Dân số thời đ...`
|
| 112 |
+
|
| 113 |
+
| Vocab | Tokens | Count |
|
| 114 |
+
|-------|--------|-------|
|
| 115 |
+
| 8k | `▁k oc a ali ▁là ▁một ▁xã ▁thuộc ▁huyện ▁er ... (+31 more)` | 41 |
|
| 116 |
+
| 16k | `▁k oca ali ▁là ▁một ▁xã ▁thuộc ▁huyện ▁er g ... (+29 more)` | 39 |
|
| 117 |
+
| 32k | `▁k oca ali ▁là ▁một ▁xã ▁thuộc ▁huyện ▁er g ... (+28 more)` | 38 |
|
| 118 |
+
| 64k | `▁k oca ali ▁là ▁một ▁xã ▁thuộc ▁huyện ▁erg ani ... (+24 more)` | 34 |
|
| 119 |
+
|
| 120 |
+
**Sample 3:** `Glipidiomorpha riesei là một loài bọ cánh cứng trong họ Mordellidae. Loài này đư...`
|
| 121 |
+
|
| 122 |
+
| Vocab | Tokens | Count |
|
| 123 |
+
|-------|--------|-------|
|
| 124 |
+
| 8k | `▁gl ip idi omorpha ▁r ies ei ▁là ▁một ▁loài ... (+24 more)` | 34 |
|
| 125 |
+
| 16k | `▁gl ip idi omorpha ▁r ies ei ▁là ▁một ▁loài ... (+24 more)` | 34 |
|
| 126 |
+
| 32k | `▁gl ip idi omorpha ▁ries ei ▁là ▁một ▁loài ▁bọ ... (+21 more)` | 31 |
|
| 127 |
+
| 64k | `▁gl ip idi omorpha ▁riesei ▁là ▁một ▁loài ▁bọ ▁cánh ... (+19 more)` | 29 |
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
### Key Findings
|
| 131 |
+
|
| 132 |
+
- **Best Compression:** 64k achieves 3.900x compression
|
| 133 |
+
- **Lowest UNK Rate:** 8k with 0.1376% unknown tokens
|
| 134 |
+
- **Trade-off:** Larger vocabularies improve compression but increase model size
|
| 135 |
+
- **Recommendation:** 32k vocabulary provides optimal balance for production use
|
| 136 |
+
|
| 137 |
+
---
|
| 138 |
+
## 2. N-gram Model Evaluation
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+
### Results
|
| 147 |
+
|
| 148 |
+
| N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
|
| 149 |
+
|--------|---------|------------|---------|----------------|------------------|-------------------|
|
| 150 |
+
| **2-gram** | Word | 106,320 | 16.70 | 2,695,824 | 10.1% | 25.1% |
|
| 151 |
+
| **2-gram** | Subword | 409 🏆 | 8.67 | 93,876 | 59.2% | 96.0% |
|
| 152 |
+
| **3-gram** | Word | 890,077 | 19.76 | 9,913,320 | 6.8% | 13.5% |
|
| 153 |
+
| **3-gram** | Subword | 2,984 | 11.54 | 411,919 | 25.5% | 66.3% |
|
| 154 |
+
| **4-gram** | Word | 2,796,979 | 21.42 | 22,248,727 | 6.3% | 11.5% |
|
| 155 |
+
| **4-gram** | Subword | 16,513 | 14.01 | 1,959,172 | 13.3% | 41.5% |
|
| 156 |
+
| **5-gram** | Word | 2,571,700 | 21.29 | 19,242,355 | 7.4% | 13.5% |
|
| 157 |
+
| **5-gram** | Subword | 69,615 | 16.09 | 6,377,982 | 8.7% | 27.1% |
|
| 158 |
+
|
| 159 |
+
### Top 5 N-grams by Size
|
| 160 |
+
|
| 161 |
+
**2-grams (Word):**
|
| 162 |
+
|
| 163 |
+
| Rank | N-gram | Count |
|
| 164 |
+
|------|--------|-------|
|
| 165 |
+
| 1 | `là một` | 1,495,225 |
|
| 166 |
+
| 2 | `chú thích` | 852,707 |
|
| 167 |
+
| 3 | `tham khảo` | 804,096 |
|
| 168 |
+
| 4 | `một loài` | 728,551 |
|
| 169 |
+
| 5 | `trong họ` | 711,111 |
|
| 170 |
+
|
| 171 |
+
**3-grams (Word):**
|
| 172 |
+
|
| 173 |
+
| Rank | N-gram | Count |
|
| 174 |
+
|------|--------|-------|
|
| 175 |
+
| 1 | `là một loài` | 722,924 |
|
| 176 |
+
| 2 | `liên kết ngoài` | 620,713 |
|
| 177 |
+
| 3 | `loài này được` | 453,066 |
|
| 178 |
+
| 4 | `chú thích liên` | 440,159 |
|
| 179 |
+
| 5 | `thích liên kết` | 440,150 |
|
| 180 |
+
|
| 181 |
+
**4-grams (Word):**
|
| 182 |
+
|
| 183 |
+
| Rank | N-gram | Count |
|
| 184 |
+
|------|--------|-------|
|
| 185 |
+
| 1 | `chú thích liên kết` | 440,133 |
|
| 186 |
+
| 2 | `thích liên kết ngoài` | 439,810 |
|
| 187 |
+
| 3 | `được mô tả năm` | 384,043 |
|
| 188 |
+
| 4 | `chú thích tham khảo` | 365,017 |
|
| 189 |
+
| 5 | `vật được mô tả` | 363,438 |
|
| 190 |
+
|
| 191 |
+
**5-grams (Word):**
|
| 192 |
+
|
| 193 |
+
| Rank | N-gram | Count |
|
| 194 |
+
|------|--------|-------|
|
| 195 |
+
| 1 | `chú thích liên kết ngoài` | 439,801 |
|
| 196 |
+
| 2 | `vật được mô tả năm` | 363,377 |
|
| 197 |
+
| 3 | `tả khoa học đầu tiên` | 335,608 |
|
| 198 |
+
| 4 | `khoa học đầu tiên năm` | 309,398 |
|
| 199 |
+
| 5 | `đầu tiên năm chú thích` | 263,309 |
|
| 200 |
+
|
| 201 |
+
**2-grams (Subword):**
|
| 202 |
+
|
| 203 |
+
| Rank | N-gram | Count |
|
| 204 |
+
|------|--------|-------|
|
| 205 |
+
| 1 | `_ t` | 44,618,705 |
|
| 206 |
+
| 2 | `n g` | 36,466,380 |
|
| 207 |
+
| 3 | `_ c` | 30,008,094 |
|
| 208 |
+
| 4 | `n _` | 29,116,380 |
|
| 209 |
+
| 5 | `g _` | 27,402,011 |
|
| 210 |
+
|
| 211 |
+
**3-grams (Subword):**
|
| 212 |
+
|
| 213 |
+
| Rank | N-gram | Count |
|
| 214 |
+
|------|--------|-------|
|
| 215 |
+
| 1 | `n g _` | 27,209,259 |
|
| 216 |
+
| 2 | `_ t h` | 17,092,068 |
|
| 217 |
+
| 3 | `_ t r` | 10,431,331 |
|
| 218 |
+
| 4 | `_ c h` | 9,946,202 |
|
| 219 |
+
| 5 | `n h _` | 9,905,520 |
|
| 220 |
+
|
| 221 |
+
**4-grams (Subword):**
|
| 222 |
+
|
| 223 |
+
| Rank | N-gram | Count |
|
| 224 |
+
|------|--------|-------|
|
| 225 |
+
| 1 | `n g _ t` | 4,408,233 |
|
| 226 |
+
| 2 | `_ v à _` | 3,874,748 |
|
| 227 |
+
| 3 | `_ l à _` | 3,858,257 |
|
| 228 |
+
| 4 | `c ủ a _` | 3,768,746 |
|
| 229 |
+
| 5 | `_ c ủ a` | 3,768,226 |
|
| 230 |
+
|
| 231 |
+
**5-grams (Subword):**
|
| 232 |
+
|
| 233 |
+
| Rank | N-gram | Count |
|
| 234 |
+
|------|--------|-------|
|
| 235 |
+
| 1 | `_ c ủ a _` | 3,765,562 |
|
| 236 |
+
| 2 | `_ đ ư ợ c` | 3,314,830 |
|
| 237 |
+
| 3 | `đ ư ợ c _` | 3,299,257 |
|
| 238 |
+
| 4 | `_ m ộ t _` | 3,246,287 |
|
| 239 |
+
| 5 | `_ n ă m _` | 3,101,391 |
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
### Key Findings
|
| 243 |
+
|
| 244 |
+
- **Best Perplexity:** 2-gram (subword) with 409
|
| 245 |
+
- **Entropy Trend:** Decreases with larger n-grams (more predictable)
|
| 246 |
+
- **Coverage:** Top-1000 patterns cover ~27% of corpus
|
| 247 |
+
- **Recommendation:** 4-gram or 5-gram for best predictive performance
|
| 248 |
+
|
| 249 |
+
---
|
| 250 |
+
## 3. Markov Chain Evaluation
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+

|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+
### Results
|
| 259 |
+
|
| 260 |
+
| Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
|
| 261 |
+
|---------|---------|-------------|------------|------------------|-----------------|----------------|
|
| 262 |
+
| **1** | Word | 0.7563 | 1.689 | 9.23 | 2,640,968 | 24.4% |
|
| 263 |
+
| **1** | Subword | 1.2157 | 2.323 | 15.79 | 34,963 | 0.0% |
|
| 264 |
+
| **2** | Word | 0.4386 | 1.355 | 3.10 | 24,350,395 | 56.1% |
|
| 265 |
+
| **2** | Subword | 0.5203 | 1.434 | 3.02 | 551,811 | 48.0% |
|
| 266 |
+
| **3** | Word | 0.2736 | 1.209 | 1.81 | 75,436,653 | 72.6% |
|
| 267 |
+
| **3** | Subword | 0.4089 | 1.328 | 2.69 | 1,667,382 | 59.1% |
|
| 268 |
+
| **4** | Word | 0.1518 🏆 | 1.111 | 1.33 | 136,713,102 | 84.8% |
|
| 269 |
+
| **4** | Subword | 0.4863 | 1.401 | 2.89 | 4,478,768 | 51.4% |
|
| 270 |
+
|
| 271 |
+
### Generated Text Samples (Word-based)
|
| 272 |
+
|
| 273 |
+
Below are text samples generated from each word-based Markov chain model:
|
| 274 |
+
|
| 275 |
+
**Context Size 1:**
|
| 276 |
+
|
| 277 |
+
1. `là tổng thống như đường sắt bắc iwate grulla morioka thống shad striper rượt đuổi theo`
|
| 278 |
+
2. `và lavrov đã đi hết các xơ cứng trong hiệp hòa thảo loài khác biệt hiệu`
|
| 279 |
+
3. `của mình mang tên đàn đạo đền một mạng nicaragua 3 năm vật hoang mạc thiên`
|
| 280 |
+
|
| 281 |
+
**Context Size 2:**
|
| 282 |
+
|
| 283 |
+
1. `là một loài hymenoptera trong họ noctuidae chú thích tham khảo bay kazakhstan không tìm thấy tại`
|
| 284 |
+
2. `chú thích liên kết ngoài vật được mô tả năm vật bolivia vật brasil vật colombia vật`
|
| 285 |
+
3. `một loài bướm đêm trong họ cửu lý hương loài boswellia trong tôn giáo nào giáo dục`
|
| 286 |
+
|
| 287 |
+
**Context Size 3:**
|
| 288 |
+
|
| 289 |
+
1. `là một loài bọ cánh cứng trong họ melandryidae loài này được werderm mô tả khoa học năm`
|
| 290 |
+
2. `liên kết ngoài c vật được mô tả năm es hemianemia eximia`
|
| 291 |
+
3. `loài này được baker labat schatz mô tả khoa học đầu tiên năm chú thích tham khảo vật`
|
| 292 |
+
|
| 293 |
+
**Context Size 4:**
|
| 294 |
+
|
| 295 |
+
1. `chú thích liên kết ngoài vật được mô tả năm vật đặc hữu đài loan đài loan thuộc nhật`
|
| 296 |
+
2. `vật được mô tả năm vật đặc hữu trung quốc kim lũ mai tai hùm đơn loài vật được`
|
| 297 |
+
3. `khoa học đầu tiên năm chú thích liên kết ngoài vật được mô tả năm đêm indonesia đêm philippines`
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
### Generated Text Samples (Subword-based)
|
| 301 |
+
|
| 302 |
+
Below are text samples generated from each subword-based Markov chain model:
|
| 303 |
+
|
| 304 |
+
**Context Size 1:**
|
| 305 |
+
|
| 306 |
+
1. `_lef_19_kỳ.wanhe`
|
| 307 |
+
2. `n_terìng_đã_phủ_`
|
| 308 |
+
3. `h_"_ayroarọcá_m_`
|
| 309 |
+
|
| 310 |
+
**Context Size 2:**
|
| 311 |
+
|
| 312 |
+
1. `_thuệsố_đã_vấn_vù`
|
| 313 |
+
2. `ng_thuộc_nhịu_đầu`
|
| 314 |
+
3. `_của_nh_sác_prit_`
|
| 315 |
+
|
| 316 |
+
**Context Size 3:**
|
| 317 |
+
|
| 318 |
+
1. `ng_đã_bị_bệnh_lại_`
|
| 319 |
+
2. `_thắng_của_hampus_`
|
| 320 |
+
3. `_trang_3_joon,_nhữ`
|
| 321 |
+
|
| 322 |
+
**Context Size 4:**
|
| 323 |
+
|
| 324 |
+
1. `ng_tăng_ánh_quyết_c`
|
| 325 |
+
2. `_và_những_có_một_cầ`
|
| 326 |
+
3. `_là_volume_shop,_tâ`
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
### Key Findings
|
| 330 |
+
|
| 331 |
+
- **Best Predictability:** Context-4 (word) with 84.8% predictability
|
| 332 |
+
- **Branching Factor:** Decreases with context size (more deterministic)
|
| 333 |
+
- **Memory Trade-off:** Larger contexts require more storage (4,478,768 contexts)
|
| 334 |
+
- **Recommendation:** Context-3 or Context-4 for text generation
|
| 335 |
+
|
| 336 |
+
---
|
| 337 |
+
## 4. Vocabulary Analysis
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
|
| 345 |
+
### Statistics
|
| 346 |
+
|
| 347 |
+
| Metric | Value |
|
| 348 |
+
|--------|-------|
|
| 349 |
+
| Vocabulary Size | 1,088,012 |
|
| 350 |
+
| Total Tokens | 275,589,508 |
|
| 351 |
+
| Mean Frequency | 253.30 |
|
| 352 |
+
| Median Frequency | 4 |
|
| 353 |
+
| Frequency Std Dev | 12931.56 |
|
| 354 |
+
|
| 355 |
+
### Most Common Words
|
| 356 |
+
|
| 357 |
+
| Rank | Word | Frequency |
|
| 358 |
+
|------|------|-----------|
|
| 359 |
+
| 1 | là | 3,896,221 |
|
| 360 |
+
| 2 | và | 3,888,002 |
|
| 361 |
+
| 3 | của | 3,770,649 |
|
| 362 |
+
| 4 | năm | 3,541,374 |
|
| 363 |
+
| 5 | được | 3,324,385 |
|
| 364 |
+
| 6 | một | 3,283,880 |
|
| 365 |
+
| 7 | trong | 2,847,858 |
|
| 366 |
+
| 8 | có | 2,266,526 |
|
| 367 |
+
| 9 | các | 2,260,160 |
|
| 368 |
+
| 10 | người | 1,505,528 |
|
| 369 |
+
|
| 370 |
+
### Least Common Words (from vocabulary)
|
| 371 |
+
|
| 372 |
+
| Rank | Word | Frequency |
|
| 373 |
+
|------|------|-----------|
|
| 374 |
+
| 1 | bíchhạnh | 2 |
|
| 375 |
+
| 2 | dâuliên | 2 |
|
| 376 |
+
| 3 | lụanguyễn | 2 |
|
| 377 |
+
| 4 | zeltiq | 2 |
|
| 378 |
+
| 5 | côtobin | 2 |
|
| 379 |
+
| 6 | novitskiy | 2 |
|
| 380 |
+
| 7 | tarelkin | 2 |
|
| 381 |
+
| 8 | 齋堂 | 2 |
|
| 382 |
+
| 9 | zhāitáng | 2 |
|
| 383 |
+
| 10 | chatral | 2 |
|
| 384 |
+
|
| 385 |
+
### Zipf's Law Analysis
|
| 386 |
+
|
| 387 |
+
| Metric | Value |
|
| 388 |
+
|--------|-------|
|
| 389 |
+
| Zipf Coefficient | 1.5197 |
|
| 390 |
+
| R² (Goodness of Fit) | 0.977671 |
|
| 391 |
+
| Adherence Quality | **excellent** |
|
| 392 |
+
|
| 393 |
+
### Coverage Analysis
|
| 394 |
+
|
| 395 |
+
| Top N Words | Coverage |
|
| 396 |
+
|-------------|----------|
|
| 397 |
+
| Top 100 | 35.9% |
|
| 398 |
+
| Top 1,000 | 79.0% |
|
| 399 |
+
| Top 5,000 | 91.3% |
|
| 400 |
+
| Top 10,000 | 93.6% |
|
| 401 |
+
|
| 402 |
+
### Key Findings
|
| 403 |
+
|
| 404 |
+
- **Zipf Compliance:** R²=0.9777 indicates excellent adherence to Zipf's law
|
| 405 |
+
- **High Frequency Dominance:** Top 100 words cover 35.9% of corpus
|
| 406 |
+
- **Long Tail:** 1,078,012 words needed for remaining 6.4% coverage
|
| 407 |
+
|
| 408 |
+
---
|
| 409 |
+
## 5. Word Embeddings Evaluation
|
| 410 |
+
|
| 411 |
+

|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
|
| 417 |
+

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

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
### 5.2 Model Comparison
|
| 428 |
+
|
| 429 |
+
| Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
|
| 430 |
+
|-------|-----------|----------|------------------|---------------|----------------|
|
| 431 |
+
| **mono_32d** | 32 | 0.8322 | 0.4208 | N/A | N/A |
|
| 432 |
+
| **mono_64d** | 64 | 0.8116 | 0.3302 | N/A | N/A |
|
| 433 |
+
| **mono_128d** | 128 | 0.7892 | 0.2753 | N/A | N/A |
|
| 434 |
+
| **aligned_32d** | 32 | 0.8322 🏆 | 0.4041 | 0.4880 | 0.8640 |
|
| 435 |
+
| **aligned_64d** | 64 | 0.8116 | 0.3384 | 0.7280 | 0.9680 |
|
| 436 |
+
| **aligned_128d** | 128 | 0.7892 | 0.2727 | 0.8360 | 0.9820 |
|
| 437 |
+
|
| 438 |
+
### Key Findings
|
| 439 |
+
|
| 440 |
+
- **Best Isotropy:** aligned_32d with 0.8322 (more uniform distribution)
|
| 441 |
+
- **Semantic Density:** Average pairwise similarity of 0.3403. Lower values indicate better semantic separation.
|
| 442 |
+
- **Alignment Quality:** Aligned models achieve up to 83.6% R@1 in cross-lingual retrieval.
|
| 443 |
+
- **Recommendation:** 128d aligned for best cross-lingual performance
|
| 444 |
+
|
| 445 |
+
---
|
| 446 |
+
## 6. Morphological Analysis (Experimental)
|
| 447 |
+
|
| 448 |
+
This section presents an automated morphological analysis derived from the statistical divergence between word-level and subword-level models. By analyzing where subword predictability spikes and where word-level coverage fails, we can infer linguistic structures without supervised data.
|
| 449 |
+
|
| 450 |
+
### 6.1 Productivity & Complexity
|
| 451 |
+
|
| 452 |
+
| Metric | Value | Interpretation | Recommendation |
|
| 453 |
+
|--------|-------|----------------|----------------|
|
| 454 |
+
| Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
|
| 455 |
+
| Idiomaticity Gap | **-0.502** | Low formulaic content | - |
|
| 456 |
+
|
| 457 |
+
### 6.2 Affix Inventory (Productive Units)
|
| 458 |
+
|
| 459 |
+
These are the most productive prefixes and suffixes identified by sampling the vocabulary for global substitutability patterns. A unit is considered an affix if stripping it leaves a valid stem that appears in other contexts.
|
| 460 |
+
|
| 461 |
+
#### Productive Prefixes
|
| 462 |
+
| Prefix | Examples |
|
| 463 |
+
|--------|----------|
|
| 464 |
+
| `-s` | sinothomisus, sportowe, sprogøe |
|
| 465 |
+
| `-t` | thổvàng, trilion, tháitô |
|
| 466 |
+
| `-a` | amorín, aerolindigia, awardchoice |
|
| 467 |
+
| `-m` | minhphạm, mớimtvca, mutungi |
|
| 468 |
+
| `-c` | coccomelia, clacton, clatratum |
|
| 469 |
+
| `-b` | batmagnai, bejt, balep |
|
| 470 |
+
| `-k` | karepura, kỳtriệu, kronthaler |
|
| 471 |
+
| `-ma` | marovt, mayran, marghanna |
|
| 472 |
+
|
| 473 |
+
#### Productive Suffixes
|
| 474 |
+
| Suffix | Examples |
|
| 475 |
+
|--------|----------|
|
| 476 |
+
| `-s` | sinothomisus, orestes, trochanteralis |
|
| 477 |
+
| `-a` | coccomelia, karepura, nuichua |
|
| 478 |
+
| `-e` | pilosellae, orée, sportowe |
|
| 479 |
+
| `-n` | oreodendron, gaggabutan, clacton |
|
| 480 |
+
| `-is` | trochanteralis, neoconis, mononalis |
|
| 481 |
+
| `-i` | batmagnai, weinmanntái, eesi |
|
| 482 |
+
| `-us` | sinothomisus, brimidius, eudelus |
|
| 483 |
+
| `-es` | orestes, pseudaspilates, wingates |
|
| 484 |
+
|
| 485 |
+
### 6.3 Bound Stems (Lexical Roots)
|
| 486 |
+
|
| 487 |
+
Bound stems are high-frequency subword units that are semantically cohesive but rarely appear as standalone words. These often correspond to the 'core' of a word that requires inflection or derivation to be valid.
|
| 488 |
+
|
| 489 |
+
| Stem | Cohesion | Substitutability | Examples |
|
| 490 |
+
|------|----------|------------------|----------|
|
| 491 |
+
| `atio` | 2.64x | 168 contexts | tatio, natio, fatio |
|
| 492 |
+
| `opte` | 2.62x | 135 contexts | opted, opter, copte |
|
| 493 |
+
| `nter` | 2.01x | 355 contexts | enter, inter, unter |
|
| 494 |
+
| `trưở` | 2.86x | 60 contexts | trưởn, trưởnɡ, trưởng |
|
| 495 |
+
| `tướn` | 2.93x | 45 contexts | tướng, tướngm, 4tướng |
|
| 496 |
+
| `pter` | 2.21x | 106 contexts | ptero, opter, apter |
|
| 497 |
+
| `ceae` | 3.35x | 20 contexts | aceae, ficeae, biceae |
|
| 498 |
+
| `rưởn` | 2.86x | 32 contexts | trưởn, rưởng, trưởnɡ |
|
| 499 |
+
| `huyệ` | 1.59x | 353 contexts | huyệt, huyện, chuyệ |
|
| 500 |
+
| `nhiề` | 2.15x | 75 contexts | nhiền, nhiềy, nhiềm |
|
| 501 |
+
| `uyễn` | 2.16x | 59 contexts | quyễn, duyễn, nuyễn |
|
| 502 |
+
| `huyể` | 2.06x | 28 contexts | chuyể, huyển, thuyểt |
|
| 503 |
+
|
| 504 |
+
### 6.4 Affix Compatibility (Co-occurrence)
|
| 505 |
+
|
| 506 |
+
This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
|
| 507 |
+
|
| 508 |
+
| Prefix | Suffix | Frequency | Examples |
|
| 509 |
+
|--------|--------|-----------|----------|
|
| 510 |
+
| `-p` | `-a` | 126 words | pnmburucuya, praeangulata |
|
| 511 |
+
| `-p` | `-s` | 122 words | pedicellatus, polyotis |
|
| 512 |
+
| `-c` | `-s` | 116 words | cicindeloides, constrictiflorus |
|
| 513 |
+
| `-s` | `-a` | 108 words | sungka, serbica |
|
| 514 |
+
| `-c` | `-a` | 103 words | chensa, conardia |
|
| 515 |
+
| `-s` | `-s` | 103 words | sacodes, sulamitis |
|
| 516 |
+
| `-a` | `-s` | 99 words | ardys, airplanes |
|
| 517 |
+
| `-a` | `-a` | 90 words | akassa, attenuatella |
|
| 518 |
+
| `-m` | `-s` | 86 words | matles, moyennes |
|
| 519 |
+
| `-m` | `-a` | 78 words | meryta, mātaatua |
|
| 520 |
+
|
| 521 |
+
### 6.5 Recursive Morpheme Segmentation
|
| 522 |
+
|
| 523 |
+
Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
|
| 524 |
+
|
| 525 |
+
| Word | Suggested Split | Confidence | Stem |
|
| 526 |
+
|------|-----------------|------------|------|
|
| 527 |
+
| tolarucan | **`tolaruc-a-n`** | 7.5 | `a` |
|
| 528 |
+
| kazusensis | **`kazusen-s-is`** | 7.5 | `s` |
|
| 529 |
+
| jāgarābhivamsa | **`jāgarābhivam-s-a`** | 7.5 | `s` |
|
| 530 |
+
| alagappapuram | **`alagappapur-a-m`** | 7.5 | `a` |
|
| 531 |
+
| krickenbach | **`krickenb-a-ch`** | 7.5 | `a` |
|
| 532 |
+
| speculaas | **`specu-la-as`** | 7.5 | `la` |
|
| 533 |
+
| namsskogan | **`namsskog-a-n`** | 7.5 | `a` |
|
| 534 |
+
| mündersbach | **`mündersb-a-ch`** | 7.5 | `a` |
|
| 535 |
+
| quadrisetosus | **`quadriseto-s-us`** | 7.5 | `s` |
|
| 536 |
+
| thắngshonan | **`thắngshon-a-n`** | 7.5 | `a` |
|
| 537 |
+
| atrivenata | **`atrive-na-ta`** | 7.5 | `na` |
|
| 538 |
+
| hochiensis | **`hochien-s-is`** | 7.5 | `s` |
|
| 539 |
+
| outermost | **`outermo-s-t`** | 7.5 | `s` |
|
| 540 |
+
| xuechengensis | **`xuechengen-s-is`** | 7.5 | `s` |
|
| 541 |
+
| mesypochrysa | **`mesypochry-s-a`** | 7.5 | `s` |
|
| 542 |
+
|
| 543 |
+
### 6.6 Linguistic Interpretation
|
| 544 |
+
|
| 545 |
+
> **Automated Insight:**
|
| 546 |
+
The language Vietnamese shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
|
| 547 |
+
|
| 548 |
+
---
|
| 549 |
+
## 7. Summary & Recommendations
|
| 550 |
+
|
| 551 |
+

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