How qihahfirhat/nlp_cinetext works
CineScope is a Streamlit movie-review sentiment analyzer with a separate training workflow. Users submit review text, which the app can translate and classify, then inspect word-level explanations; separate pages expose corpus and model-performance views. Training downloads and splits the IMDB dataset, prepares text for classical estimators, evaluates those models alongside DistilBERT, and saves the best classical model and vectorizer for app inference. The app excerpt is partial, so some documented connections are evidenced only by the README; its exact inference wiring is not fully visible.
Main entry points: app.py Streamlit App · nlp_pipeline.py NLP Training Pipeline · best_model.pkl Classical Classifier · best_vectorizer.pkl TF-IDF Vectorizer
Components 18
Streamlit Experience
- Streamlit App
frontend_StreamlitApp/app.py - Review Input
frontend_StreamlitApp/app.py - Pipeline & Team Page
frontend_StreamlitApp/app.py
Review Analysis
- Google Translator
- Text Preprocessing
frontend_StreamlitApp/app.py - Classical Classifier
best_model.pkl - TF-IDF Vectorizer
best_vectorizer.pkl - Token Impact
frontend_StreamlitApp/app.py
Model Training
- DistilBERT Evaluation
backend_DataNLP/nlp_pipeline.py - NLP Training Pipeline
backend_DataNLP/nlp_pipeline.py - IMDB Dataset
frontend_StreamlitApp/IMDB Dataset.csv - Saved Model Artifact
best_model.pkl - Saved Vectorizer Artifact
best_vectorizer.pkl
Exploration & Insights
- Review Word Clouds
frontend_StreamlitApp/app.py - Corpus Explorer
frontend_StreamlitApp/app.py - Model Visualizations
frontend_StreamlitApp/app.py
Other components
- Review User
- KaggleHub Dataset
Connections 20
- Review User → Streamlit App: uses
README.md - Streamlit App → Review Input: accepts review
README.md - Streamlit App → Google Translator: translates input
README.md - Streamlit App → Text Preprocessing: preprocesses text
frontend_StreamlitApp/app.py - Streamlit App → Classical Classifier: loads for inference
README.md - Streamlit App → TF-IDF Vectorizer: loads for inference
README.md - Streamlit App → DistilBERT Evaluation: offers sentiment analysis
README.md - Streamlit App → Token Impact: shows token impact
README.md - Streamlit App → Review Word Clouds: renders review clouds
README.md - Streamlit App → Corpus Explorer: shows corpus data
README.md - Streamlit App → Model Visualizations: shows metrics
README.md - Streamlit App → Pipeline & Team Page: renders page
README.md - NLP Training Pipeline → KaggleHub Dataset: downloads dataset
backend_DataNLP/nlp_pipeline.py - NLP Training Pipeline → IMDB Dataset: provides sample data
README.md - NLP Training Pipeline → Text Preprocessing: duplicates preprocessing
README.md - NLP Training Pipeline → DistilBERT Evaluation: evaluates raw reviews
backend_DataNLP/nlp_pipeline.py - NLP Training Pipeline → Saved Model Artifact: saves best model
backend_DataNLP/nlp_pipeline.py - NLP Training Pipeline → Saved Vectorizer Artifact: saves matching vectorizer
backend_DataNLP/nlp_pipeline.py - NLP Training Pipeline → Model Visualizations: produces comparison metrics
README.md - Classical Classifier → TF-IDF Vectorizer: uses features from
README.md