Text Classification
Transformers
Safetensors
Indonesian
bert
sentiment-analysis
indonesian
text-embeddings-inference
Instructions to use Bangkah/atha-text-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bangkah/atha-text-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Bangkah/atha-text-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Bangkah/atha-text-classifier") model = AutoModelForSequenceClassification.from_pretrained("Bangkah/atha-text-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -2,38 +2,74 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: distilbert-base-uncased
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
|
|
|
|
|
|
| 7 |
metrics:
|
| 8 |
- accuracy
|
| 9 |
- f1
|
| 10 |
model-index:
|
| 11 |
- name: atha-text-classifier
|
| 12 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 16 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 17 |
-
|
| 18 |
# atha-text-classifier
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- Loss: 0.7220
|
| 23 |
- Accuracy: 0.8222
|
| 24 |
-
- F1: 0.8237
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
## Intended uses & limitations
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Training and evaluation data
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
## Training procedure
|
| 39 |
|
|
@@ -50,9 +86,9 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
### Training results
|
| 52 |
|
| 53 |
-
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1
|
| 54 |
-
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 55 |
-
| 0.8508 | 1.0 | 45 | 0.7220 | 0.8222 | 0.8237
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: distilbert-base-uncased
|
| 5 |
+
language:
|
| 6 |
+
- id
|
| 7 |
+
datasets:
|
| 8 |
+
- Bangkah/atha-text-dataset
|
| 9 |
tags:
|
| 10 |
- generated_from_trainer
|
| 11 |
+
- sentiment-analysis
|
| 12 |
+
- text-classification
|
| 13 |
+
- indonesian
|
| 14 |
metrics:
|
| 15 |
- accuracy
|
| 16 |
- f1
|
| 17 |
model-index:
|
| 18 |
- name: atha-text-classifier
|
| 19 |
+
results:
|
| 20 |
+
- task:
|
| 21 |
+
name: Text Classification
|
| 22 |
+
type: text-classification
|
| 23 |
+
dataset:
|
| 24 |
+
name: Atha Text Dataset
|
| 25 |
+
type: Bangkah/atha-text-dataset
|
| 26 |
+
split: validation
|
| 27 |
+
metrics:
|
| 28 |
+
- name: Accuracy
|
| 29 |
+
type: accuracy
|
| 30 |
+
value: 0.8222
|
| 31 |
+
- name: Macro F1
|
| 32 |
+
type: f1
|
| 33 |
+
value: 0.8237
|
| 34 |
---
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
# atha-text-classifier
|
| 37 |
|
| 38 |
+
Model ini adalah fine-tuned [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) untuk klasifikasi sentimen Bahasa Indonesia 3 kelas:
|
| 39 |
+
|
| 40 |
+
- `negative`
|
| 41 |
+
- `neutral`
|
| 42 |
+
- `positive`
|
| 43 |
+
|
| 44 |
+
Training data: https://huggingface.co/datasets/Bangkah/atha-text-dataset
|
| 45 |
+
|
| 46 |
+
Evaluasi pada split validation:
|
| 47 |
+
|
| 48 |
- Loss: 0.7220
|
| 49 |
- Accuracy: 0.8222
|
| 50 |
+
- Macro F1: 0.8237
|
| 51 |
|
| 52 |
## Model description
|
| 53 |
|
| 54 |
+
Model ini dibuat sebagai baseline untuk pipeline NLP end-to-end: dataset, training, publishing model, dan demo app.
|
| 55 |
|
| 56 |
## Intended uses & limitations
|
| 57 |
|
| 58 |
+
- Cocok untuk demo, prototyping, dan portfolio project.
|
| 59 |
+
- Tidak disarankan untuk use-case produksi tanpa retraining di data nyata.
|
| 60 |
+
- Karena data sintetis, model bisa bias terhadap pola template.
|
| 61 |
|
| 62 |
## Training and evaluation data
|
| 63 |
|
| 64 |
+
Dataset publik:
|
| 65 |
+
|
| 66 |
+
- https://huggingface.co/datasets/Bangkah/atha-text-dataset
|
| 67 |
+
|
| 68 |
+
Ringkasan:
|
| 69 |
+
|
| 70 |
+
- Train: 360 contoh
|
| 71 |
+
- Validation: 90 contoh
|
| 72 |
+
- Kelas seimbang (negative, neutral, positive)
|
| 73 |
|
| 74 |
## Training procedure
|
| 75 |
|
|
|
|
| 86 |
|
| 87 |
### Training results
|
| 88 |
|
| 89 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 |
|
| 90 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
| 91 |
+
| 0.8508 | 1.0 | 45 | 0.7220 | 0.8222 | 0.8237 |
|
| 92 |
|
| 93 |
|
| 94 |
### Framework versions
|