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.
Instructions to use osam36b/Arabic_Text_Classification_Using_SANAD_Dataset with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use osam36b/Arabic_Text_Classification_Using_SANAD_Dataset with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://osam36b/Arabic_Text_Classification_Using_SANAD_Dataset") - Notebooks
- Google Colab
- Kaggle
File size: 2,121 Bytes
e3cc1de | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | ---
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):
يمكنك تحميل الملفات من هذا المستودع وتشغيل التطبيق عبر الأوامر التالية:
```bash
# 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
```
عند تشغيل الأمر الأخير، سيفتح لك رابط محلي ورابط مشاركة خارجي لتجربة تصنيف أي نص عربي تفاعلياً وبشكل فوري.
|