Logo Lanfrica

YoussefNKH/tunisian-feedback-classifier

Domain:

natural language processing

Record type:

softwaremodel
Creator:
You
Host:
# ๐Ÿง  NLP - Detection of the Problem Source from Arabic Feedback This project uses Natural Language Processing (NLP) to classify Arabic customer feedback as either related to the **product** (ุงู„ู…ู†ุชุฌ) or the **service** (ุงู„ุฎุฏู…ุฉ). It includes a trained model, a Streamlit web app, and a Jupyter Notebook for training and evaluation. --- ## ๐Ÿ“‚ Project Structure ```plaintext tunisian-feedback-classifier/ โ”‚ โ”œโ”€โ”€ app.py # Streamlit app interface โ”œโ”€โ”€ NLP_Classification.ipynb # Notebook with full training & evaluation โ”œโ”€โ”€ MLP_model.pkl # Trained MLP neural network model โ”œโ”€โ”€ tfidf_vectorizer.pkl # TF-IDF vectorizer โ”œโ”€โ”€ finals.csv # Contains the data (Comment_Text_Arabic,Problem_Source(Labels)) โ”œโ”€โ”€ requirements.txt #Contains the requirements to make the interface work โ”œโ”€โ”€ README.md # Project documentation (this file) ``` --- ## ๐Ÿš€ Features - Classifies Arabic feedback as either about the **product** or the **service** - Neural network (MLP) trained on TF-IDF features - Arabic-specific text preprocessing (normalization + stopword removal) - Interactive web app with Streamlit --- ## ๐Ÿ› ๏ธ Installation ### 1. Clone the Repository ```bash git clone github.com cd tunisian-feedback-classifier ``` ### 2. Create Virtual Environment (Optional) ```bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate ``` ### 3. Install Dependencies ```bash pip install -r requirements.txt ``` --- ## โ–ถ๏ธ Run the Streamlit App ```bash streamlit run app.py ``` --- ## ๐Ÿ“ˆ Model Performance | Model | Accuracy | F1-Score | |---------------|----------|----------| | Naive Bayes | 0.92 | 0.92 | | Neural Net โœ… | 0.95 | 0.95 | | RBF SVM | 0.95 | 0.95 | | Linear SVM | 0.93 | 0.93 | --- ## ๐Ÿ‘ค Author **Youssef Nakhli** ๐ŸŽ“ Data Engineer Student ๐Ÿ“ซ LinkedIn | GitHub