Downloads · 30 days
14
1% of all-time downloads
d0p3/O3ap-sm
O3ap-sm is a summarization model from d0p3. Use it when you need a shorter version of a longer text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This repository contains the 03ap-sm model, a Ukrainian news summarization model fine-tuned on the T5-small architecture. The model has been trained on the Ukrainian Corpus CCMatrix for text summarization tasks.
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
1.6K
Public
Parameters
74.8M
300 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors299 MB · 99%
From the Hugging Face model README
This repository contains the 03ap-sm model, a Ukrainian news summarization model fine-tuned on the T5-small architecture. The model has been trained on the Ukrainian Corpus CCMatrix for text summarization tasks.
Installation
pip install transformers
Loading the Model
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("d0p3/O3ap-sm")
model = AutoModelForSeq2SeqLM.from_pretrained("d0p3/O3ap-sm")
Generating Summaries
news_article = "**YOUR NEWS ARTICLE TEXT IN UKRAINIAN**"
input_ids = tokenizer(news_article, return_tensors="pt").input_ids
output_ids = model.generate(input_ids)
summary = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(summary)
We welcome contributions and feedback!
This model is released under the [CC-BY-NC-4.0].