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:

πŸ“ˆ 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
Safetensors
Model size
109M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for alwanrahmana/sentiment-absa-model

Finetuned
(5612)
this model