A newer version of the Gradio SDK is available:
6.1.0
metadata
title: GTA VI Aspect-Based Sentiment Analysis
emoji: ๐ฎ
colorFrom: pink
colorTo: purple
sdk: gradio
python_version: '3.11'
sdk_version: 4.24.0
app_file: app.py
pinned: false
tags:
- sentiment-analysis
- aspect-based-sentiment-analysis
- gta-vi
- huggingface
models:
- alwanrahmana/aspect-detection-modernbert-base-logweight-FocalLoss
- alwanrahmana/sentiment-classification-deberta-base
๐ฎ Aspect-Based Sentiment Analysis: GTA VI Edition ๐
This project is an implementation of Aspect-Based Sentiment Analysis (ABSA) for GTA VI reviews using a combination of:
- ๐ FastAPI โ Backend REST API
- ๐ Streamlit โ Web UI interface
- ๐๏ธ Gradio (opsional) โ Prototyping UI
- ๐ค BERT Model โ Aspect extraction & sentiment classification
๐ Project's Structure
aspect-based-sentiment-analysis-GTA-VI/
โ
โโโ app/
โ โโโ inference/
โ โโโ aspect_extraction/
โ โ โโโ model.py <-- PredictAspect
โ โโโ sentiment_classification/
โ โโโ model.py <-- PredictSentiment
โ
โโโ main.py <-- Gradio app (your full UI + predict logic)
โโโ requirements.txt
โโโ README.md
๐ How to Run
๐ฆ Install Dependency
pip install -r requirements.txt
๐ฅ Run FastAPI (Backend API)
uvicorn app.api.main:app --reload
๐ Access on: http://127.0.0.1:8000/docs
๐๏ธ Run Streamlit (Frontend)
streamlit run streamlit/main.py
๐ Access on: http://localhost:8501
(Optional) ๐๏ธ Run Gradio Interface
python app/gradio/main.py
๐ฆ Feature API POST /predict Body:
{
"texts": ["text review"]
}
Response:
{
"result": [
{
"text": "text review",
"aspects": ["Visual Graphic", "Nostalgia"],
"sentiments": ["positive", "neutral"]
}
]
}
๐ Author
Alwan Rahmana S
- ๐ GitHub: alwanrahmanas
- ๐ง Email: alwanrahmana@gmail.com
- ๐ผ LinkedIn: Alwan Rahmana
- ๐ค Hugging Face: alwanrahmana