Aspect-Based Sentiment Analysis for Game Comments
This is a BERT-based classifier for performing aspect-based sentiment analysis (ABSA) on user comments about video games.
Each prediction considers both the aspect (topic/feature being discussed) and the comment text as inputs, and classifies the sentiment into 3 categories:
- Negative
- Neutral
- Positive
π How the Model Works
The model input consists of two segments:
- Aspect (the topic whose sentiment you want to evaluate)
- Comment Text (the actual user comment)
These are separated by a [SEP]
token according to the BERT input format.
The model is trained using Focal Loss to handle class imbalance.
π Dataset
The dataset used for training consists of user comments on video games with the following columns:
comment_text
aspect
sentiment
(0 = Negative, 1 = Neutral, 2 = Positive)Dataset link
: https://huggingface.co/datasets/alwanrahmana/Aspect-based-sentiment-analysis
π Performance
The model was trained using 5-Fold Cross Validation.
Evaluation metrics include accuracy and F1-score, with per-aspect breakdowns.
π How to Use
Install dependencies:
pip install transformers torch
- Downloads last month
- 4
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
π
Ask for provider support
Model tree for alwanrahmana/sentiment-absa-model
Base model
google-bert/bert-base-uncased