AraStyleTransfer-21 | 21 Arabic Author Styles. One Model.
🏆
First Place Winner at AraGenEval 2025 Competition
A state-of-the-art Arabic text style transfer model that transforms text into the writing style of 21 different Arabic authors using descriptive author tokens and prompt engineering.
"مصر المصنِّعة... الكون مائة زهرة... وحين أبلغ الخمسين أبدأ أعيش وأتعلم الموسيقى..."
3838
"غرابة التجربة... طفولة جادة تمامًا بلا مرح... الطفولة كانت عيبًا..."
"غريبة هي الأفكار... كنتُ رجلًا رهيبًا في ثوب طفل... والطفولة تُهمة نخشى الاعتراف بها..."
3839
"هذا ليس ندمًا... موجة تفوقك قوة... النصر الحقيقي أن تعيش كما تختار..."
"ليس مرارة ولا ندمًا... أنت تناضل موجة أعتى منك... والحق أن تحيا كما اخترت أنت..."
📊 Performance Metrics
BLEU Score:
24.58
chrF Score:
59.01
Competition:
First Place in AraGenEval 2024
Supported Authors:
21 Arabic authors
Official results on the AraGenEval 2025 testset. Our prompt engineering system ranked first.
🚀 Quick Start: Style Transfer Example
from transformers import T5Tokenizer, T5ForConditionalGeneration
import torch
# Load model
model_name = "Omartificial-Intelligence-Space/AraStyleTransfer-21"
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)
device = "cuda"if torch.cuda.is_available() else"cpu"
model.to(device)
# Input text and author
text = "لم أقم مطلقًا بالاحتفال بعيد ميلادي منذ طفولتي."
author = "يوسف إدريس"# Prompt format
prompt = f"اكتب النص التالي بأسلوب <author:{author.replace(' ', '_')}>: {text}"# Tokenize
inputs = tokenizer(prompt, return_tensors="pt").to(device)
# Generate
output_ids = model.generate(
**inputs,
max_length=256,
num_beams=5,
early_stopping=True
)
# Decode
generated_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print("Original:", text)
print("Author:", author)
print("Output:", generated_text)
🎯 Use Cases
Content Creation:
Generate text in specific author styles
Educational Tools:
Demonstrate different writing styles
Research:
Study Arabic literary styles and patterns
Creative Writing:
Inspire new content in classic styles
🤝 Contributing
This model was developed for the
AraGenEval 2025
competition. For questions or contributions, please refer to the competition guidelines.
📄 License
This model is released under the same license as the base AraT5v2 model.
BibTeX Citation
@inproceedings{nacar2025anlpers,
title={ANLPers at AraGenEval Shared Task: Descriptive Author Tokens for Transparent Arabic Authorship Style Transfer},
author={Nacar, Omer and Reda, Mahmoud and Sibaee, Serry and Alhabashi, Yasser and Ammar, Adel and Boulila, Wadii},
booktitle={Proceedings of The Third Arabic Natural Language Processing Conference: Shared Tasks},
pages={49--53},
year={2025}
}
🏆 First Place Winner at AraGenEval 2025 - Arabic Text Style Transfer Competition
Runs of Omartificial-Intelligence-Space AraStyleTransfer-21 on huggingface.co
2
Total runs
0
24-hour runs
-1
3-day runs
-1
7-day runs
-3
30-day runs
More Information About AraStyleTransfer-21 huggingface.co Model
AraStyleTransfer-21 huggingface.co is an AI model on huggingface.co that provides AraStyleTransfer-21's model effect (), which can be used instantly with this Omartificial-Intelligence-Space AraStyleTransfer-21 model. huggingface.co supports a free trial of the AraStyleTransfer-21 model, and also provides paid use of the AraStyleTransfer-21. Support call AraStyleTransfer-21 model through api, including Node.js, Python, http.
AraStyleTransfer-21 huggingface.co is an online trial and call api platform, which integrates AraStyleTransfer-21's modeling effects, including api services, and provides a free online trial of AraStyleTransfer-21, you can try AraStyleTransfer-21 online for free by clicking the link below.
Omartificial-Intelligence-Space AraStyleTransfer-21 online free url in huggingface.co:
AraStyleTransfer-21 is an open source model from GitHub that offers a free installation service, and any user can find AraStyleTransfer-21 on GitHub to install. At the same time, huggingface.co provides the effect of AraStyleTransfer-21 install, users can directly use AraStyleTransfer-21 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
AraStyleTransfer-21 install url in huggingface.co: