How mohamedabolyazeed/reelsentiment works
Project type and purpose
• This is a lightweight full-stack web application (“ReelSentiment”) built with Flask.
• It serves a sentiment-analysis service: users submit movie reviews through a web UI, the app vectorizes input text and runs it through a logistic regression model to return positive/negative sentiment.
File structure
• Top level:
• app.py – Flask web server and inference endpoints
• train_model.py – offline training pipeline that reads IMDB Dataset.csv, fits a TfidfVectorizer and logistic regression model, and serializes them as .pkl artifacts
• imdb-dataset-of-50k-movie-reviews/IMDB Dataset.csv – raw training data
• logistic_model.pkl, tfidf_vectorizer.pkl – pre-trained model and vectorizer used by app.py
• templates/ – Jinja2 HTML views (index.html for input form, result.html for output)
• Procfile, requirements.txt – deployment config for Heroku
Extract insights from README
• The README just names the project “ReelSentiment,” confirming it’s a sentiment-analysis web tool. No explicit architecture notes, so we infer design from code and file layout.