Logo Lanfrica

Youness331/Darija-sentiment-analysis-public

Domain:

natural language processing

Record type:

software
Creator:
You
Host:
# πŸ“Š Darija Sentiment Analysis Project A comprehensive sentiment analysis application for Arabic/Darija text that combines web scraping, machine learning, and deep learning to analyze public sentiment from news articles and comments. ## 🎯 Project Overview This project provides an end-to-end solution for sentiment analysis of Arabic/Darija text, featuring: - **Web scraping** from Hespress news website - **Traditional machine learning** models (SVM, KNN, Naive Bayes) - **Deep learning** models (Bidirectional LSTM, CNN) - **Interactive web interface** for real-time analysis - **Comprehensive text preprocessing** for Arabic/Darija text - **Visualization tools** including word clouds and sentiment charts ## πŸ“ Project Structure ``` darija-sentiment-analysis/ β”œβ”€β”€ app.py # Main Flask application β”œβ”€β”€ package.py # Core scraping and preprocessing functions β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ .env # Environment variables (API keys) β”œβ”€β”€ .gitignore # Git ignore rules β”œβ”€β”€ .gitattributes # Git LFS configuration β”œβ”€β”€ README.md # Project documentation β”œβ”€β”€ sentiments analysis/ β”‚ └── ml.ipynb # Machine learning notebook β”œβ”€β”€ models/ β”‚ └── model/ β”‚ └── model.safetensors # Pre-trained DarijaBERT model β”œβ”€β”€ templates/ # HTML templates for web interface β”‚ β”œβ”€β”€ index.html # Homepage β”‚ β”œβ”€β”€ results.html # Search results page β”‚ β”œβ”€β”€ comments.html # Individual article comments β”‚ └── all_comments.html # Aggregate sentiment analysis β”œβ”€β”€ static/ # Static files (CSS, JS, images) └── Stop_words.csv # Darija/Arabic stopwords dataset ``` ## πŸ““ Notebooks Overview ### `sentiments analysis/ml.ipynb` A comprehensive Jupyter notebook that implements and compares multiple sentiment analysis approaches: ## …