Downloads · 30 days
0
Msok99/km-bpe-md-v3-spm
km-bpe-md-v3-spm is a machine learning model from Msok99. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
BPE-MD-v3-SPM is a hybrid Khmer tokenizer that combines: - BPE-MD (Morphology-Driven) rules for Khmer word segmentation, and - SentencePiece BPE modeling for subword learning, coverage, and byte safety.
Downloads · 30 days
0
Access
Public
Updated Oct 8, 2025
Repo size
680 KB
Likes
0
Public
Click a slice to open those files.
.model680 KB · 99%
From the Hugging Face model README
BPE-MD-v3-SPM is a hybrid Khmer tokenizer that combines:
This tokenizer is built for both Khmer and bilingual (Khmer + English + Math) text. It handles Unicode normalization, symbols, and numerics gracefully — ideal for LLMs, translation models, or RAG systems.
(from transformers import T5Tokenizer)
(tok = T5Tokenizer.from_pretrained("Msok99/km-bpe-md-v3-spm"))
(text = "ខ្ញុំបានគណនាថា √25 + 3² = 34")
(print(tok.tokenize(text)))
(print(tok.decode(tok.encode(text))))
MIT