Downloads · 30 days
10
26% of all-time downloads
Fixaro/myanmar-absa-aspect-detection
myanmar-absa-aspect-detection is a text classification model from Fixaro. Use it when you need a label for a piece of text. The card lists the license as mit.
A multi-label classification model for detecting aspects in Burmese product/service reviews. This is Stage 1 of a two-stage Aspect-Based Sentiment Analysis (ABSA) pipeline.
Downloads · 30 days
10
26% of all-time downloads
All-time downloads
38
Public
Parameters
278M
3.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
A multi-label classification model for detecting aspects in Burmese product/service reviews. This is Stage 1 of a two-stage Aspect-Based Sentiment Analysis (ABSA) pipeline.
The model predicts the presence of up to 5 aspects in a given review:
Evaluated on the test set:
| Metric | Score |
|---|---|
| Macro F1 | 0.9314 |
| Micro F1 | 0.9279 |
from transformers import pipeline
# Load the model
classifier = pipeline(
"text-classification",
model="Fixaro/myanmar-absa-aspect-detection",
return_all_scores=True,
function_to_apply="sigmoid" # For multi-label classification
)
# Predict aspects
review = "ပစ္စည်းအရည်အသွေးက ကောင်းပြီး ပို့တာလည်း မြန်တယ်"
results = classifier(review)
# Results will show scores for all 5 aspects
for result in results[0]:
if result['score'] > 0.5: # Threshold for multi-label
print(f"{result['label']}: {result['score']:.4f}")
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model and tokenizer
model_name = "Fixaro/myanmar-absa-aspect-detection"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Prepare input
review = "ဈေးလည်း သက်သာတယ်၊ ဝန်ထမ်းတွေကလည်း ဖော်ရွေတယ်"
inputs = tokenizer(
review,
return_tensors="pt",
truncation=True,
max_length=128,
padding=True
)
# Get predictions
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits
probabilities = torch.sigmoid(logits)
# Apply threshold (0.5)
threshold = 0.5
predictions = (probabilities > threshold).int()
# Map to aspect names
aspect_names = [
"product_quality",
"fulfillment_and_speed",
"price_and_value",
"staff_and_service",
"variety_and_availability"
]
detected_aspects = [
aspect_names[i]
for i, pred in enumerate(predictions[0])
if pred == 1
]
print(f"Detected aspects: {detected_aspects}")
XLM-RoBERTa Base (xlm-roberta-base)
├── Encoder: 12 transformer layers
├── Hidden size: 768
├── Attention heads: 12
└── Classification head: Linear(768, 5) with sigmoid activation
This model is intended for:
If you use this model in your research, please cite:
@software{myanmar_absa_aspect_detection,
title = {Myanmar ABSA: Aspect Detection Model},
author = {Fixaro},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/Fixaro/myanmar-absa-aspect-detection}
}
For questions or issues, please open an issue on the model repository.