Views
No views yet
oim-script-equitable-regional-sp-bpe-32k-native-weighted-v0:
a ~3.85× larger corpus (504k rows), a 48k vocab, and a stronger native upweight
(30×) that keeps the native-script corpus share at ~32% despite the larger Latin
pool. Research/audit artifact and a candidate base for tokenizer surgery — not a
drop-in LLM tokenizer replacement without (continued) pretraining.google/gemma-4-E2B-it. Measured on a held-out mix
of Indonesian/regional Latin and native-script text, v1 vs Gemma's own tokenizer
(262k vocab):| held-out slice | Gemma-4-E2B-it | cl100k_base | OIM v0 (32k) | OIM v1 (48k) | v1 vs Gemma |
|---|---|---|---|---|---|
| mixed, tokens/word | 2.026 | 2.407 | 1.539 | 1.464 | −27.7% |
| Latin, tokens/word | 1.990 | 2.373 | 1.541 | 1.467 | −26.3% |
| native aksara, tokens/word | 5.785 | 5.972 | 1.313 | 1.191 | −79.4% (4.9×) |
| native, chars/token | 0.50 | 0.49 | 2.21 | 2.43 | — |
| native, fragmented words | 78.0% | 82.6% | 36.9% | 30.5% | — |
| slice | OIM v0 (32k) | OIM v1 (48k) | change |
|---|---|---|---|
| mixed tokens/word | 1.539 | 1.464 | −4.9% |
| Latin tokens/word | 1.541 | 1.467 | −4.8% |
| native tokens/word | 1.313 | 1.191 | −9.3% |
| mixed fragmented words | 22.9% | 18.6% | −4.3 pts |
| native fragmented words | 36.9% | 30.5% | −6.4 pts |
data.statmt.org/cc-100) — derived from Common Crawl; Common Crawl terms.wikimedia/wikipedia) — CC-BY-SA 4.0; attribution to Wikipedia contributors.NusaAksara/NusaAksara, ACL 2025) — see dataset card for license.license: other reflects mixed provenance. Honor each source's
attribution/share-alike terms; to assign one SPDX license to the model files
alone, treat them as CC-BY-SA-4.0 to respect the Wikipedia share-alike input.oim-script-equitable-regional-v1-native-weighted-48k-sp-bpe.model — SentencePiece modeloim-script-equitable-regional-v1-native-weighted-48k-sp-bpe.vocab — vocabularyMANIFEST.json — file hashes and metadatabenchmarks/*.json — held-out comparison vs Gemma / cl100k / v0provenance/*.json — corpus build manifest (sources, weights, row counts)1import sentencepiece as spm
2sp = spm.SentencePieceProcessor(
3 model_file="oim-script-equitable-regional-v1-native-weighted-48k-sp-bpe.model"
4)
5print(sp.encode("Om Swastiastu, titiang saking Bali.", out_type=str))