Downloads · 30 days
7
41% of all-time downloads
dansachs/indo-religiolect-bert
indo-religiolect-bert is a machine learning model from dansachs. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A fine-tuned Indonesian BERT model for classifying religious texts into: - Islam - Catholic - Protestant
Downloads · 30 days
7
41% of all-time downloads
All-time downloads
17
Public
Parameters
111M
442 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors442 MB · 100%
From the Hugging Face model README
A fine-tuned Indonesian BERT model for classifying religious texts into:
indolem/indobert-base-uncasedTrained on ~2 million Indonesian sentences collected from:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
# Load model
tokenizer = AutoTokenizer.from_pretrained("dansachs/indo-religiolect-bert")
model = AutoModelForSequenceClassification.from_pretrained("dansachs/indo-religiolect-bert")
# Predict
text = "Allah adalah Tuhan yang Maha Esa"
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=-1).item()
label_map = {0: 'Islam', 1: 'Catholic', 2: 'Protestant'}
print(f"Prediction: {label_map[prediction]}")
Model performance metrics are available in the training logs.
If you use this model, please cite:
@misc{indo-religiolect-bert,
author = {Dan Sachs},
title = {Indo-Religiolect-BERT: Indonesian Religious Text Classifier},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/dansachs/indo-religiolect-bert}}
}