omarkamali commited on
Commit
2e09045
·
verified ·
1 Parent(s): 74531e8

Upload all models and assets for nup (latest)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. README.md +760 -0
  3. models/embeddings/aligned/nup_128d.bin +3 -0
  4. models/embeddings/aligned/nup_128d.meta.json +1 -0
  5. models/embeddings/aligned/nup_128d.projection.npy +3 -0
  6. models/embeddings/aligned/nup_128d_metadata.json +8 -0
  7. models/embeddings/aligned/nup_32d.bin +3 -0
  8. models/embeddings/aligned/nup_32d.meta.json +1 -0
  9. models/embeddings/aligned/nup_32d.projection.npy +3 -0
  10. models/embeddings/aligned/nup_32d_metadata.json +8 -0
  11. models/embeddings/aligned/nup_64d.bin +3 -0
  12. models/embeddings/aligned/nup_64d.meta.json +1 -0
  13. models/embeddings/aligned/nup_64d.projection.npy +3 -0
  14. models/embeddings/aligned/nup_64d_metadata.json +8 -0
  15. models/embeddings/monolingual/nup_128d.bin +3 -0
  16. models/embeddings/monolingual/nup_128d.meta.json +1 -0
  17. models/embeddings/monolingual/nup_128d_metadata.json +16 -0
  18. models/embeddings/monolingual/nup_32d.bin +3 -0
  19. models/embeddings/monolingual/nup_32d.meta.json +1 -0
  20. models/embeddings/monolingual/nup_32d_metadata.json +16 -0
  21. models/embeddings/monolingual/nup_64d.bin +3 -0
  22. models/embeddings/monolingual/nup_64d.meta.json +1 -0
  23. models/embeddings/monolingual/nup_64d_metadata.json +16 -0
  24. models/subword_markov/nup_markov_ctx1_subword.parquet +3 -0
  25. models/subword_markov/nup_markov_ctx1_subword_metadata.json +7 -0
  26. models/subword_markov/nup_markov_ctx2_subword.parquet +3 -0
  27. models/subword_markov/nup_markov_ctx2_subword_metadata.json +7 -0
  28. models/subword_markov/nup_markov_ctx3_subword.parquet +3 -0
  29. models/subword_markov/nup_markov_ctx3_subword_metadata.json +7 -0
  30. models/subword_markov/nup_markov_ctx4_subword.parquet +3 -0
  31. models/subword_markov/nup_markov_ctx4_subword_metadata.json +7 -0
  32. models/subword_ngram/nup_2gram_subword.parquet +3 -0
  33. models/subword_ngram/nup_2gram_subword_metadata.json +7 -0
  34. models/subword_ngram/nup_3gram_subword.parquet +3 -0
  35. models/subword_ngram/nup_3gram_subword_metadata.json +7 -0
  36. models/subword_ngram/nup_4gram_subword.parquet +3 -0
  37. models/subword_ngram/nup_4gram_subword_metadata.json +7 -0
  38. models/subword_ngram/nup_5gram_subword.parquet +3 -0
  39. models/subword_ngram/nup_5gram_subword_metadata.json +7 -0
  40. models/tokenizer/nup_tokenizer_16k.model +3 -0
  41. models/tokenizer/nup_tokenizer_16k.vocab +0 -0
  42. models/tokenizer/nup_tokenizer_32k.model +3 -0
  43. models/tokenizer/nup_tokenizer_32k.vocab +0 -0
  44. models/tokenizer/nup_tokenizer_8k.model +3 -0
  45. models/tokenizer/nup_tokenizer_8k.vocab +0 -0
  46. models/vocabulary/nup_vocabulary.parquet +3 -0
  47. models/vocabulary/nup_vocabulary_metadata.json +17 -0
  48. models/word_markov/nup_markov_ctx1_word.parquet +3 -0
  49. models/word_markov/nup_markov_ctx1_word_metadata.json +7 -0
  50. models/word_markov/nup_markov_ctx2_word.parquet +3 -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/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/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_law.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,760 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: nup
3
+ language_name: Nupe-Nupe-Tako
4
+ language_family: atlantic_other
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-atlantic_other
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: 4.182
37
+ - name: best_isotropy
38
+ type: isotropy
39
+ value: 0.0436
40
+ - name: vocabulary_size
41
+ type: vocab
42
+ value: 0
43
+ generated: 2026-01-10
44
+ ---
45
+
46
+ # Nupe-Nupe-Tako - Wikilangs Models
47
+ ## Comprehensive Research Report & Full Ablation Study
48
+
49
+ This repository contains NLP models trained and evaluated by Wikilangs, specifically on **Nupe-Nupe-Tako** 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
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
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
+ ![Tokenizer Compression](visualizations/tokenizer_compression.png)
82
+
83
+ ![Tokenizer Fertility](visualizations/tokenizer_fertility.png)
84
+
85
+ ![Tokenizer OOV](visualizations/tokenizer_oov.png)
86
+
87
+ ![Total Tokens](visualizations/tokenizer_total_tokens.png)
88
+
89
+ ### Results
90
+
91
+ | Vocab Size | Compression | Avg Token Len | UNK Rate | Total Tokens |
92
+ |------------|-------------|---------------|----------|--------------|
93
+ | **8k** | 3.745x | 3.75 | 0.1160% | 125,813 |
94
+ | **16k** | 4.044x | 4.05 | 0.1253% | 116,510 |
95
+ | **32k** | 4.182x 🏆 | 4.19 | 0.1296% | 112,656 |
96
+
97
+ ### Tokenization Examples
98
+
99
+ Below are sample sentences tokenized with each vocabulary size:
100
+
101
+ **Sample 1:** `Enna bolu zhi nyan Nasarawa wunyi enna na ge na dan ezhi nin Lafiya'o, Nasarawa....`
102
+
103
+ | Vocab | Tokens | Count |
104
+ |-------|--------|-------|
105
+ | 8k | `▁enna ▁bolu ▁zhi ▁nyan ▁nasarawa ▁wunyi ▁enna ▁na ▁ge ▁na ... (+21 more)` | 31 |
106
+ | 16k | `▁enna ▁bolu ▁zhi ▁nyan ▁nasarawa ▁wunyi ▁enna ▁na ▁ge ▁na ... (+21 more)` | 31 |
107
+ | 32k | `▁enna ▁bolu ▁zhi ▁nyan ▁nasarawa ▁wunyi ▁enna ▁na ▁ge ▁na ... (+19 more)` | 29 |
108
+
109
+ **Sample 2:** `Bàbò (Lagenaria siceraria)Blench, Roger. Nupe plants and trees: their names and ...`
110
+
111
+ | Vocab | Tokens | Count |
112
+ |-------|--------|-------|
113
+ | 8k | `▁b à b ò ▁( l agen aria ▁s ic ... (+30 more)` | 40 |
114
+ | 16k | `▁bàbò ▁( lagenaria ▁sicer aria ) blench , ▁roger . ... (+20 more)` | 30 |
115
+ | 32k | `▁bàbò ▁( lagenaria ▁siceraria ) blench , ▁roger . ▁nupe ... (+17 more)` | 27 |
116
+
117
+ **Sample 3:** `Aisha Muharrar (12 wunga amawuo), wungayi eyankachi yan America Television wunma...`
118
+
119
+ | Vocab | Tokens | Count |
120
+ |-------|--------|-------|
121
+ | 8k | `▁aisha ▁mu har r ar ▁( 1 2 ▁wunga ▁ama ... (+21 more)` | 31 |
122
+ | 16k | `▁aisha ▁mu harrar ▁( 1 2 ▁wunga ▁amawuo ), ▁wungayi ... (+16 more)` | 26 |
123
+ | 32k | `▁aisha ▁muharrar ▁( 1 2 ▁wunga ▁amawuo ), ▁wungayi ▁eyankachi ... (+14 more)` | 24 |
124
+
125
+
126
+ ### Key Findings
127
+
128
+ - **Best Compression:** 32k achieves 4.182x compression
129
+ - **Lowest UNK Rate:** 8k with 0.1160% unknown tokens
130
+ - **Trade-off:** Larger vocabularies improve compression but increase model size
131
+ - **Recommendation:** 32k vocabulary provides optimal balance for production use
132
+
133
+ ---
134
+ ## 2. N-gram Model Evaluation
135
+
136
+ ![N-gram Perplexity](visualizations/ngram_perplexity.png)
137
+
138
+ ![N-gram Unique](visualizations/ngram_unique.png)
139
+
140
+ ![N-gram Coverage](visualizations/ngram_coverage.png)
141
+
142
+ ### Results
143
+
144
+ | N-gram | Variant | Perplexity | Entropy | Unique N-grams | Top-100 Coverage | Top-1000 Coverage |
145
+ |--------|---------|------------|---------|----------------|------------------|-------------------|
146
+ | **2-gram** | Word | 941 | 9.88 | 1,983 | 37.8% | 81.5% |
147
+ | **2-gram** | Subword | 227 🏆 | 7.83 | 1,160 | 69.5% | 99.8% |
148
+ | **3-gram** | Word | 1,254 | 10.29 | 2,206 | 30.4% | 72.8% |
149
+ | **3-gram** | Subword | 1,537 | 10.59 | 7,263 | 32.0% | 77.7% |
150
+ | **4-gram** | Word | 2,126 | 11.05 | 3,106 | 21.3% | 56.3% |
151
+ | **4-gram** | Subword | 6,047 | 12.56 | 26,183 | 19.1% | 50.5% |
152
+ | **5-gram** | Word | 1,529 | 10.58 | 1,902 | 20.6% | 65.7% |
153
+ | **5-gram** | Subword | 12,552 | 13.62 | 42,618 | 14.0% | 38.2% |
154
+
155
+ ### Top 5 N-grams by Size
156
+
157
+ **2-grams (Word):**
158
+
159
+ | Rank | N-gram | Count |
160
+ |------|--------|-------|
161
+ | 1 | `wun yi` | 703 |
162
+ | 2 | `o nan` | 596 |
163
+ | 3 | `ah be` | 579 |
164
+ | 4 | `yi o` | 526 |
165
+ | 5 | `nan wun` | 439 |
166
+
167
+ **3-grams (Word):**
168
+
169
+ | Rank | N-gram | Count |
170
+ |------|--------|-------|
171
+ | 1 | `wun yi o` | 454 |
172
+ | 2 | `ah man u` | 238 |
173
+ | 3 | `yi o nan` | 218 |
174
+ | 4 | `nan ah kpeye` | 137 |
175
+ | 5 | `ah kpeye be` | 126 |
176
+
177
+ **4-grams (Word):**
178
+
179
+ | Rank | N-gram | Count |
180
+ |------|--------|-------|
181
+ | 1 | `wun yi o nan` | 187 |
182
+ | 2 | `nan ah kpeye be` | 113 |
183
+ | 3 | `from the original on` | 100 |
184
+ | 4 | `nan wun yi o` | 81 |
185
+ | 5 | `wun yi o wun` | 74 |
186
+
187
+ **5-grams (Word):**
188
+
189
+ | Rank | N-gram | Count |
190
+ |------|--------|-------|
191
+ | 1 | `archived from the original on` | 60 |
192
+ | 2 | `kin america wun yi o` | 44 |
193
+ | 3 | `wun yi o nan e` | 42 |
194
+ | 4 | `nyan kin america wun yi` | 39 |
195
+ | 5 | `wun yi o nan de` | 31 |
196
+
197
+ **2-grams (Subword):**
198
+
199
+ | Rank | N-gram | Count |
200
+ |------|--------|-------|
201
+ | 1 | `a n` | 16,676 |
202
+ | 2 | `n _` | 16,511 |
203
+ | 3 | `a _` | 11,948 |
204
+ | 4 | `e _` | 9,985 |
205
+ | 5 | `_ n` | 9,524 |
206
+
207
+ **3-grams (Subword):**
208
+
209
+ | Rank | N-gram | Count |
210
+ |------|--------|-------|
211
+ | 1 | `a n _` | 8,945 |
212
+ | 2 | `_ n a` | 4,610 |
213
+ | 3 | `n a n` | 4,016 |
214
+ | 4 | `u n _` | 3,299 |
215
+ | 5 | `y a n` | 3,272 |
216
+
217
+ **4-grams (Subword):**
218
+
219
+ | Rank | N-gram | Count |
220
+ |------|--------|-------|
221
+ | 1 | `_ n a n` | 3,560 |
222
+ | 2 | `_ w u n` | 3,054 |
223
+ | 3 | `y a n _` | 2,972 |
224
+ | 4 | `n y a n` | 2,846 |
225
+ | 5 | `_ n y a` | 2,812 |
226
+
227
+ **5-grams (Subword):**
228
+
229
+ | Rank | N-gram | Count |
230
+ |------|--------|-------|
231
+ | 1 | `_ n y a n` | 2,652 |
232
+ | 2 | `n y a n _` | 2,610 |
233
+ | 3 | `_ w u n _` | 1,957 |
234
+ | 4 | `_ n a n _` | 1,855 |
235
+ | 5 | `_ k i n _` | 980 |
236
+
237
+
238
+ ### Key Findings
239
+
240
+ - **Best Perplexity:** 2-gram (subword) with 227
241
+ - **Entropy Trend:** Decreases with larger n-grams (more predictable)
242
+ - **Coverage:** Top-1000 patterns cover ~38% of corpus
243
+ - **Recommendation:** 4-gram or 5-gram for best predictive performance
244
+
245
+ ---
246
+ ## 3. Markov Chain Evaluation
247
+
248
+ ![Markov Entropy](visualizations/markov_entropy.png)
249
+
250
+ ![Markov Contexts](visualizations/markov_contexts.png)
251
+
252
+ ![Markov Branching](visualizations/markov_branching.png)
253
+
254
+ ### Results
255
+
256
+ | Context | Variant | Avg Entropy | Perplexity | Branching Factor | Unique Contexts | Predictability |
257
+ |---------|---------|-------------|------------|------------------|-----------------|----------------|
258
+ | **1** | Word | 0.7131 | 1.639 | 3.99 | 12,109 | 28.7% |
259
+ | **1** | Subword | 1.1738 | 2.256 | 7.94 | 375 | 0.0% |
260
+ | **2** | Word | 0.2337 | 1.176 | 1.48 | 47,930 | 76.6% |
261
+ | **2** | Subword | 1.0147 | 2.021 | 5.23 | 2,976 | 0.0% |
262
+ | **3** | Word | 0.0783 | 1.056 | 1.12 | 70,052 | 92.2% |
263
+ | **3** | Subword | 0.7842 | 1.722 | 3.28 | 15,575 | 21.6% |
264
+ | **4** | Word | 0.0281 🏆 | 1.020 | 1.04 | 77,857 | 97.2% |
265
+ | **4** | Subword | 0.5165 | 1.430 | 2.10 | 51,106 | 48.3% |
266
+
267
+ ### Generated Text Samples (Word-based)
268
+
269
+ Below are text samples generated from each word-based Markov chain model:
270
+
271
+ **Context Size 1:**
272
+
273
+ 1. `nan enan wuncin de chikan toh finishing santatun theft auto gta enan siyasa ah de nan`
274
+ 2. `be playdata e ce yegboro santatun nyan payin wun yi pentagon etishi chi tun eya fiti`
275
+ 3. `nyan tswanyin chi ya toh yizhele be nyana gan nan ewun dan mini yetu wun de`
276
+
277
+ **Context Size 2:**
278
+
279
+ 1. `wun yi o egi enan bolu wuncin de yesan yizhe kaman wun yi o gap inc ga`
280
+ 2. `o nan de egwa du ya be lila keba nyan eni r b afropop pop ah be`
281
+ 3. `ah be donald wilson wun wugwa wun man yebo gan nan yi kpako ebo dindan nyan bolu`
282
+
283
+ **Context Size 3:**
284
+
285
+ 1. `wun yi o chi de kukukeba be eko yilozun e66 eko oud metha be d73 eko 2nd za`
286
+ 2. `ah man u august 26 edzo yesan chi stuntman ah be cowboy nan ah la dan prorodeo hall`
287
+ 3. `yi o nan e che bolu ta zuma o na ya kin retrieved 9 april santatun`
288
+
289
+ **Context Size 4:**
290
+
291
+ 1. `wun yi o nan de tswitswa gwata kampany motorola mobility zuk mobile ah be medio gwala lenovo ela apr...`
292
+ 2. `nan ah kpeye be doka madureira koma doka nan egi kin brazil nan yi coach toh bolu chechi nyan`
293
+ 3. `from the original on 29 august retrieved 3 september 2baba ga yi eza chaba nan gi riatwa mtv ema`
294
+
295
+
296
+ ### Generated Text Samples (Subword-based)
297
+
298
+ Below are text samples generated from each subword-based Markov chain model:
299
+
300
+ **Context Size 1:**
301
+
302
+ 1. `_dorn_(a_eand_n_`
303
+ 2. `a_e_nyann_nsa_e_`
304
+ 3. `n_wspr_betunatst`
305
+
306
+ **Context Size 2:**
307
+
308
+ 1. `angeraticoundan_1`
309
+ 2. `n_ellemi_eko_ment`
310
+ 3. `a_shot_nangi_larf`
311
+
312
+ **Context Size 3:**
313
+
314
+ 1. `an_de_li_gan_janu'`
315
+ 2. `_nan_zhe_fool_on_n`
316
+ 3. `nan._millege_u.s_k`
317
+
318
+ **Context Size 4:**
319
+
320
+ 1. `_nan_tswafo_gwegi_v`
321
+ 2. `_wun_marchived_18_a`
322
+ 3. `yan_payin_wun_yilaz`
323
+
324
+
325
+ ### Key Findings
326
+
327
+ - **Best Predictability:** Context-4 (word) with 97.2% predictability
328
+ - **Branching Factor:** Decreases with context size (more deterministic)
329
+ - **Memory Trade-off:** Larger contexts require more storage (51,106 contexts)
330
+ - **Recommendation:** Context-3 or Context-4 for text generation
331
+
332
+ ---
333
+ ## 4. Vocabulary Analysis
334
+
335
+ ![Zipf's Law](visualizations/zipf_law.png)
336
+
337
+ ![Top Words](visualizations/top20_words.png)
338
+
339
+ ![Coverage Curve](visualizations/vocab_coverage.png)
340
+
341
+ ### Statistics
342
+
343
+ | Metric | Value |
344
+ |--------|-------|
345
+ | Vocabulary Size | 4,787 |
346
+ | Total Tokens | 80,735 |
347
+ | Mean Frequency | 16.87 |
348
+ | Median Frequency | 3 |
349
+ | Frequency Std Dev | 107.35 |
350
+
351
+ ### Most Common Words
352
+
353
+ | Rank | Word | Frequency |
354
+ |------|------|-----------|
355
+ | 1 | nan | 3,508 |
356
+ | 2 | be | 2,579 |
357
+ | 3 | nyan | 2,500 |
358
+ | 4 | o | 2,417 |
359
+ | 5 | wun | 2,108 |
360
+ | 6 | yi | 1,722 |
361
+ | 7 | ah | 1,483 |
362
+ | 8 | de | 1,371 |
363
+ | 9 | chi | 1,047 |
364
+ | 10 | kin | 995 |
365
+
366
+ ### Least Common Words (from vocabulary)
367
+
368
+ | Rank | Word | Frequency |
369
+ |------|------|-----------|
370
+ | 1 | alderny | 2 |
371
+ | 2 | jersey | 2 |
372
+ | 3 | halmstad | 2 |
373
+ | 4 | basshunter | 2 |
374
+ | 5 | gunini | 2 |
375
+ | 6 | cox | 2 |
376
+ | 7 | wikitorial | 2 |
377
+ | 8 | rangaunu | 2 |
378
+ | 9 | kaiwaka | 2 |
379
+ | 10 | application | 2 |
380
+
381
+ ### Zipf's Law Analysis
382
+
383
+ | Metric | Value |
384
+ |--------|-------|
385
+ | Zipf Coefficient | 1.0809 |
386
+ | R² (Goodness of Fit) | 0.989658 |
387
+ | Adherence Quality | **excellent** |
388
+
389
+ ### Coverage Analysis
390
+
391
+ | Top N Words | Coverage |
392
+ |-------------|----------|
393
+ | Top 100 | 55.6% |
394
+ | Top 1,000 | 84.5% |
395
+ | Top 5,000 | 0.0% |
396
+ | Top 10,000 | 0.0% |
397
+
398
+ ### Key Findings
399
+
400
+ - **Zipf Compliance:** R²=0.9897 indicates excellent adherence to Zipf's law
401
+ - **High Frequency Dominance:** Top 100 words cover 55.6% of corpus
402
+ - **Long Tail:** -5,213 words needed for remaining 100.0% coverage
403
+
404
+ ---
405
+ ## 5. Word Embeddings Evaluation
406
+
407
+ ![Embedding Isotropy](visualizations/embedding_isotropy.png)
408
+
409
+ ![Similarity Matrix](visualizations/embedding_similarity.png)
410
+
411
+ ![t-SNE Words](visualizations/tsne_words.png)
412
+
413
+ ![t-SNE Sentences](visualizations/tsne_sentences.png)
414
+
415
+
416
+ ### 5.1 Cross-Lingual Alignment
417
+
418
+ ![Alignment Quality](visualizations/embedding_alignment_quality.png)
419
+
420
+ ![Multilingual t-SNE](visualizations/embedding_tsne_multilingual.png)
421
+
422
+
423
+ ### 5.2 Model Comparison
424
+
425
+ | Model | Dimension | Isotropy | Semantic Density | Alignment R@1 | Alignment R@10 |
426
+ |-------|-----------|----------|------------------|---------------|----------------|
427
+ | **mono_32d** | 32 | 0.0436 🏆 | 0.6527 | N/A | N/A |
428
+ | **mono_64d** | 64 | 0.0084 | 0.6738 | N/A | N/A |
429
+ | **mono_128d** | 128 | 0.0017 | 0.6732 | N/A | N/A |
430
+ | **aligned_32d** | 32 | 0.0436 | 0.6316 | 0.0040 | 0.0520 |
431
+ | **aligned_64d** | 64 | 0.0084 | 0.6533 | 0.0100 | 0.0480 |
432
+ | **aligned_128d** | 128 | 0.0017 | 0.6773 | 0.0040 | 0.0460 |
433
+
434
+ ### Key Findings
435
+
436
+ - **Best Isotropy:** mono_32d with 0.0436 (more uniform distribution)
437
+ - **Semantic Density:** Average pairwise similarity of 0.6603. Lower values indicate better semantic separation.
438
+ - **Alignment Quality:** Aligned models achieve up to 1.0% R@1 in cross-lingual retrieval.
439
+ - **Recommendation:** 128d aligned for best cross-lingual performance
440
+
441
+ ---
442
+ ## 6. Morphological Analysis (Experimental)
443
+
444
+ 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.
445
+
446
+ ### 6.1 Productivity & Complexity
447
+
448
+ | Metric | Value | Interpretation | Recommendation |
449
+ |--------|-------|----------------|----------------|
450
+ | Productivity Index | **5.000** | High morphological productivity | Reliable analysis |
451
+ | Idiomaticity Gap | **0.719** | High formulaic/idiomatic content | - |
452
+
453
+ ### 6.2 Affix Inventory (Productive Units)
454
+
455
+ 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.
456
+
457
+ #### Productive Prefixes
458
+ | Prefix | Examples |
459
+ |--------|----------|
460
+ | `-s` | sati, southern, stage |
461
+ | `-a` | australian, alaska, adara |
462
+ | `-b` | bodo, bididi, behind |
463
+ | `-m` | my, minority, miss |
464
+ | `-e` | ezagbakozhi, etin, egwagan |
465
+ | `-g` | gwala, gap, ganwagi |
466
+ | `-k` | kpeuye, kamina, kala |
467
+ | `-c` | continent, climate, cambridge |
468
+
469
+ #### Productive Suffixes
470
+ | Suffix | Examples |
471
+ |--------|----------|
472
+ | `-n` | australian, etin, dukun |
473
+ | `-a` | gwala, alaska, tarawa |
474
+ | `-i` | ezagbakozhi, ganwagi, dasuki |
475
+ | `-e` | kpeuye, climate, kpeye |
476
+ | `-s` | this, miss, macleans |
477
+ | `-r` | register, factor, myanmar |
478
+ | `-an` | australian, urban, egwagan |
479
+ | `-o` | ronaldinho, bodo, kano |
480
+
481
+ ### 6.3 Bound Stems (Lexical Roots)
482
+
483
+ 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.
484
+
485
+ | Stem | Cohesion | Substitutability | Examples |
486
+ |------|----------|------------------|----------|
487
+ | `angi` | 1.30x | 15 contexts | dangi, nangi, sangi |
488
+
489
+ ### 6.4 Affix Compatibility (Co-occurrence)
490
+
491
+ This table shows which prefixes and suffixes most frequently co-occur on the same stems, revealing the 'stacking' rules of the language's morphology.
492
+
493
+ | Prefix | Suffix | Frequency | Examples |
494
+ |--------|--------|-----------|----------|
495
+ | `-e` | `-i` | 29 words | ezagbakozhi, emi |
496
+ | `-e` | `-n` | 29 words | etin, egwagan |
497
+ | `-a` | `-a` | 22 words | alaska, adara |
498
+ | `-c` | `-n` | 21 words | canadian, children |
499
+ | `-a` | `-s` | 21 words | assets, athletes |
500
+ | `-k` | `-a` | 20 words | kamina, kala |
501
+ | `-m` | `-i` | 19 words | mardini, makarini |
502
+ | `-c` | `-s` | 19 words | chillies, christmas |
503
+ | `-s` | `-s` | 19 words | ships, s |
504
+ | `-m` | `-a` | 18 words | mehsana, mokwa |
505
+
506
+ ### 6.5 Recursive Morpheme Segmentation
507
+
508
+ Using **Recursive Hierarchical Substitutability**, we decompose complex words into their constituent morphemes. This approach handles nested affixes (e.g., `prefix-prefix-root-suffix`).
509
+
510
+ | Word | Suggested Split | Confidence | Stem |
511
+ |------|-----------------|------------|------|
512
+ | kabalagala | **`kabalag-al-a`** | 7.5 | `al` |
513
+ | gbagbangi | **`g-ba-gbangi`** | 7.5 | `gbangi` |
514
+ | augustine | **`august-in-e`** | 7.5 | `in` |
515
+ | chinwanchi | **`ch-in-wanchi`** | 7.5 | `wanchi` |
516
+ | musulunci | **`musulu-n-ci`** | 7.5 | `n` |
517
+ | universiade | **`universia-d-e`** | 7.5 | `d` |
518
+ | kamindondo | **`ka-mi-ndondo`** | 6.0 | `ndondo` |
519
+ | enyanichi | **`enyan-ic-hi`** | 6.0 | `enyan` |
520
+ | brazilian | **`brazil-i-an`** | 6.0 | `brazil` |
521
+ | ezhiminsun | **`ezhimi-ns-un`** | 6.0 | `ezhimi` |
522
+ | journalist | **`journal-i-st`** | 6.0 | `journal` |
523
+ | engineering | **`engineer-i-ng`** | 6.0 | `engineer` |
524
+ | nationale | **`national-e`** | 4.5 | `national` |
525
+ | amalouchio | **`a-ma-louchio`** | 4.5 | `louchio` |
526
+ | commissioner | **`commission-er`** | 4.5 | `commission` |
527
+
528
+ ### 6.6 Linguistic Interpretation
529
+
530
+ > **Automated Insight:**
531
+ The language Nupe-Nupe-Tako shows high morphological productivity. The subword models are significantly more efficient than word models, suggesting a rich system of affixation or compounding.
532
+
533
+ > **Note on Idiomaticity:** The high Idiomaticity Gap suggests a large number of frequent multi-word expressions or formulaic sequences that are statistically distinct from their component parts.
534
+
535
+ ---
536
+ ## 7. Summary & Recommendations
537
+
538
+ ![Performance Dashboard](visualizations/performance_dashboard.png)
539
+
540
+ ### Production Recommendations
541
+
542
+ | Component | Recommended | Rationale |
543
+ |-----------|-------------|-----------|
544
+ | Tokenizer | **32k BPE** | Best compression (4.18x) |
545
+ | N-gram | **2-gram** | Lowest perplexity (227) |
546
+ | Markov | **Context-4** | Highest predictability (97.2%) |
547
+ | Embeddings | **100d** | Balanced semantic capture and isotropy |
548
+
549
+
550
+ ---
551
+ ## Appendix: Metrics Glossary & Interpretation Guide
552
+
553
+ This section provides definitions, intuitions, and guidance for interpreting the metrics used throughout this report.
554
+
555
+ ### Tokenizer Metrics
556
+
557
+ **Compression Ratio**
558
+ > *Definition:* The ratio of characters to tokens (chars/token). Measures how efficiently the tokenizer represents text.
559
+ >
560
+ > *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.
561
+ >
562
+ > *What to seek:* Higher is generally better for efficiency, but extremely high compression may indicate overly aggressive merging that loses morphological information.
563
+
564
+ **Average Token Length (Fertility)**
565
+ > *Definition:* Mean number of characters per token produced by the tokenizer.
566
+ >
567
+ > *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.
568
+ >
569
+ > *What to seek:* Balance between 2-5 characters for most languages. Arabic/morphologically-rich languages may benefit from slightly longer tokens.
570
+
571
+ **Unknown Token Rate (OOV Rate)**
572
+ > *Definition:* Percentage of tokens that map to the unknown/UNK token, indicating words the tokenizer cannot represent.
573
+ >
574
+ > *Intuition:* Lower OOV means better vocabulary coverage. High OOV indicates the tokenizer encounters many unseen character sequences.
575
+ >
576
+ > *What to seek:* Below 1% is excellent; below 5% is acceptable. BPE tokenizers typically achieve very low OOV due to subword fallback.
577
+
578
+ ### N-gram Model Metrics
579
+
580
+ **Perplexity**
581
+ > *Definition:* Measures how "surprised" the model is by test data. Mathematically: 2^(cross-entropy). Lower values indicate better prediction.
582
+ >
583
+ > *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.
584
+ >
585
+ > *What to seek:* Lower is better. Perplexity decreases with larger n-grams (more context). Values vary widely by language and corpus size.
586
+
587
+ **Entropy**
588
+ > *Definition:* Average information content (in bits) needed to encode the next token given the context. Related to perplexity: perplexity = 2^entropy.
589
+ >
590
+ > *Intuition:* High entropy means high uncertainty/randomness; low entropy means predictable patterns. Natural language typically has entropy between 1-4 bits per character.
591
+ >
592
+ > *What to seek:* Lower entropy indicates more predictable text patterns. Entropy should decrease as n-gram size increases.
593
+
594
+ **Coverage (Top-K)**
595
+ > *Definition:* Percentage of corpus occurrences explained by the top K most frequent n-grams.
596
+ >
597
+ > *Intuition:* High coverage with few patterns indicates repetitive/formulaic text; low coverage suggests diverse vocabulary usage.
598
+ >
599
+ > *What to seek:* Depends on use case. For language modeling, moderate coverage (40-60% with top-1000) is typical for natural text.
600
+
601
+ ### Markov Chain Metrics
602
+
603
+ **Average Entropy**
604
+ > *Definition:* Mean entropy across all contexts, measuring average uncertainty in next-word prediction.
605
+ >
606
+ > *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).
607
+ >
608
+ > *What to seek:* Decreasing entropy with larger context sizes. Very low entropy (<0.1) indicates highly deterministic transitions.
609
+
610
+ **Branching Factor**
611
+ > *Definition:* Average number of unique next tokens observed for each context.
612
+ >
613
+ > *Intuition:* High branching = many possible continuations (flexible but uncertain); low branching = few options (predictable but potentially repetitive).
614
+ >
615
+ > *What to seek:* Branching factor should decrease with context size. Values near 1.0 indicate nearly deterministic chains.
616
+
617
+ **Predictability**
618
+ > *Definition:* Derived metric: (1 - normalized_entropy) × 100%. Indicates how deterministic the model's predictions are.
619
+ >
620
+ > *Intuition:* 100% predictability means the next word is always certain; 0% means completely random. Real text falls between these extremes.
621
+ >
622
+ > *What to seek:* Higher predictability for text generation quality, but too high (>98%) may produce repetitive output.
623
+
624
+ ### Vocabulary & Zipf's Law Metrics
625
+
626
+ **Zipf's Coefficient**
627
+ > *Definition:* The slope of the log-log plot of word frequency vs. rank. Zipf's law predicts this should be approximately -1.
628
+ >
629
+ > *Intuition:* A coefficient near -1 indicates the corpus follows natural language patterns where a few words are very common and most words are rare.
630
+ >
631
+ > *What to seek:* Values between -0.8 and -1.2 indicate healthy natural language distribution. Deviations may suggest domain-specific or artificial text.
632
+
633
+ **R² (Coefficient of Determination)**
634
+ > *Definition:* Measures how well the linear fit explains the frequency-rank relationship. Ranges from 0 to 1.
635
+ >
636
+ > *Intuition:* R² near 1.0 means the data closely follows Zipf's law; lower values indicate deviation from expected word frequency patterns.
637
+ >
638
+ > *What to seek:* R² > 0.95 is excellent; > 0.99 indicates near-perfect Zipf adherence typical of large natural corpora.
639
+
640
+ **Vocabulary Coverage**
641
+ > *Definition:* Cumulative percentage of corpus tokens accounted for by the top N words.
642
+ >
643
+ > *Intuition:* Shows how concentrated word usage is. If top-100 words cover 50% of text, the corpus relies heavily on common words.
644
+ >
645
+ > *What to seek:* Top-100 covering 30-50% is typical. Higher coverage indicates more repetitive text; lower suggests richer vocabulary.
646
+
647
+ ### Word Embedding Metrics
648
+
649
+ **Isotropy**
650
+ > *Definition:* Measures how uniformly distributed vectors are in the embedding space. Computed as the ratio of minimum to maximum singular values.
651
+ >
652
+ > *Intuition:* High isotropy (near 1.0) means vectors spread evenly in all directions; low isotropy means vectors cluster in certain directions, reducing expressiveness.
653
+ >
654
+ > *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.
655
+
656
+ **Average Norm**
657
+ > *Definition:* Mean magnitude (L2 norm) of word vectors in the embedding space.
658
+ >
659
+ > *Intuition:* Indicates the typical "length" of vectors. Consistent norms suggest stable training; high variance may indicate some words are undertrained.
660
+ >
661
+ > *What to seek:* Relatively consistent norms across models. The absolute value matters less than consistency (low std deviation).
662
+
663
+ **Cosine Similarity**
664
+ > *Definition:* Measures angular similarity between vectors, ranging from -1 (opposite) to 1 (identical direction).
665
+ >
666
+ > *Intuition:* Words with similar meanings should have high cosine similarity. This is the standard metric for semantic relatedness in embeddings.
667
+ >
668
+ > *What to seek:* Semantically related words should score > 0.5; unrelated words should be near 0. Synonyms often score > 0.7.
669
+
670
+ **t-SNE Visualization**
671
+ > *Definition:* t-Distributed Stochastic Neighbor Embedding - a dimensionality reduction technique that preserves local structure for visualization.
672
+ >
673
+ > *Intuition:* Clusters in t-SNE plots indicate groups of semantically related words. Spread indicates vocabulary diversity; tight clusters suggest semantic coherence.
674
+ >
675
+ > *What to seek:* Meaningful clusters (e.g., numbers together, verbs together). Avoid over-interpreting distances - t-SNE preserves local, not global, structure.
676
+
677
+ ### General Interpretation Guidelines
678
+
679
+ 1. **Compare within model families:** Metrics are most meaningful when comparing models of the same type (e.g., 8k vs 64k tokenizer).
680
+ 2. **Consider trade-offs:** Better performance on one metric often comes at the cost of another (e.g., compression vs. OOV rate).
681
+ 3. **Context matters:** Optimal values depend on downstream tasks. Text generation may prioritize different metrics than classification.
682
+ 4. **Corpus influence:** All metrics are influenced by corpus characteristics. Wikipedia text differs from social media or literature.
683
+ 5. **Language-specific patterns:** Morphologically rich languages (like Arabic) may show different optimal ranges than analytic languages.
684
+
685
+
686
+ ### Visualizations Index
687
+
688
+ | Visualization | Description |
689
+ |---------------|-------------|
690
+ | Tokenizer Compression | Compression ratios by vocabulary size |
691
+ | Tokenizer Fertility | Average token length by vocabulary |
692
+ | Tokenizer OOV | Unknown token rates |
693
+ | Tokenizer Total Tokens | Total tokens by vocabulary |
694
+ | N-gram Perplexity | Perplexity by n-gram size |
695
+ | N-gram Entropy | Entropy by n-gram size |
696
+ | N-gram Coverage | Top pattern coverage |
697
+ | N-gram Unique | Unique n-gram counts |
698
+ | Markov Entropy | Entropy by context size |
699
+ | Markov Branching | Branching factor by context |
700
+ | Markov Contexts | Unique context counts |
701
+ | Zipf's Law | Frequency-rank distribution with fit |
702
+ | Vocab Frequency | Word frequency distribution |
703
+ | Top 20 Words | Most frequent words |
704
+ | Vocab Coverage | Cumulative coverage curve |
705
+ | Embedding Isotropy | Vector space uniformity |
706
+ | Embedding Norms | Vector magnitude distribution |
707
+ | Embedding Similarity | Word similarity heatmap |
708
+ | Nearest Neighbors | Similar words for key terms |
709
+ | t-SNE Words | 2D word embedding visualization |
710
+ | t-SNE Sentences | 2D sentence embedding visualization |
711
+ | Position Encoding | Encoding method comparison |
712
+ | Model Sizes | Storage requirements |
713
+ | Performance Dashboard | Comprehensive performance overview |
714
+
715
+ ---
716
+ ## About This Project
717
+
718
+ ### Data Source
719
+
720
+ Models trained on [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly) - a monthly snapshot of Wikipedia articles across 300+ languages.
721
+
722
+ ### Project
723
+
724
+ A project by **[Wikilangs](https://wikilangs.org)** - Open-source NLP models for every Wikipedia language.
725
+
726
+ ### Maintainer
727
+
728
+ [Omar Kamali](https://omarkamali.com) - [Omneity Labs](https://omneitylabs.com)
729
+
730
+ ### Citation
731
+
732
+ If you use these models in your research, please cite:
733
+
734
+ ```bibtex
735
+ @misc{wikilangs2025,
736
+ author = {Kamali, Omar},
737
+ title = {Wikilangs: Open NLP Models for Wikipedia Languages},
738
+ year = {2025},
739
+ doi = {10.5281/zenodo.18073153},
740
+ publisher = {Zenodo},
741
+ url = {https://huggingface.co/wikilangs}
742
+ institution = {Omneity Labs}
743
+ }
744
+ ```
745
+
746
+ ### License
747
+
748
+ MIT License - Free for academic and commercial use.
749
+
750
+ ### Links
751
+
752
+ - 🌐 Website: [wikilangs.org](https://wikilangs.org)
753
+ - 🤗 Models: [huggingface.co/wikilangs](https://huggingface.co/wikilangs)
754
+ - 📊 Data: [wikipedia-monthly](https://huggingface.co/datasets/omarkamali/wikipedia-monthly)
755
+ - 👤 Author: [Omar Kamali](https://huggingface.co/omarkamali)
756
+ - 🤝 Sponsor: [Featherless AI](https://featherless.ai)
757
+ ---
758
+ *Generated by Wikilangs Models Pipeline*
759
+
760
+ *Report Date: 2026-01-10 16:17:39*
models/embeddings/aligned/nup_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f3bc540ec52bfdf5818a47d25d2afad0a243dfed4fff0e311f932a9f89a4551
3
+ size 1025808285
models/embeddings/aligned/nup_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 128, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/nup_128d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c00bd5a766c9cd9f28302c6881ac376bf91c66cc554c537e23720719c5fd3d0f
3
+ size 65664
models/embeddings/aligned/nup_128d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
3
+ "dimension": 128,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1009,
7
+ "vocab_size": 1740
8
+ }
models/embeddings/aligned/nup_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d91b008de4ef04b737cf59dd0880e7f6ebb89846b7a82378a5b7847b3965221e
3
+ size 256471965
models/embeddings/aligned/nup_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 32, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/nup_32d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bab9d8b6f28369eed533c7731811f81b8a6d6cbc4efe3597c3ab1543ed54905
3
+ size 4224
models/embeddings/aligned/nup_32d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
3
+ "dimension": 32,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1009,
7
+ "vocab_size": 1740
8
+ }
models/embeddings/aligned/nup_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a8661ab5084127479f9917423fe7cc2dba58984c09e263508d22ac9cbaa750c
3
+ size 512917405
models/embeddings/aligned/nup_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 64, "max_seq_len": 512, "is_aligned": true}
models/embeddings/aligned/nup_64d.projection.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fa51866d1357f9a9d3585a55e2a6758277253bedefc35e8c8e9421cfa083d8c
3
+ size 16512
models/embeddings/aligned/nup_64d_metadata.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
3
+ "dimension": 64,
4
+ "version": "aligned",
5
+ "hub_language": "en",
6
+ "seed_vocab_size": 1009,
7
+ "vocab_size": 1740
8
+ }
models/embeddings/monolingual/nup_128d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f3bc540ec52bfdf5818a47d25d2afad0a243dfed4fff0e311f932a9f89a4551
3
+ size 1025808285
models/embeddings/monolingual/nup_128d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 128, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/nup_128d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
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": 5
14
+ },
15
+ "vocab_size": 1740
16
+ }
models/embeddings/monolingual/nup_32d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d91b008de4ef04b737cf59dd0880e7f6ebb89846b7a82378a5b7847b3965221e
3
+ size 256471965
models/embeddings/monolingual/nup_32d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 32, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/nup_32d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
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": 5
14
+ },
15
+ "vocab_size": 1740
16
+ }
models/embeddings/monolingual/nup_64d.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a8661ab5084127479f9917423fe7cc2dba58984c09e263508d22ac9cbaa750c
3
+ size 512917405
models/embeddings/monolingual/nup_64d.meta.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"lang": "nup", "dim": 64, "max_seq_len": 512, "is_aligned": false}
models/embeddings/monolingual/nup_64d_metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
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": 5
14
+ },
15
+ "vocab_size": 1740
16
+ }
models/subword_markov/nup_markov_ctx1_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8571cc122c715c501f6027ef7cad962e4aaf4b53aa621d73de95557f3478bea
3
+ size 25918
models/subword_markov/nup_markov_ctx1_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_contexts": 375,
6
+ "total_transitions": 470149
7
+ }
models/subword_markov/nup_markov_ctx2_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc365cd1e0b8c6e1b98b86ae3fdbab1b30d8ab26a711d00b2a1710fc974d8880
3
+ size 121448
models/subword_markov/nup_markov_ctx2_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 2,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_contexts": 2976,
6
+ "total_transitions": 469227
7
+ }
models/subword_markov/nup_markov_ctx3_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef13cf5bf5434af6d73a37cdd4d71bb3f5bd38d5fc045da15d3a100830b9603b
3
+ size 365720
models/subword_markov/nup_markov_ctx3_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 3,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_contexts": 15575,
6
+ "total_transitions": 468305
7
+ }
models/subword_markov/nup_markov_ctx4_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21d29c2c5ff9ba5759195959256671b582d929ca46a97dafe5b9f80046afb019
3
+ size 876471
models/subword_markov/nup_markov_ctx4_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 4,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_contexts": 51106,
6
+ "total_transitions": 467383
7
+ }
models/subword_ngram/nup_2gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8982ef83b477b2f086fd76d263f6a50f4df0f5578d16b7ad3ed26687731f687
3
+ size 16396
models/subword_ngram/nup_2gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 2,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_ngrams": 1160,
6
+ "total_ngrams": 470149
7
+ }
models/subword_ngram/nup_3gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d13a184bd17e5a8fad8334a65c4cf958c09f190c07b31bba79ebae4c0c84f8e
3
+ size 80256
models/subword_ngram/nup_3gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 3,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_ngrams": 7263,
6
+ "total_ngrams": 469227
7
+ }
models/subword_ngram/nup_4gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a78c887862dfcf3725789d8ff502758293775254f36dfe99803bbc6a93949333
3
+ size 306852
models/subword_ngram/nup_4gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 4,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_ngrams": 26183,
6
+ "total_ngrams": 468305
7
+ }
models/subword_ngram/nup_5gram_subword.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33b103639c871d92e81c196e796f20b871d8bc208003b6a9899d87bebd84d760
3
+ size 521796
models/subword_ngram/nup_5gram_subword_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 5,
3
+ "variant": "subword",
4
+ "language": "nup",
5
+ "unique_ngrams": 42618,
6
+ "total_ngrams": 467383
7
+ }
models/tokenizer/nup_tokenizer_16k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6eb5a4c300b2c16992fa2fc669d38b07b2aae377bc3bc56640be9111a40c1e98
3
+ size 503979
models/tokenizer/nup_tokenizer_16k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/nup_tokenizer_32k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75c88b8d56c998acfae8e7bb4b4ad34cd540af99e821cea11a554281404cdceb
3
+ size 744967
models/tokenizer/nup_tokenizer_32k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/tokenizer/nup_tokenizer_8k.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6330427405a5720f5da531dba9409dc549941fd59786b055412f74a921ed5e31
3
+ size 368815
models/tokenizer/nup_tokenizer_8k.vocab ADDED
The diff for this file is too large to render. See raw diff
 
models/vocabulary/nup_vocabulary.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0048e9a668523f102d4a038ad915b9ecbad2c8ca8a7d314ef9d299db714b9fd3
3
+ size 76027
models/vocabulary/nup_vocabulary_metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "language": "nup",
3
+ "vocabulary_size": 4787,
4
+ "variant": "full",
5
+ "statistics": {
6
+ "type_token_ratio": 0.1376307213662015,
7
+ "coverage": {
8
+ "top_100": 0.5098388763356005,
9
+ "top_1000": 0.774529062439678,
10
+ "top_5000": 0.9191429447365134,
11
+ "top_10000": 0.9759166108392283
12
+ },
13
+ "hapax_count": 7334,
14
+ "hapax_ratio": 0.6050655886478014,
15
+ "total_documents": 922
16
+ }
17
+ }
models/word_markov/nup_markov_ctx1_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17c398578757d76fda1b2a953241591b09af079d27820d1bcc4c2042ba7a2a5e
3
+ size 374597
models/word_markov/nup_markov_ctx1_word_metadata.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "context_size": 1,
3
+ "variant": "word",
4
+ "language": "nup",
5
+ "unique_contexts": 12109,
6
+ "total_transitions": 87147
7
+ }
models/word_markov/nup_markov_ctx2_word.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c07f70a734386b93789a02545026993d0ed213b361bdd95282297a27a4817a69
3
+ size 843703