Downloads · 30 days
0
bilalabic/my-tokenizer-turkish
my-tokenizer-turkish is a machine learning model from bilalabic. 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.
This repository contains a small byte-level BPE tokenizer trained on a Turkish Wikipedia text corpus.
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2026
Repo size
3 GB
Likes
0
Public
Click a slice to open those files.
.txt3 GB · 100%
From the Hugging Face model README
This repository contains a small byte-level BPE tokenizer trained on a Turkish Wikipedia text corpus.
It is designed as a lightweight, general-purpose tokenizer for Turkish text. The tokenizer is packaged in the Hugging Face format so it can be loaded with AutoTokenizer or PreTrainedTokenizerFast.
The tokenizer was trained on a plain-text .txt corpus included in this repository.
.txt training corpus stored alongside the tokenizer filesKeeping the raw TXT file in the same Hugging Face repository makes the training data easy to inspect and reproduce.
.txt corpus<unk>, <pad>, <bos>, <eos>This tokenizer is intended for Turkish language experiments, especially when a compact subword tokenizer is preferred over a character-level vocabulary.
It works well as a general tokenizer for downstream language modeling, text generation, and other NLP tasks on Turkish text.
The tokenizer was trained with the tokenizers library using a BPE model and the full byte-level alphabet. This makes the tokenizer robust to arbitrary input text, including punctuation, symbols, and unseen character sequences.
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("bilalabic/my-turkish-tokenizer")
text = "Merhaba, nasılsın?"
token_ids = tokenizer.encode(text)
tokens = tokenizer.convert_ids_to_tokens(token_ids)
print(tokens)
print(token_ids)
print(tokenizer.decode(token_ids))
tokenizer.jsontokenizer_config.jsonMIT