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
|
Download README.md from osam36b/Arabic_Text_Classification_Using_SANAD_Dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/osam36b/Arabic_Text_Classification_Using_SANAD_Dataset/resolve/main/README.md
- Command line
-
hf download hf://osam36b/Arabic_Text_Classification_Using_SANAD_Dataset/README.md
-
curl -L -o README.md https://huggingface.co/osam36b/Arabic_Text_Classification_Using_SANAD_Dataset/resolve/main/README.md
2.12 kB
| 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 | |
| ``` | |
| عند تشغيل الأمر الأخير، سيفتح لك رابط محلي ورابط مشاركة خارجي لتجربة تصنيف أي نص عربي تفاعلياً وبشكل فوري. | |