Downloads · 30 days
12
6% of all-time downloads
alwanrahmana/sentiment-absa-model
sentiment-absa-model is a machine learning model from alwanrahmana. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
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…
Downloads · 30 days
12
6% of all-time downloads
All-time downloads
186
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
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:
The model input consists of two segments:
These are separated by a [SEP] token according to the BERT input format.
The model is trained using Focal Loss to handle class imbalance.
The dataset used for training consists of user comments on video games with the following columns:
comment_textaspectsentiment (0 = Negative, 1 = Neutral, 2 = Positive)Dataset link : https://huggingface.co/datasets/alwanrahmana/Aspect-based-sentiment-analysisThe model was trained using 5-Fold Cross Validation.
Evaluation metrics include accuracy and F1-score, with per-aspect breakdowns.
pip install transformers torch