Downloads · 30 days
14
29% of all-time downloads
prakosoee/indobert-ABSA-FnB
indobert-ABSA-FnB is a text classification model from prakosoee. Use it when you need a label for a piece of text. The card lists the license as mit.
This directory contains a fine-tuned BERT model for Aspect-Based Sentiment Analysis (ABSA) that simultaneously analyzes all three aspects in the Food and Beverage (F&B) industry using multilabel classification.
Downloads · 30 days
14
29% of all-time downloads
All-time downloads
49
Public
Parameters
124M
498 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This directory contains a fine-tuned BERT model for Aspect-Based Sentiment Analysis (ABSA) that simultaneously analyzes all three aspects in the Food and Beverage (F&B) industry using multilabel classification.
indobenchmark/indobert-base-p2The model classifies text into three sentiment categories for each aspect:
| Label ID | Sentiment | Description |
|---|---|---|
| 0 | Negative | Poor quality, bad service, expensive, or complaints. |
| 1 | Neutral | General mentions without specific positive or negative sentiment. |
| 2 | Positive | Good quality, excellent service, affordable, or praise. |
Multilabel Output: The model can detect multiple aspects in a single text and assign sentiment to each aspect independently.
Based on the fine-tuning results, the model achieves the following performance:
| Aspect | F1-Score |
|---|---|
| Food Quality | 88.43% |
| Service | 87.10% |
| Price | 94.75% |
This model is loaded and used by the ABSA API service. It provides simultaneous sentiment analysis for all three aspects.
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_path = "./absa-fnb-model/model_absa_fnb_best"
model = AutoModelForSequenceClassification.from_pretrained(model_path)
tokenizer = AutoTokenizer.from_pretrained("indobenchmark/indobert-base-p2")
The model can detect multiple aspects in a single review:
{
"Food Quality": "Positive",
"Service": "Positive",
"Price": "Negative"
}
Example Input: "Makanannya enak dan pelayanannya ramah, tapi harganya agak mahal."
This demonstrates the model's ability to: