Upload 5 files
Browse filesTamil 11-Class Emotion Classifier
A fine-tuned Tamil language model that detects 11 emotions from text.
Supported emotions:
- Ambiguous
- Anger
- Anticipation
- Disgust
- Fear
- Joy
- Love
- Neutral
- Sadness
- Surprise
- Trust
Performance (validation set):
→ Accuracy: 94.5%
→ Macro F1: ~94.3%
→ Best checkpoint: epoch 6
Base model: jusgowiturs/autotrain-tamil_emotion_11_tamilbert-2710380899
Trained on ~53k balanced Tamil examples (6 epochs, lr 2e-5, batch 16)
Best suited for:
• Tamil chatbots with emotion understanding
• Social media sentiment analysis in Tamil
• Mental health & customer support tools
• Tamil NLP research & education
Limitations:
• Works best on short–medium length sentences
• Code-mixed Tamil–English may reduce accuracy
• Sarcasm, irony and heavy dialect variations remain challenging
Open for testing, further fine-tuning and community improvements.
Made with ❤️ for the Tamil NLP community
— Bimsara Serasinghe, March 2026
- .gitattributes +1 -0
- config.json +59 -0
- model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +14 -0
- training_args.bin +3 -0
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_num_labels": 11,
|
| 3 |
+
"add_cross_attention": false,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"XLMRobertaForSequenceClassification"
|
| 6 |
+
],
|
| 7 |
+
"attention_probs_dropout_prob": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"classifier_dropout": null,
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": 2,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"id2label": {
|
| 16 |
+
"0": "Ambiguous",
|
| 17 |
+
"1": "Anger",
|
| 18 |
+
"2": "Anticipation",
|
| 19 |
+
"3": "Disguist",
|
| 20 |
+
"4": "Fear",
|
| 21 |
+
"5": "Joy",
|
| 22 |
+
"6": "Love",
|
| 23 |
+
"7": "Neutral",
|
| 24 |
+
"8": "Sadness",
|
| 25 |
+
"9": "Surprise",
|
| 26 |
+
"10": "Trust"
|
| 27 |
+
},
|
| 28 |
+
"initializer_range": 0.02,
|
| 29 |
+
"intermediate_size": 3072,
|
| 30 |
+
"is_decoder": false,
|
| 31 |
+
"label2id": {
|
| 32 |
+
"Ambiguous": 0,
|
| 33 |
+
"Anger": 1,
|
| 34 |
+
"Anticipation": 2,
|
| 35 |
+
"Disguist": 3,
|
| 36 |
+
"Fear": 4,
|
| 37 |
+
"Joy": 5,
|
| 38 |
+
"Love": 6,
|
| 39 |
+
"Neutral": 7,
|
| 40 |
+
"Sadness": 8,
|
| 41 |
+
"Surprise": 9,
|
| 42 |
+
"Trust": 10
|
| 43 |
+
},
|
| 44 |
+
"layer_norm_eps": 1e-05,
|
| 45 |
+
"max_position_embeddings": 514,
|
| 46 |
+
"model_type": "xlm-roberta",
|
| 47 |
+
"num_attention_heads": 12,
|
| 48 |
+
"num_hidden_layers": 12,
|
| 49 |
+
"output_past": true,
|
| 50 |
+
"pad_token_id": 1,
|
| 51 |
+
"padding": "max_length",
|
| 52 |
+
"position_embedding_type": "absolute",
|
| 53 |
+
"problem_type": "single_label_classification",
|
| 54 |
+
"tie_word_embeddings": true,
|
| 55 |
+
"transformers_version": "5.1.0",
|
| 56 |
+
"type_vocab_size": 1,
|
| 57 |
+
"use_cache": false,
|
| 58 |
+
"vocab_size": 250002
|
| 59 |
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0121578e971627f881b7e1ebd571724273f154fc1b654d7097e617a7f2c7bdfd
|
| 3 |
+
size 1112232668
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0a8f22c7c06d9a64d49b4a0571324ba43d4da6dc988ff38daf31d33586fc5f1
|
| 3 |
+
size 16766399
|
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"cls_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": false,
|
| 8 |
+
"mask_token": "<mask>",
|
| 9 |
+
"model_max_length": 512,
|
| 10 |
+
"pad_token": "<pad>",
|
| 11 |
+
"sep_token": "</s>",
|
| 12 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 13 |
+
"unk_token": "<unk>"
|
| 14 |
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d626af054f81add74b6c4193013b8e178af26dd5a09cb2880c6e9c7c0125e8d
|
| 3 |
+
size 5201
|