Downloads · 30 days
0
ismailoviskandar02/uzbek-text-simplifier
uzbek-text-simplifier is a text generation model from ismailoviskandar02. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Fine-tuned google/mt5-small для упрощения сложных узбекских текстов (юридические документы, официальные новости, гос. инструкции) в текст, понятный обычному читателю.
Downloads · 30 days
0
Access
Public
Updated Aug 16, 2026
Repo size
6 GB
Likes
0
Public
Click a slice to open those files.
.safetensors3.5 GB · 99%
From the Hugging Face model README
Fine-tuned google/mt5-small для упрощения сложных узбекских текстов
(юридические документы, официальные новости, гос. инструкции) в текст,
понятный обычному читателю.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("username/uz-text-simplifier")
model = AutoModelForSeq2SeqLM.from_pretrained("username/uz-text-simplifier")
text = "Oʻzbekiston Respublikasi Vazirlar Mahkamasining qarori bilan..."
inputs = tokenizer("simplify: " + text, return_tensors="pt", truncation=True, max_length=256)
out = model.generate(**inputs, max_new_tokens=256, num_beams=4)
print(tokenizer.decode(out[0], skip_special_tokens=True))
Важно: на вход всегда добавляй префикс "simplify: " — модель обучена под этот task-prefix.
~4150 пар (сложный текст → простой текст), собранных с lex.uz (юридические акты), kun.uz, gazeta.uz, uza.uz и uz.wikipedia.org, размеченных teacher-моделью.
google/mt5-smalllaw, ~59%)