Downloads · 30 days
26
100% of all-time downloads
MinThu11/burmese-disaster-classifier
burmese-disaster-classifier is a text classification model from MinThu11. Use it when you need a label for a piece of text. The card lists the license as mit.
Fine-tuned xlm-roberta-base for classifying Burmese (Myanmar) disaster-related social media posts into four actionable categories. Useful for disaster-response triage and monitoring.
Downloads · 30 days
26
100% of all-time downloads
All-time downloads
26
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
Fine-tuned xlm-roberta-base for
classifying Burmese (Myanmar) disaster-related social media posts into four
actionable categories. Useful for disaster-response triage and monitoring.
| Label | Meaning |
|---|---|
Immediate_Rescue_Needed | Posts requesting urgent rescue / help |
Donation_Campaign | Posts offering or requesting donations & aid |
General_News | News, warnings, and situational updates |
Well_Wishing_Prayer | Prayers and well-wishing messages |
from transformers import pipeline
clf = pipeline("text-classification", model="MinThu11/burmese-disaster-classifier")
print(clf("ကလေးတွေရော အဘိုးကြီးရော ရေခေါင်မိုးထိတက်လာလို့ ပိတ်မိနေပါတယ် အမြန်လာကယ်ပေးကြပါ"))
Or load directly:
import torch, torch.nn.functional as F
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "MinThu11/burmese-disaster-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
inputs = tokenizer("...", return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
probs = F.softmax(model(**inputs).logits, dim=-1)[0]
print(model.config.id2label[int(probs.argmax())])