erdemKocaogluu / byt5-small-tr-normalizer

huggingface.co
Total runs: 1.9K
24-hour runs: 8
7-day runs: -502
30-day runs: 1.3K
Model's Last Updated: September 21 2026
text-generation

Introduction of byt5-small-tr-normalizer

Model Details of byt5-small-tr-normalizer

byt5-small-tr-normalizer

A fine-tuned byT5-small model that rewrites informal, misspelled, or dialectal Turkish sentences into standard written Turkish.

Typical inputs are the kind of text people actually type in a hurry: dropped diacritics, missing letters, colloquial verb contractions, ASCII-only typing, and regional/dialectal spelling. The model rewrites these into a clean, standard-Turkish sentence while keeping the original meaning and word order.

sicil belgmi alcam            -> Sicil belgimi alacağım
araç lsansı nasl alacaım      -> araç lisansı nasıl alacağım
muhtara gitcem ne götüreyim   -> Muhtara gideceğim ne götüreyim
Model description
  • Base model: google/byt5-small
  • Tokenizer: byte-level (no vocabulary, no BPE merges) — every UTF-8 byte is a token, so the model reasons directly over characters. This makes it naturally robust to the kind of noisy, non-standard spelling this task targets.
  • Task: sequence-to-sequence text normalization ( bozuk Türkçe -> standart Türkçe )
  • Input format: prefix the sentence with "düzelt: " before feeding it to the model (see usage below).
How to use
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

model_id = "erdemKocaogluu/byt5-small-tr-normalizer"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)

text = "sicil belgmi alcam"
inputs = tokenizer("düzelt: " + text, return_tensors="pt")
output = model.generate(**inputs, max_length=384, num_beams=1)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Training data

Training pairs come from six public Turkish datasets that already provide noisy/clean sentence pairs (grammar correction, typo validation, text normalization — see Data sources below). Every source is permissively licensed and no data was synthetically generated for this training run.

Data sources
Source Author Role License
Turkish-OSCAR-GEC asimokby Main training corpus MIT
Turkish-GPT-GEC asimokby LLM-generated correction pairs MIT
turkish-text-normalization-1m GoktugD Large-scale text normalization pairs CC0-1.0
turkish_typo_validation burakaytan Typo-focused pairs, parsed separately Apache-2.0
trspell (NoisyWikiTr) cgturhan Wikipedia-derived noisy/clean pairs MIT
noisy-sentences-dataset radi-cho Turkish subset of a multilingual noisy-sentence corpus MIT

Not every dataset that was evaluated made it into the final training mix — a diacritics-restoration dataset, for example, was tested but excluded after evaluation.

The MIT, Apache-2.0, and CC0-1.0 sources above are acknowledged here per their license terms; their original copyright notices and licenses remain with the linked repositories. This project does not redistribute the original dataset files — only sentence pairs derived from them were used to train the model.

Training procedure

During training, checkpoints were evaluated periodically on a held-out validation split and ranked with a combined selection score that balances two things: how well a checkpoint fixes noisy sentences, and how well it leaves already-correct sentences untouched (to discourage over-correction). The checkpoint used here is the highest-scoring one from that process, and its weights were verified by hash before being published.

Evaluation
Held-out gold sets (naturally occurring, human-written Turkish — never seen during training)
Test set n WER (model) WER (no correction) F1 Over-correction
tweets 1,742 0.161 0.336 0.667 0.6%
boun 507 0.093 0.129 0.590 4.3%

The model roughly halves the word error rate compared to a "do nothing" baseline on both sets, while rarely damaging text that was already correct.

Gold evaluation — WER, model vs. do-nothing baseline

Sources:

Limitations
  • The model generalizes very well to mechanical, deterministic corrections (like deasciification), where the rule mapping is unambiguous.
  • It is comparatively weaker on organic, human-style noise that doesn't closely match the synthetic noise patterns it was trained on, and on long, multi-clause informal sentences.
  • It corrects spelling, spacing, and word-internal errors; it does not reorder words or rewrite sentence structure.
  • Inference is CPU-friendly but on Apple Silicon MPS the model can occasionally produce degenerate output; CPU or CUDA is recommended.
License

Apache 2.0 (same as the base model).

Runs of erdemKocaogluu byt5-small-tr-normalizer on huggingface.co

1.9K
Total runs
8
24-hour runs
-547
3-day runs
-502
7-day runs
1.3K
30-day runs

More Information About byt5-small-tr-normalizer huggingface.co Model

More byt5-small-tr-normalizer license Visit here:

https://choosealicense.com/licenses/cc-by-nc-sa-4.0

byt5-small-tr-normalizer huggingface.co

byt5-small-tr-normalizer huggingface.co is an AI model on huggingface.co that provides byt5-small-tr-normalizer's model effect (), which can be used instantly with this erdemKocaogluu byt5-small-tr-normalizer model. huggingface.co supports a free trial of the byt5-small-tr-normalizer model, and also provides paid use of the byt5-small-tr-normalizer. Support call byt5-small-tr-normalizer model through api, including Node.js, Python, http.

byt5-small-tr-normalizer huggingface.co Url

https://huggingface.co/erdemKocaogluu/byt5-small-tr-normalizer

erdemKocaogluu byt5-small-tr-normalizer online free

byt5-small-tr-normalizer huggingface.co is an online trial and call api platform, which integrates byt5-small-tr-normalizer's modeling effects, including api services, and provides a free online trial of byt5-small-tr-normalizer, you can try byt5-small-tr-normalizer online for free by clicking the link below.

erdemKocaogluu byt5-small-tr-normalizer online free url in huggingface.co:

https://huggingface.co/erdemKocaogluu/byt5-small-tr-normalizer

byt5-small-tr-normalizer install

byt5-small-tr-normalizer is an open source model from GitHub that offers a free installation service, and any user can find byt5-small-tr-normalizer on GitHub to install. At the same time, huggingface.co provides the effect of byt5-small-tr-normalizer install, users can directly use byt5-small-tr-normalizer installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

byt5-small-tr-normalizer install url in huggingface.co:

https://huggingface.co/erdemKocaogluu/byt5-small-tr-normalizer

Url of byt5-small-tr-normalizer

byt5-small-tr-normalizer huggingface.co Url

Provider of byt5-small-tr-normalizer huggingface.co

erdemKocaogluu
ORGANIZATIONS

Other API from erdemKocaogluu