/ Модель

Характеристики

Параметры
365 млн
Лицензия
CC BY-NC-SA 4.0
Архитектура
t5 · dense
Базовая модель
byt5-small
Опубликована
11 сен 2026

byt5-small-tr-normalizer

Генерация текстаТекст → текст3 профессии

Дообученная byT5-small исправляет опечатки, разговорное и диалектное написание в турецком тексте, приводя его к стандартной письменной форме.

1 863скачиваний за 30 дней2лайкавеса обновлены21 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель erdemKocaogluu/byt5-small-tr-normalizer — дообученная Google byT5-small, предназначенная для нормализации неформального турецкого текста. Она преобразует опечатки, пропущенные диакритические знаки и буквы, разговорные сокращения и диалектное написание в стандартный письменный турецкий, стараясь сохранить исходный смысл и порядок слов.

Это последовательностная модель на архитектуре T5 с байтовой токенизацией: каждый байт UTF-8 обрабатывается как отдельный токен. Размер модели — 364,6 млн параметров. Для подачи текста README предписывает добавлять префикс «düzelt: ». Модель обучена на парах шумных и исправленных предложений из публичных турецких наборов данных.

На описанных отложенных тестовых наборах модель снизила частоту словных ошибок относительно передачи текста без изменений и редко вносила лишние исправления. Она лучше справляется с однозначными механическими исправлениями, чем с естественными вариациями ошибок и длинными сложными предложениями; не перестраивает порядок слов и синтаксис. Для Apple Silicon MPS отмечены случаи некорректной генерации, поэтому рекомендованы CPU или CUDA. Лицензия модели — CC BY-NC-SA 4.0.

Сценарии применения

  • исправление опечаток в турецких сообщениях
  • восстановление турецких диакритических знаков
  • нормализация разговорных сокращений на турецком
  • приведение диалектного турецкого написания к стандартному
  • корректура неформальных турецких предложений

Ограничения

Слабее справляется с естественными, не похожими на обучающие шумовыми примерами ошибками и длинными сложными предложениями; не перестраивает синтаксис и порядок слов. На Apple Silicon MPS возможны некорректные результаты, поэтому рекомендованы CPU или CUDA.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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 (noisy Turkish -> standard Turkish)
  • 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). No data was synthetically generated for this training run. Four sources are permissively licensed (MIT, Apache-2.0, or CC0-1.0); two are derived from Turkish Wikipedia and are licensed CC BY-SA 3.0 (attribution required — see below).

Data sources

SourceAuthorRoleLicense
Turkish-OSCAR-GECasimokbyMain training corpusMIT
Turkish-GPT-GECasimokbyLLM-generated correction pairsMIT
turkish-text-normalization-1mGoktugDLarge-scale text normalization pairsCC0-1.0
turkish_typo_validationburakaytanTypo-focused pairs, parsed separatelyApache-2.0
trspell (NoisyWikiTr)cgturhanWikipedia-derived noisy/clean pairsCC BY-SA 3.0 (Wikipedia-derived)
noisy-sentences-datasetradi-choTurkish subset of a multilingual noisy-sentence corpusCC BY-SA 3.0 (Wikipedia-derived, per the source's own credits)

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. The trspell (NoisyWikiTr) and noisy-sentences-dataset sources are built from Turkish Wikipedia text; that text is licensed CC BY-SA 3.0, so it is credited here accordingly: portions derived from Wikipedia contributors, licensed under CC BY-SA 3.0. This project does not redistribute the original dataset files — only sentence pairs derived from them were used to train the model.

Note on Turkish-OSCAR-GEC: this dataset is built on top of OSCAR, a Common Crawl–derived web text corpus. OSCAR's own documentation states that its maintainers "do not own any of the text from which these data has been extracted" and license only their own metadata/annotations (CC0). The "MIT" tag on Turkish-OSCAR-GEC is the uploader's own declaration and does not itself establish clear rights over the underlying crawled text. This is disclosed here so downstream users can make their own informed assessment; it reflects a broader, industry-wide open question around web-scraped training corpora rather than an issue specific to this dataset.

OSCAR's own terms note an exception for text-and-data-mining (TDM) and research use; the way this data was used here — extracting statistical spelling/grammar-correction patterns during training, not reproducing or redistributing OSCAR's source sentences — fits that framing. The model is also not a free-text generator: it transforms a sentence the user supplies, so its output is structurally anchored to that input rather than free to reproduce memorized training text, which limits (though does not eliminate) the risk of verbatim reproduction of training data.

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.

Q_good          = 1 - (0.6 * CER + 0.4 * WER)       # how well it fixes noisy sentences
unchanged_rate  = pred == source on clean sentences  # how well it leaves correct text alone
selection_score = 0.7 * Q_good + 0.3 * unchanged_rate

Training curves

Learning curve — selection score

Quality vs. preservation trade-off

Loss — train vs. eval

Error rates on noisy sentences — CER and WER

Learning rate schedule

Train vs. validation loss by epoch

Evaluation

Held-out gold sets (naturally occurring, human-written Turkish — never seen during training)

Test setnWER (model)WER (copy)CER (model)CER (copy)F1Over-correction
tweets1,7420.1610.3360.0340.0710.6670.6%
boun5070.0930.1290.0430.0150.5904.3%

"copy" = do-nothing baseline (source passed through unchanged).

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. On boun, note that model CER is slightly higher than the copy baseline's CER even though WER improves substantially — WER and CER don't always move together, since a small number of larger character-level edits can outweigh many small word-level fixes.

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

Gold evaluation — exact sentence match

Sources:

The tweets set was lightly cleaned before evaluation — social-media artifacts (@mentions, hashtags, emoji) were stripped from both source and reference, and rows the original dataset flagged as foreign-language or neologism were excluded.

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

These fine-tuned model weights are released under CC BY-NC-SA 4.0 (non-commercial use, attribution required, share-alike). Note this differs from the base model: google/byt5-small itself remains available under its own Apache 2.0 license. This license applies to how these fine-tuned weights are released; it is separate from the licenses of the training data sources listed above under Data sources, consistent with common practice for models trained on mixed-license corpora.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
af10f6d

0 моделей