This model is a fine-tuned version of xlm-roberta-base designed for Burmese text authorship attribution (identifying the author of a given Burmese sentence/text).
xlm-roberta-baseThis model is intended for academic research, stylometric analysis, and natural language processing tasks in the Burmese language to identify writing styles across different authors.
You can load the model and tokenizer using the Transformers library:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "TawkaSaya/burmese-authorship-xlm-roberta"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
# Example text prediction
text = "သင့်ရဲ့ မြန်မာစာ စာသားကို ဤနေရာတွင် ထည့်ပါ"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=150)
outputs = model(**inputs)
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
predicted_class_id = torch.argmax(predictions).item()
print(f"Predicted Author Class ID: {predicted_class_id}")
## Training Dataset
The model was trained on a custom Burmese literary corpus comprising over 14,000 records spanning across 7 Myanmar authors:
- **[ခင်ခင်ထူး]** ( မအိမ်ကံ ဝတ္ထု)
- **[ဂျာနယ်ကျော် မမလေး]** (သွေး ဝတ္ထု)
- **[ဂျူး]** (မိန်းမတစ်ယောက်ရဲ့ ဖွင့်ဟဝန်ခံချက်၊ ပိုချစ်ရတဲ့သူကိုယ်ဖြစ်ပါစေ ဝတ္ထုများ)
- **[တက္ကသိုလ် ဘုန်းနိုင်]** (စိမ်းနေဉီးမည့်ကျွန်တော့်မြေ၊ သူငယ်ချင်းလို့ပဲဆက်၍ခေါ်မည်ခိုင် ဝတ္ထု/စာအုပ်များ)
- **[ဒဂုန်တာရာ]** (မြိုင်၊ မေ၊ ဒို့ခေတ်ကိုရောက်မှာ မလွဲပေ ဝတ္ထု/စာအုပ်များ)
- **[ပုညခင်]** (ပန်းတွေပွင့်ဖို့စောင့်ရချိန်၊ အနောက်တောင်အရပ်မှလာခဲ့သူ ဝတ္ထု/စာအုပ်များ)
- **[လယ်တွင်းသားစောချစ်]** (ပန်းမြိုင်လယ်မှဉယျာဉ်မှူးဝတ္ထု)
---
checkpoint-1324/optimizer.pt 2.2 GBcheckpoint-1655/optimizer.pt 2.2 GBcheckpoint-1324/model.safetensors 1.1 GBcheckpoint-1655/model.safetensors 1.1 GBmodel.safetensors 1.1 GBcheckpoint-1324/rng_state.pth 14.6 kBcheckpoint-1655/rng_state.pth 14.6 kBcheckpoint-1324/training_args.bin 5.3 kBcheckpoint-1655/training_args.bin 5.3 kBtraining_args.bin 5.3 kBcheckpoint-1324/scheduler.pt 1.5 kBcheckpoint-1655/scheduler.pt 1.5 kBcheckpoint-1324/scaler.pt 1.4 kBcheckpoint-1655/scaler.pt 1.4 kB