Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

Souadzriouil/darijabert-lora-finetuning

Domaine:

natural language processing

Type de record:

project
Créateur:
Sou
Hôte:
This project focuses on fine-tuning DarijaBERT for Moroccan Darija text classification using LoRA (Low-Rank Adaptation). The workflow includes data preprocessing, tokenization, model training, evaluation, and performance analysis using Hugging Face Transformers and PyTorch. # 🚀 Fine-Tuning DarijaBERT for Moroccan Darija Text Classification ### 🧠 Parameter-Efficient NLP Fine-Tuning using LoRA & Hugging Face Transformers --- # 📌 Overview This project focuses on fine-tuning the **SI2M-Lab/DarijaBERT** model for **Moroccan Darija text classification** using **LoRA (Low-Rank Adaptation)**. The workflow demonstrates a complete modern NLP pipeline including: ✅ Data preprocessing ✅ Tokenization ✅ LoRA fine-tuning ✅ Model evaluation ✅ Metrics visualization ✅ Confusion matrix analysis The objective is to build an efficient NLP model capable of understanding and classifying Moroccan Darija text. --- # 🧰 Tech Stack | Category | Technologies | |---|---| | Programming | Python | | Deep Learning | PyTorch | | NLP | Hugging Face Transformers | | Fine-Tuning | LoRA / PEFT | | Data Processing | Pandas, NumPy | | Evaluation | Scikit-learn | | Visualization | Matplotlib | | Environment | Jupyter Notebook | --- # 📂 Project Structure ```bash darijabert-lora-finetuning/ │ ├── data/ │ └── dataset_darija2.csv │ ├── notebooks/ │ └── darijabert_finetuning.ipynb │ ├── results/ │ ├── confusion_matrix.png │ └── training_metrics.png │ ├── README.md ├── requirements.txt └── .gitignore ``` --- # ⚙️ Workflow ```text Dataset → Preprocessing → Tokenization → DarijaBERT → LoRA Fine-Tuning → Evaluation → Visualization ``` --- # 📊 Training Results | Metric | Score | |---|---| | 🎯 Accuracy | 79.67% | | 🧠 F1-Score | 78.91% | | 📌 Precision | 80.28% | | 🔍 Recall | 79.67% | --- # 📈 Results Visualization ## 🔥 Training Metrics --- ## 🧩 Confusion Matrix --- # 🚀 Installation Clone the repository: ```bash git clone github.com cd darijabert-lora-finetuning ``` Install dependencies: ```bash pip install -r requirements.txt ``` --- # ▶️ Run the Project Launch Jupyter Notebook: ```bash jupyter notebook ``` Open: ```bash notebooks/darijabert_finetuning.ipynb ``` --- # …

Visit

github.com

Languages

Arabic, Algerian SpokenArabic, Moroccan Spoken

Tags

darijabertdeep-learninggpu-computinghugging-face-transformersllm-fine-tuningloranlppythonpytorchtext-classification

Similaires

KevKibe/Finetuning-WhisperSmall-LoRA-SwahiliJoshua-Abok/finetuning-wav2vec-lora-large-swahili-asr-model_v20sohailanwarofficial/Darija-Sentiment-Analysis-with-DarijaBERTDarijabert: a Step Forward in Nlp for the Written Moroccan Dialectsanderlj/nlp-finetuningmhrmm/amharic-finetuning

KevKibe/Finetuning-WhisperSmall-LoRA-Swahili

This repository features code for Swahili Automatic Speech Recognition (ASR) fine-tuning using the W

Joshua-Abok/finetuning-wav2vec-lora-large-swahili-asr-model_v20

sohailanwarofficial/Darija-Sentiment-Analysis-with-DarijaBERT

This project performs sentiment analysis on Darija (Moroccan Arabic) text using the DarijaBERT model

Darijabert: a Step Forward in Nlp for the Written Moroccan Dialect

Abstract The performance of existing transformer-based language models in providing state-

sanderlj/nlp-finetuning

NLP project on finetuning mBERT-small on Swahili NLP tasks # CSC5035Z Assignment 2 This repository

mhrmm/amharic-finetuning

# amharic-finetuning To translate a corpus, modify ```translate_corpus.sh``` to point at your data.