Downloads · 30 days
285
11% of all-time downloads
nahiar/xlm-roberta-indonesian-languages
xlm-roberta-indonesian-languages is a text classification model from nahiar. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned XLM-RoBERTa model for identifying 11 Indonesian regional languages + English.
Downloads · 30 days
285
11% of all-time downloads
All-time downloads
2.6K
Public
Parameters
278M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
Fine-tuned XLM-RoBERTa model for identifying 11 Indonesian regional languages + English.
from transformers import pipeline
# Load model
classifier = pipeline("text-classification", model="YOUR_USERNAME/xlm-roberta-indonesian-languages")
# Single prediction
result = classifier("Sugeng enjing, piye kabare?")
print(result)
# Output: [{'label': 'javanese', 'score': 0.9876}]
# Batch prediction
texts = [
"Selamat pagi, apa kabar?",
"Wilujeng enjing, kumaha damang?",
"Good morning, how are you?"
]
results = classifier(texts)
for text, result in zip(texts, results):
print(f"{text} -> {result['label']} ({result['score']:.4f})")
If you use this model, please cite:
@misc{indonesian-language-id,
author = {Raihan Hidayatullah Djunaedi},
title = {Indonesian Regional Languages Identifier},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/nahiar/xlm-roberta-indonesian-languages}
}