Skip to content

myneuronews/sentiment

Repository files navigation

Sentiment Analysis Using fastText

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)

Requirement

pip install -r requirements.txt

Data

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

Train fastText model

The classificaiton can be trained using:

python train_model.py

Run app

To run the flask app, simply type:

python app.py

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published