Downloads · 30 days
0
dovcharenko/spm_uk_64k
spm_uk_64k is a machine learning model from dovcharenko. 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 apache-2.0.
This is a SentencePiece unigram tokenizer trained on Ukrainian text corpus with a vocabulary size of 64,000 tokens.
Downloads · 30 days
0
Access
Public
Updated Jan 27, 2026
Repo size
1.7 MB
Likes
0
Public
Click a slice to open those files.
.model1.7 MB · 99%
From the Hugging Face model README
This is a SentencePiece unigram tokenizer trained on Ukrainian text corpus with a vocabulary size of 64,000 tokens.
The tokenizer includes the following special tokens:
<s> - Beginning of sequence</s> - End of sequence<unk> - Unknown token<pad> - Padding token<system>, </system> - System message tags<user>, </user> - User message tags<assistant>, </assistant> - Assistant message tags<reasoning>, </reasoning> - Reasoning tags<tool_call>, </tool_result> - Tool interaction tags<final>, </final> - Final response tags<json>, </json> - JSON formatting tags<tool>, </tool> - Tool tagsfrom transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
"dovcharenko/spm_uk_64k",
trust_remote_code=True
)
# Encode text
text = "Україна — це країна в Східній Європі"
tokens = tokenizer.encode(text, add_special_tokens=False)
print(f"Tokens: {len(tokens)}")
# Decode tokens
decoded = tokenizer.decode(tokens)
print(f"Decoded: {decoded}")
Based on testing on Ukrainian corpus:
If you use this tokenizer, please cite:
@misc{spm_uk_64k_tokenizer,
title={Ukrainian SentencePiece Tokenizer (64K Vocabulary)},
author={Dovcharenko},
year={2024},
publisher={HuggingFace}
}
Apache 2.0