Logo Lanfrica

faiz-oussama/darija-sentiments-analysis-webapp

Domain:

natural language processing

Record type:

softwaremodel
Creator:
fai
Host:
# πŸ” Darija Sentiment Analysis A modern web application for sentiment analysis of Darija (Moroccan Arabic dialect) text. Analyze sentiment in Darija text with state-of-the-art machine learning --- ## πŸ“‹ Table of Contents - Project Overview - Features - Project Structure - Getting Started - Prerequisites - Installation - Running the Application - Usage - Model Information - Technologies Used - Contributing - License - Acknowledgments --- ## 🌟 Project Overview This project provides a sentiment analysis tool that can determine whether a given text in Darija has a positive, negative, or neutral sentiment. It consists of three main components: - **ML Model**: A trained BERT-based sentiment analysis model specialized for Darija text - **Flask API**: Backend service that handles text processing and sentiment prediction - **Next.js Frontend**: Modern, responsive web interface for user interaction --- ## ✨ Features - ⚑ Real-time sentiment analysis of Darija text - πŸ“Š Visual representation of sentiment scores - πŸ“± Responsive design for desktop and mobile devices - πŸŒ™ Dark theme with a modern interface --- ## πŸ“‚ Project Structure ```bash Darija-Sentiment-Analysis/ β”œβ”€β”€ datasets/ # Training and testing datasets β”œβ”€β”€ flask-api/ # Flask backend API service β”œβ”€β”€ front-end/ # Next.js frontend application β”œβ”€β”€ model-training-notebook/# Jupyter notebooks for model training └── darija_sentiment_model.pt # Trained sentiment analysis model ``` --- ## πŸš€ Getting Started ### Prerequisites - Python 3.8+ (for backend) - Node.js 18+ (for frontend) - pip (Python package manager) - npm (Node.js package manager) ### Installation 1. Clone the repository: ```bash git clone github.com cd Darija-Sentiment-Analysis ``` 2. Set up the Flask API: ```bash cd flask-api pip install -r requirements.txt # Required packages: flask, flask-cors, torch, numpy, transformers ``` 3. Set up the Next.js fron …