A Project about Predicting the Number of Fake Reviews with Grades of an e-commerce website called Amazon using Machine Learning Models like Bert & XLnet.
Table of Contents
Online marketplaces such as Amazon allow people to share their experiences about purchased products using textual comments known as product reviews. Online reviews from previous consumers are key information sources for consumers and marketers. Fake product reviews on e-commerce websites mislead consumers and undermine trust in online marketplaces. Detecting and eliminating fake reviews is essential to ensure genuine feedback and maintain the platform's integrity.
Objectives:
- Implement an algorithm that classifies reviews as computer generated or original.
- Use transformer models (like BERT ) to detect computer generated reviews.
- Build a web application with a simple, user-friendly interface where users can easily view the results.
Outcomes:
- Enhance trustworthiness of reviews on e-commerce platforms by enabling users to distinguish between ai generated and original reviews.
- Encourage customers to make purchases based on more reliable reviews, thereby increasing sales and revenue.
- Deliver a user-friendly web application where users can input product URLs and view analysis results in a clear, understandable format.
The system is designed as an interactive, user-friendly web interface where a user can paste a product URL to get an in-depth analysis. This interface provides the summary of a product with a total number of computer-generated reviews and original reviews. The summary also gives a grade based on the percentage of computer-generated reviews, so the user has an idea about the overall authenticity of reviews the product has, at a glance
This section includes the languages and frameworks we used to build the project. Here are they:
Before getting started, Check the given
The languages and frameworks must and should isntalled before the executing of the code.
- Python
On MacOS: brew install python On Linux: sudo apt update sudo apt install python3
- Flask
Using pip: pip install flask Using pip3: pip3 install flask
After installing of the prerequistes packages.
-
Creating a Virtual Environment (Highly Recommended):
It's strongly recommended to create a virtual environment to isolate project dependencies.
Using venv (for Python 3):
python3 -m venv venv # Create the virtual environment source venv/bin/activate # Activate the environment (Linux/macOS) venv\Scripts\activate # Activate the environment (Windows)
-
Installing Dependencies:
The requirements.txt file should contain all the necessary packages. Navigate to the project directory (if you haven't already) and install the required Python packages using
pip
:cd YOUR_REPOSITORY # If you are not already in the project directory pip install -r requirements.txt
-
Running the Application:
To start the Flask web server, navigate to the directory containing your main application file (e.g., app.py) and run:
python app.py