Downloads · 30 days
16
18% of all-time downloads
salmane11/Konan
Konan is a text classification model from salmane11. Use it when you need a label for a piece of text. It is set up for transformers.
KONAN is an Arabic text classification model designed to distinguish between human-written and machine-generated Arabic news articles. The model aims to support research and applications related to AI-generated conten…
Downloads · 30 days
16
18% of all-time downloads
All-time downloads
91
Public
Parameters
135M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors541 MB · 100%
From the Hugging Face model README
KONAN is an Arabic text classification model designed to distinguish between human-written and machine-generated Arabic news articles.
The model aims to support research and applications related to AI-generated content detection, misinformation analysis, and media authenticity in Arabic-speaking contexts.
It is based on the aubmindlab/bert-base-arabertv02 base model and fine-tuned on a curated dataset of Arabic news texts, labeled as either:
The model learns stylistic, syntactic, and semantic patterns that differentiate human journalism from automatically generated text.
The model was fine-tuned using supervised learning for sequence classification, with PEFT (LoRA) adapters to efficiently adapt the base model while retaining its strong Arabic language understanding.
Key aspects of training include:
This model is intended for:
from transformers import pipeline
text = """
أعلنت وزارة الاقتصاد اليوم عن إطلاق خطة جديدة تهدف إلى دعم الشركات
الصغيرة والمتوسطة وتعزيز فرص العمل خلال السنوات القادمة.
"""
classifier = pipeline("text-classification", model="salmane11/konan", tokenizer="salmane11/konan", truncation=True, device = 0)
def detect_ai_generated_news(news: str) -> str:
label = classifier(news)
if label[0]['label']=="machine":
return True
else:
return False
#detect_ai_generated_news(aljazeera_news['content'][0])
@article{lamsiyah2025m,
title={M-DAIGT: A Shared Task on Multi-Domain Detection of AI-Generated Text},
author={Lamsiyah, Salima and Ezzini, Saad and El Mahdaouy, Abdelkader and Alami, Hamza and Benlahbib, Abdessamad and El Amrany, Samir and Chafik, Salmane and Hammouchi, Hicham},
journal={M-DAIGT-ST 2025},
pages={1},
year={2025}
}