How ydv-prince/sentiment-analysis works
This is a notes-and-reviews sentiment analyzer: a user submits text in the React interface, the frontend sends it to the configured API, and the resulting text and sentiment are displayed. The README documents a companion Notes API that forwards prediction requests to the FastAPI service; that service calls the keyword-based classifier. The Notes API is not present in this repository, so its role and connection are based on documentation, not inspected source. The README also describes direct frontend-to-ML configuration as an optional fallback.
Main entry points: api.js Request client · main.py Prediction endpoint · App.jsx Analyzer UI · model.py Keyword classifier
Components 6
Web client
- Analyzer UI
frontend/src/App.jsx - Request client
frontend/src/api.js
Notes API
- Notes API
Sentiment service
- Prediction endpoint
ml-service/main.py - Keyword classifier
ml-service/model.py
Other components
- Note author
Connections 10
- Note author → Analyzer UI: submits text
- Analyzer UI → Request client: creates note
- Request client → Notes API: POST note
- Notes API → Prediction endpoint: requests prediction
- Prediction endpoint → Keyword classifier: classifies text
- Keyword classifier → Prediction endpoint: returns sentiment
- Prediction endpoint → Notes API: returns prediction
- Notes API → Request client: returns note result
- Request client → Analyzer UI: returns data
- Request client → Prediction endpoint: optional direct POST