alwanrahmana's picture
Update README.md
6544324 verified

A newer version of the Gradio SDK is available: 6.1.0

Upgrade
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

ABSA GTA VI

๐ŸŽฎ 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