Click to visit:
This repository provides a machine learning-based solution for sentiment analysis of restaurant reviews. It leverages natural language processing (NLP) techniques to classify customer feedback as positive, negative, or neutral, helping restaurants better understand their customer satisfaction and improve their services.
- Sentiment analysis of textual restaurant reviews
- Data preprocessing and cleaning pipeline
- Model training and evaluation
- Visualization of sentiment results
- Easy integration with restaurant review platforms
- Python
- scikit-learn
- pandas
- numpy
- matplotlib / seaborn (for visualizations)
- MLFlow (for experiment tracking)
- Docker (for containerized deployment)
- Pull the Docker image from dockerHub:
docker pull pigstep/resourant-sentimental-analys:v0.20- Run the container:
docker run -d -p 8000:8000 pigstep/resourant-sentimental-analys:v0.20- Access the application at
http://localhost:8000.
- Clone the repository:
git clone https://github.com/PigStep/Restourant-Sentimental-Analys-ML-based.git
cd Restourant-Sentimental-Analys-ML-based- Install dependencies:
pip install -r requirements.txt- Run the main script with uvicorn:
cd Restourant-Sentimental-Analys-ML-based/src
uvicorn main:app --reload- Access the application at
http://localhost:8000.
Restourant‑Sentimental‑Analys‑ML‑based/
├── .gitattributes
├── Dockerfile # Docker image definition
├── README.md # Project documentation
├── requirements.txt # Python dependencies
├── src/
│ ├── main.py # FastAPI application entry point
│ ├── TextClassifier.py # Wrapper around the trained model
│ └── mlflow_logging.py # Functions for experiment tracking
├── experiment_notebook/
│ ├── baseline_model.ipynb # Logistic‑Regression experiments
│ ├── SVM_model.ipynb # SVM experiments
│ └── data_preparation.ipynb # Data download and cleaning
└── static/
└── index.html # Front‑end landing page served by FastAPI
soon
Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
This project is licensed under the MIT License.
For questions, suggestions, or feedback, feel free to open an issue or contact PigStep.
