Downloads · 30 days
12
0% of all-time downloads
SGaleshchuk/t5-large-ua-news
t5-large-ua-news is a summarization model from SGaleshchuk. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as mit.
The mt5-large model has been finetuned with the data from Uber corpus in Ukrainian.
Downloads · 30 days
12
0% of all-time downloads
All-time downloads
2.5K
Public
Repo size
14.8 GB
Likes
4
Public
Click a slice to open those files.
.bin4.9 GB · 100%
From the Hugging Face model README
The mt5-large model has been finetuned with the data from Uber corpus in Ukrainian.
The dataset contains around 40K articles about politics, science, technology, social life collected until December 2021 from Hromadske.ua.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
tokenizer = AutoTokenizer.from_pretrained("google/mt5-large")
model = AutoModelForSeq2SeqLM.from_pretrained("SGaleshchuk/t5-large-ua-news")
summarizer = pipeline("summarization", model=model, tokenizer=tokenizer, framework="pt")
##### Try on your example
summary = summarizer("15 листопада чисельність населення Землі досягла восьми мільярдів, повідомляє ООН. Зазначають, що нашій планеті знадобилося лише 11 років, щоб вирости з семи до восьми мільярдів. Таке зростання ООН пояснила поступовим збільшенням тривалості життя людини завдяки поліпшенню охорони здоров'я, харчування, особистої гігієни та медицини. Це також результат високого та постійного рівня народжуваності в деяких країнах.", min_length=3, max_length = 128)
print(summary)
[{'summary_text': 'Чисельність населення Землі зросла до восьми мільярдів. '}]