This simple flask app predict reviews ratings (1 to 5). The text classification algorithm is based on fastText (see References).
Here is how the app looks like:
![ui-demo] (images/ui-demo.png)
pip install -r requirements.txt
Amazon reviews from 1995 to 2013 are used for training. They can be downloaded from here. Downloaded zip file is put under the folder data/amazon/. Run the following command to process the data
python data_loder.py
The classificaiton can be trained using:
python train_model.py
To run the flask app, simply type:
python app.py