Text Classification
Transformers
Safetensors
Burmese
xlm-roberta
aspect-based-sentiment-analysis
absa
burmese
myanmar
multi-label-classification
text-embeddings-inference
Instructions to use Fixaro/myanmar-absa-aspect-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fixaro/myanmar-absa-aspect-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Fixaro/myanmar-absa-aspect-detection")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Fixaro/myanmar-absa-aspect-detection") model = AutoModelForSequenceClassification.from_pretrained("Fixaro/myanmar-absa-aspect-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Myanmar ABSA - Stage 1 (Multi-Label Aspect Detection)
This model is a fine-tuned version of xlm-roberta-large on a balanced dataset of 7,500+ Burmese customer reviews. It predicts the presence of 6 business aspects.
Aspect Targets:
product_or_service_qualityfulfillment_and_speedprice_and_valuedigital_experiencecustomer_supportvariety_and_availability
Usage Example
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
MODEL_NAME = "Fixaro/myanmar-absa-stage1-aspect-detection"
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
model = AutoModelForSequenceClassification.from_pretrained(MODEL_NAME)
text = "ဒီဆိုင်က ဝန်ဆောင်မှု အရမ်းကောင်းတယ်၊ ဒါပေမဲ့ ပို့ဆောင်ခ အရမ်းကြီးတယ်။"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.sigmoid(logits).squeeze().tolist()
ASPECTS = [
'product_or_service_quality', 'fulfillment_and_speed',
'price_and_value', 'digital_experience',
'customer_support', 'variety_and_availability'
]
for aspect, prob in zip(ASPECTS, probs):
if prob > 0.5:
print(f"Detected: {aspect} ({prob*100:.1f}%)")
- Downloads last month
- 3
Model tree for Fixaro/myanmar-absa-aspect-detection
Base model
FacebookAI/xlm-roberta-large