Downloads · 30 days
0
Uunan/turkish-bpe-tokenizer
turkish-bpe-tokenizer is a machine learning model from Uunan. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tokenizers. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Jul 15, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json5.2 MB · 100%
From the Hugging Face model README
A Turkish Byte Pair Encoding (BPE) tokenizer trained from scratch using the Hugging Face tokenizers library.
Türkçe metinler üzerinde sıfırdan eğitilmiş, 65.536 sözlük boyutuna sahip bir Byte Pair Encoding (BPE) tokenizer'ıdır.
English
This tokenizer was trained from scratch using the Hugging Face tokenizers library and the Byte Pair Encoding (BPE) algorithm. It was trained on a large Turkish synthetic corpus and is intended for educational purposes, language model pretraining, and NLP research.
Türkçe
Bu tokenizer, Hugging Face tokenizers kütüphanesi kullanılarak Byte Pair Encoding (BPE) algoritması ile sıfırdan eğitilmiştir. Büyük ölçekli Türkçe sentetik bir corpus üzerinde eğitilmiş olup eğitim, araştırma ve Türkçe dil modeli geliştirme çalışmaları için hazırlanmıştır.
Dataset:
Uunan/turkish-synthetic-corpus
https://huggingface.co/datasets/Uunan/turkish-synthetic-corpus
| Property | Value |
|---|---|
| Language | Turkish |
| Samples | 436,573 |
| Approximate Size | ~445 MB |
| Format | Text |
The tokenizer was trained using all samples in the dataset.
Tokenizer, veri setindeki 436.573 örneğin tamamı kullanılarak eğitilmiştir.
| Parameter | Value |
|---|---|
| Algorithm | Byte Pair Encoding (BPE) |
| Vocabulary Size | 65,536 |
| Library | Hugging Face Tokenizers |
| Normalizer | NFC |
| PreTokenizer | ByteLevel |
| Decoder | ByteLevel |
| Training Method | train_from_iterator() |
| Token | Türkçe | English |
|---|---|---|
<pad> | Kısa dizileri aynı uzunluğa getirmek için kullanılan dolgu (padding) belirtecidir. | Padding token used to make sequences the same length. |
<unk> | Sözlükte bulunmayan kelimeleri temsil eder. | Represents unknown or out-of-vocabulary tokens. |
<bos> | Dizinin başlangıcını belirtir. | Beginning Of Sequence token. |
<eos> | Dizinin sonunu belirtir. | End Of Sequence token. |
from tokenizers import Tokenizer
tokenizer = Tokenizer.from_file("tokenizer.json")
text = "Türkiye yapay zekâ alanında büyük yatırımlar yapıyor."
encoded = tokenizer.encode(text)
print(encoded.tokens)
print(encoded.ids)
decoded = tokenizer.decode(encoded.ids)
print(decoded)
.
├── tokenizer.json
└── train_tokenizer.py
Input
Türkiye yapay zekâ alanında büyük yatırımlar yapıyor.
Example Tokens
["<bos>",
"Türkiye",
"Ġyapay",
"Ġzekâ",
"Ġalanında",
"Ġbüyük",
"Ġyatırımlar",
"Ġyapıyor",
".",
"<eos>"]
Decoded
Türkiye yapay zekâ alanında büyük yatırımlar yapıyor.
Note / Not
ByteLevel tokenizer'larında görülen
Ġ,Ã,Ägibi karakterler bir hata değildir. Bunlar tokenizer'ın byte seviyesindeki iç gösterimidir. Encode → Decode işlemi sonunda metin eksiksiz olarak geri elde edilir.
MIT License
Created by Uğurhan Çolak.