Fake review detection
TrustReview
Flags fake product reviews using a fine-tuned DistilBERT model, served as an API.
- Python
- DistilBERT
- scikit-learn
- Hugging Face
- FastAPI
Problem
Fake reviews distort what shoppers see, and they are hard to spot by reading one review at a time.
What I built
- A fine-tuned DistilBERT classifier for fake review detection.
- A FastAPI service for single and batch predictions, deployed on Hugging Face Spaces.
- A test suite of more than 60 unit tests.
Architecture
Data preparation
Cleaning and preprocessing of labelled reviews.
Model
DistilBERT fine-tuned for fake or genuine classification.
API
FastAPI endpoints for one review or a batch.
Hosting
Hugging Face Spaces.
Outcome
- 90.88% accuracy.
- 60+ unit tests.