Food Review Sentiment Analysis

Desktop NLP app that classifies a food review as positive or negative using TF-IDF and 6 machine-learning models, with comparison charts, your-own-CSV training and a review history.

  • Price: ₹1,499
  • Category: AI / ML
  • Technology: Python, Tkinter, scikit-learn (TF-IDF), pandas, Matplotlib, SQLite
  • Includes: Source code + database
  • Suitable for: BCA / B.Sc CS, MCA / M.Sc CS, B.E / B.Tech CSE & IT

Project overview

Restaurants and food-delivery apps receive thousands of reviews, and sentiment analysis tells the owner at a glance what customers think. This desktop application classifies a food review as positive or negative. The review text is converted into TF-IDF word and word-pair features and six models - Logistic Regression, Naive Bayes, Linear SVM, Random Forest, Decision Tree and K-Nearest Neighbours - are trained in the background and compared with accuracy, precision, recall and F1 score, a bar chart and a confusion matrix. The best model is saved automatically and used on the Predict screen, which shows the sentiment with a confidence percentage and a probability chart. A demo dataset of about 1,900 synthetic reviews is included and clearly labelled; with one click on 'Use my own CSV file' the student can train on a real public review dataset (columns: text, label) and compare the results. A dataset explorer shows the class balance, review length and the most common words, and every checked review is stored in a history that can be exported to CSV.

Modules

  1. Login: Admin login with a salted password hash; the password can be changed from the Home screen.
  2. Home: Shows records, classes, the active model and its accuracy.
  3. Dataset explorer: Browse the reviews; class balance, review length chart, most common words; import your own CSV or restore the demo data.
  4. Train & Compare: Train 6 models on TF-IDF features in the background; accuracy, precision, recall, F1 table; bar chart; confusion matrix; CSV export.
  5. Check a review (Predict): Type or paste a review, get Positive / Negative with confidence and a probability chart; sample loader.
  6. History: Every review checked is saved with time and text; export to CSV or clear.

Requirements

  • Python 3.11
  • Internet once, to install the libraries (about 3 minutes)
  • Windows 10 / 11

How to run this project

  1. Install Python 3.11 from python.org and tick "Add python.exe to PATH" during setup.
  2. Extract the zip and open the project folder (STUDENT_GUIDE.md explains every step in simple words).
  3. Double-click `1_INSTALL.bat` once and wait until it says [OK] (about 3 minutes; it downloads the libraries into a private .venv folder).
  4. Double-click `2_RUN.bat` to start the project. If it does not start, double-click `CHECK_SETUP.bat` and read what it says.
  5. Log in with admin / admin123.
  6. Open Train & Compare and click Train: compare the 6 models and open the confusion matrix. Open Predict, click 'Load a sample record' and Predict; then type your own review such as 'The biryani was cold and tasteless'.

More AI / ML projects