Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
emotion-classification
midwest-emo
math-rock
domain-adaptation
hybrid-corpus
Eval Results (legacy)
text-embeddings-inference
Instructions to use anggars/xlm-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anggars/xlm-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="anggars/xlm-emotion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("anggars/xlm-emotion") model = AutoModelForSequenceClassification.from_pretrained("anggars/xlm-emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload XLMRobertaForSequenceClassification
Browse files- config.json +55 -55
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -12,67 +12,67 @@
|
|
| 12 |
"hidden_dropout_prob": 0.1,
|
| 13 |
"hidden_size": 768,
|
| 14 |
"id2label": {
|
| 15 |
-
"0": "
|
| 16 |
-
"1": "
|
| 17 |
-
"2": "
|
| 18 |
-
"3": "
|
| 19 |
-
"4": "
|
| 20 |
-
"5": "
|
| 21 |
-
"6": "
|
| 22 |
-
"7": "
|
| 23 |
-
"8": "
|
| 24 |
-
"9": "
|
| 25 |
-
"10": "
|
| 26 |
-
"11": "
|
| 27 |
"12": "embarrassment",
|
| 28 |
-
"13": "
|
| 29 |
-
"14": "
|
| 30 |
-
"15": "
|
| 31 |
-
"16": "
|
| 32 |
-
"17": "
|
| 33 |
-
"18": "
|
| 34 |
-
"19": "
|
| 35 |
-
"20": "
|
| 36 |
-
"21": "
|
| 37 |
-
"22": "
|
| 38 |
-
"23": "
|
| 39 |
-
"24": "
|
| 40 |
-
"25": "
|
| 41 |
-
"26": "
|
| 42 |
-
"27": "
|
| 43 |
},
|
| 44 |
"initializer_range": 0.02,
|
| 45 |
"intermediate_size": 3072,
|
| 46 |
"is_decoder": false,
|
| 47 |
"label2id": {
|
| 48 |
-
"admiration":
|
| 49 |
-
"amusement":
|
| 50 |
-
"anger":
|
| 51 |
-
"annoyance":
|
| 52 |
-
"approval":
|
| 53 |
-
"caring":
|
| 54 |
-
"confusion":
|
| 55 |
-
"curiosity":
|
| 56 |
-
"desire":
|
| 57 |
-
"disappointment":
|
| 58 |
-
"disapproval":
|
| 59 |
-
"disgust":
|
| 60 |
"embarrassment": 12,
|
| 61 |
-
"excitement":
|
| 62 |
-
"fear":
|
| 63 |
-
"gratitude":
|
| 64 |
-
"grief":
|
| 65 |
-
"joy":
|
| 66 |
-
"love":
|
| 67 |
-
"nervousness":
|
| 68 |
-
"neutral":
|
| 69 |
-
"optimism":
|
| 70 |
-
"pride":
|
| 71 |
-
"realization":
|
| 72 |
-
"relief":
|
| 73 |
-
"remorse":
|
| 74 |
-
"sadness":
|
| 75 |
-
"surprise":
|
| 76 |
},
|
| 77 |
"layer_norm_eps": 1e-05,
|
| 78 |
"max_position_embeddings": 514,
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"position_embedding_type": "absolute",
|
| 85 |
"problem_type": "single_label_classification",
|
| 86 |
"tie_word_embeddings": true,
|
| 87 |
-
"transformers_version": "5.
|
| 88 |
"type_vocab_size": 1,
|
| 89 |
"use_cache": false,
|
| 90 |
"vocab_size": 250002
|
|
|
|
| 12 |
"hidden_dropout_prob": 0.1,
|
| 13 |
"hidden_size": 768,
|
| 14 |
"id2label": {
|
| 15 |
+
"0": "admiration",
|
| 16 |
+
"1": "amusement",
|
| 17 |
+
"2": "anger",
|
| 18 |
+
"3": "annoyance",
|
| 19 |
+
"4": "approval",
|
| 20 |
+
"5": "caring",
|
| 21 |
+
"6": "confusion",
|
| 22 |
+
"7": "curiosity",
|
| 23 |
+
"8": "desire",
|
| 24 |
+
"9": "disappointment",
|
| 25 |
+
"10": "disapproval",
|
| 26 |
+
"11": "disgust",
|
| 27 |
"12": "embarrassment",
|
| 28 |
+
"13": "excitement",
|
| 29 |
+
"14": "fear",
|
| 30 |
+
"15": "gratitude",
|
| 31 |
+
"16": "grief",
|
| 32 |
+
"17": "joy",
|
| 33 |
+
"18": "love",
|
| 34 |
+
"19": "nervousness",
|
| 35 |
+
"20": "neutral",
|
| 36 |
+
"21": "optimism",
|
| 37 |
+
"22": "pride",
|
| 38 |
+
"23": "realization",
|
| 39 |
+
"24": "relief",
|
| 40 |
+
"25": "remorse",
|
| 41 |
+
"26": "sadness",
|
| 42 |
+
"27": "surprise"
|
| 43 |
},
|
| 44 |
"initializer_range": 0.02,
|
| 45 |
"intermediate_size": 3072,
|
| 46 |
"is_decoder": false,
|
| 47 |
"label2id": {
|
| 48 |
+
"admiration": 0,
|
| 49 |
+
"amusement": 1,
|
| 50 |
+
"anger": 2,
|
| 51 |
+
"annoyance": 3,
|
| 52 |
+
"approval": 4,
|
| 53 |
+
"caring": 5,
|
| 54 |
+
"confusion": 6,
|
| 55 |
+
"curiosity": 7,
|
| 56 |
+
"desire": 8,
|
| 57 |
+
"disappointment": 9,
|
| 58 |
+
"disapproval": 10,
|
| 59 |
+
"disgust": 11,
|
| 60 |
"embarrassment": 12,
|
| 61 |
+
"excitement": 13,
|
| 62 |
+
"fear": 14,
|
| 63 |
+
"gratitude": 15,
|
| 64 |
+
"grief": 16,
|
| 65 |
+
"joy": 17,
|
| 66 |
+
"love": 18,
|
| 67 |
+
"nervousness": 19,
|
| 68 |
+
"neutral": 20,
|
| 69 |
+
"optimism": 21,
|
| 70 |
+
"pride": 22,
|
| 71 |
+
"realization": 23,
|
| 72 |
+
"relief": 24,
|
| 73 |
+
"remorse": 25,
|
| 74 |
+
"sadness": 26,
|
| 75 |
+
"surprise": 27
|
| 76 |
},
|
| 77 |
"layer_norm_eps": 1e-05,
|
| 78 |
"max_position_embeddings": 514,
|
|
|
|
| 84 |
"position_embedding_type": "absolute",
|
| 85 |
"problem_type": "single_label_classification",
|
| 86 |
"tie_word_embeddings": true,
|
| 87 |
+
"transformers_version": "5.13.1",
|
| 88 |
"type_vocab_size": 1,
|
| 89 |
"use_cache": false,
|
| 90 |
"vocab_size": 250002
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a6d474838edb6ec034e34d6572101efa3263aef2b323869e2052364c6c7d876
|
| 3 |
+
size 1112284984
|