Build a sentiment analyser for product or movie reviews that predicts positive or negative, explains its decision with the words that mattered, and reports honestly where it fails (negation, sarcasm, mixed reviews).
Project idea · ungraded
Review Sentiment Analyser
You will use
Milestones
Build the smallest working version first. Ticks are saved in this browser only.
Stretch goals
- Compare with the embedding-bag model in PyTorch.
- Add a third class for neutral or mixed reviews.
- Serve the model with FastAPI as in the 'Serve your model' project.
Data
- IMDB movie reviews (50,000, balanced): on Hugging Face or Kaggle.
- Or write 100 short reviews of things you own and label them yourself.
Run it yourself
pip install scikit-learn pandas datasets
python sentiment.py