How vaishnavimahadik23/food-review-analyzer works
Food Review Analyzer accepts restaurant-review text in a Flutter client, sends it to a FastAPI service, and returns sentiment and aspect-level findings. The service preprocesses text and runs the persisted classifier/vectorizer and aspect analysis, then stores the result in SQLite. Separate API routes expose review history and sentiment-count analytics. The README documents the client and broader NLP capabilities, but Flutter/Dart source is absent from the supplied tree; those client details and several NLP stages are therefore represented only at subsystem level. Edges cite the README or sampled backend source.
Main entry points: main.py REST API routes · flutter_app Flutter application · database.py Database operations · nlp_service.py Sentiment prediction
Components 13
Flutter client
- Flutter application
flutter_app
API service
- REST API routes
backend/main.py - Request/response schemas
backend/schemas.py - Review history
backend/main.py - Sentiment analytics
backend/main.py
NLP analysis
- Text preprocessing
backend/nlp_service.py - TF-IDF vectorizer
model/tfidf_vectorizer.joblib - Sentiment classifier
model/sentiment_model.joblib - Sentiment prediction
backend/nlp_service.py - Aspect analysis
backend/nlp_service.py
Review storage
- Review database
backend/food_reviews.db - Database operations
backend/database.py
Other components
- Review user
Connections 15
- Review user → Flutter application: enters review
README.md - Flutter application → REST API routes: calls REST API
README.md - REST API routes → Request/response schemas: validates request
backend/main.py - REST API routes → Text preprocessing: requests analysis
backend/main.py - Text preprocessing → Sentiment prediction: prepares text
backend/nlp_service.py - Sentiment prediction → TF-IDF vectorizer: transforms text
backend/nlp_service.py - Sentiment prediction → Sentiment classifier: predicts sentiment
backend/nlp_service.py - REST API routes → Aspect analysis: requests analysis
backend/main.py - REST API routes → Database operations: saves result
backend/main.py - REST API routes → Request/response schemas: returns response
backend/main.py - Database operations → Review database: writes reviews
backend/database.py - Review history → Database operations: reads reviews
backend/main.py - Sentiment analytics → Database operations: reads counts
backend/main.py - Flutter application → Review history: requests history
README.md - Flutter application → Sentiment analytics: requests analytics
README.md