The web app for sentiment analysis of clothes reviews. In this project I develop a REST API using the Python Flask framework and ML pretrained model. It is a simple method on implementing machine learning APIs.
The project and code for this pretrained model is available here.
- Flask API script - app.py
- script to build and pickle the classifier model - training_model.py
- models - pickled pretrained model used in app,
- templates, static - HTML files for the front-end.
Project is created with:
- Python 3.6, Flask;
- HTML, CSS;
- libraries: pandas, regex, nltk, scikit-learn, joblib.
Running the app:
To run this app install locally packages:
pip install -r requirements.txt
Next download the project files to your system, then go to the folder/directory where these files reside and run the script:
app.py