How jeet8499/quick-comment-analyzer-chromeextension works
Quick Comment Analyzer is a Chrome extension backed by a local Flask sentiment service. Its main workflow sends selected text for model inference, converts positive-class confidence into a star rating, and displays the result in the page. A separate model-preparation workflow trains and saves the model used by the service. The runtime files and README support these links; the extension manifest and some setup details were not sampled.
Main entry points: server.py Analyze API · background.js Context Menu Handler · train_model.py Model Training · sentiment_model.pkl Trained Model
Components 10
Chrome Extension
- Context Menu Handler
Extension/background.js - Page Rating Alert
Extension/background.js
Inference Backend
- Analyze API
server.py - Sentiment Inference
server.py - Rating Conversion
server.py
Model Preparation
- Trained Model
sentiment_model.pkl - Model Training
train_model.py - Dataset Inspection
view_data.py
Other components
- Web User
- IMDB Reviews Dataset
Connections 12
- Web User → Context Menu Handler: selects text
- Context Menu Handler → Analyze API: posts review
- Analyze API → Sentiment Inference: requests prediction
- Analyze API → Trained Model: loads model
- Sentiment Inference → Rating Conversion: returns probability
- Rating Conversion → Analyze API: returns rating
- Analyze API → Context Menu Handler: returns JSON
- Context Menu Handler → Page Rating Alert: injects result
- Page Rating Alert → Web User: shows rating
- Model Training → IMDB Reviews Dataset: loads reviews
- Model Training → Trained Model: saves model
- Dataset Inspection → IMDB Reviews Dataset: loads reviews