Run this model with HF Jobs

Run osam36b/Arabic_Text_Classification_Using_SANAD_Dataset on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/osam36b/Arabic_Text_Classification_Using_SANAD_Dataset. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/osam36b/Arabic_Text_Classification_Using_SANAD_Dataset on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
osam36b's picture
Upload README.md with huggingface_hub
e3cc1de verified
|
Raw History Blame Contribute Delete
2.12 kB
metadata
language:
  - ar
tags:
  - text-classification
  - rnn
  - arabic-nlp
  - tensorflow
  - keras
  - gradio
license: mit
dataset:
  - haithemhermessi/sanad-dataset

تصنيف النصوص العربية باستخدام مجموعة بيانات SANAD

Arabic Text Classification using SANAD Dataset (RNN model)

هذا المستودع يحتوي على نموذج شبكة عصبية متكررة (RNN) مدرب على تصنيف النصوص والشكاوى العربية إلى 7 فئات أساسية ومختلفة بناءً على مجموعة بيانات SANAD الشهيرة.

الفئات المتاحة للتصنيف (Classes):

  • الثقافة (Culture)
  • الاقتصاد (Finance)
  • الطب (Medical)
  • السياسة (Politics)
  • الدين (Religion)
  • الرياضة (Sports)
  • التكنولوجيا (Tech)

بنية المشروع والملفات المرفوعة (Project Structure):

  1. exported_model/: يحتوي على ملف النموذج المدرب بصيغة .keras والـ Tokenizer والترميز الخاص بالفئات.
  2. app.py: الملف الرئيسي لتشغيل واجهة المستخدم التفاعلية باستخدام مكتبة Gradio.
  3. requirements.txt: ملف يحتوي على كافة المكتبات المطلوبة لتشغيل المشروع في أي بيئة محلية.

كيفية تشغيل المشروع وتجربة الواجهة محلياً (How to Run Locally):

يمكنك تحميل الملفات من هذا المستودع وتشغيل التطبيق عبر الأوامر التالية:

# 1. تحميل المستودع
git clone https://huggingface.co/osam36b/Arabic_Text_Classification_Using_SANAD_Dataset
cd Arabic_Text_Classification_Using_SANAD_Dataset

# 2. تثبيت المكتبات المطلوبة
pip install -r requirements.txt

# 3. تشغيل تطبيق Gradio
python app.py

عند تشغيل الأمر الأخير، سيفتح لك رابط محلي ورابط مشاركة خارجي لتجربة تصنيف أي نص عربي تفاعلياً وبشكل فوري.