arabert-summarization-news is an abstractive news and editorial summarization model for Modern Standard Arabic, trained on 150,000+ Arabic press articles.
Developed by Yousef Khaled Gouda.
from transformers import pipeline
summarizer = pipeline("summarization", model="Yousef1258852/arabert-summarization-news")
article = "أعلنت وزارة البترول والثروة المعدنية في مصر عن كشف تجاري جديد للغاز الطبيعي في البحر المتوسط..."
summary = summarizer(article, max_length=60, min_length=20)
print(summary[0]["summary_text"])