Downloads · 30 days
5
2% of all-time downloads
Rendika/Trained-indobertweet-balanced-dataset
Trained-indobertweet-balanced-dataset is a text classification model from Rendika. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This repository contains a trained IndoBERTweet model for text classification. The model has been trained and evaluated on a balanced dataset comprising various labels such as Politics, Social Culture, Defense and Sec…
Downloads · 30 days
5
2% of all-time downloads
All-time downloads
305
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
This repository contains a trained IndoBERTweet model for text classification. The model has been trained and evaluated on a balanced dataset comprising various labels such as Politics, Social Culture, Defense and Security, Ideology, Economy, Natural Resources, Demography, and Geography.
| Label | Count |
|---|---|
| Politics | 2972 |
| Social Culture | 587 |
| Defense and Security | 400 |
| Ideology | 400 |
| Economy | 367 |
| Natural Resources | 192 |
| Demography | 62 |
| Geography | 20 |
| Label | Count |
|---|---|
| Politics | 2969 |
| Demography | 427 |
| Social Culture | 422 |
| Ideology | 343 |
| Defense and Security | 331 |
| Economy | 309 |
| Natural Resources | 156 |
| Geography | 133 |
| Encoded | Label |
|---|---|
| 0 | Demography |
| 1 | Economy |
| 2 | Geography |
| 3 | Ideology |
| 4 | Defense and Security |
| 5 | Politics |
| 6 | Social Culture |
| 7 | Natural Resources |
Epoch 1/4
Epoch 2/4
Epoch 3/4
Epoch 4/4
Training Completed
| Label | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| Demography | 0.90 | 0.94 | 0.92 | 64 |
| Economy | 0.70 | 0.67 | 0.69 | 46 |
| Geography | 0.95 | 0.90 | 0.92 | 20 |
| Ideology | 0.72 | 0.56 | 0.63 | 52 |
| Defense and Security | 0.73 | 0.66 | 0.69 | 50 |
| Politics | 0.84 | 0.86 | 0.85 | 446 |
| Social Culture | 0.43 | 0.48 | 0.45 | 63 |
| Natural Resources | 0.61 | 0.61 | 0.61 | 23 |
To use this model, you can load it using the transformers library from Hugging Face.
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Rendika/Trained-indobertweet-balanced-dataset")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Rendika/Trained-indobertweet-balanced-dataset")
model = AutoModelForSequenceClassification.from_pretrained("Rendika/Trained-indobertweet-balanced-dataset")
This IndoBERTweet model is fine-tuned on a balanced dataset to enhance its performance across different categories. The model demonstrates good performance metrics, making it suitable for a variety of text classification tasks in the Indonesian language.
Feel free to use and contribute to this repository. For any issues or suggestions, please open an issue on the repository or contact the maintainer.