Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Gasolinaaa/roberta-emotion-predictor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gasolinaaa/roberta-emotion-predictor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Gasolinaaa/roberta-emotion-predictor")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Gasolinaaa/roberta-emotion-predictor") model = AutoModelForSequenceClassification.from_pretrained("Gasolinaaa/roberta-emotion-predictor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "RobertaForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "afraid", | |
| "1": "angry", | |
| "2": "annoyed", | |
| "3": "anticipating", | |
| "4": "anxious", | |
| "5": "apprehensive", | |
| "6": "ashamed", | |
| "7": "caring", | |
| "8": "confident", | |
| "9": "content", | |
| "10": "devastated", | |
| "11": "disappointed", | |
| "12": "disgusted", | |
| "13": "embarrassed", | |
| "14": "excited", | |
| "15": "faithful", | |
| "16": "furious", | |
| "17": "grateful", | |
| "18": "guilty", | |
| "19": "hopeful", | |
| "20": "impressed", | |
| "21": "jealous", | |
| "22": "joyful", | |
| "23": "lonely", | |
| "24": "nostalgic", | |
| "25": "prepared", | |
| "26": "proud", | |
| "27": "sad", | |
| "28": "sentimental", | |
| "29": "surprised", | |
| "30": "terrified", | |
| "31": "trusting" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "afraid": 0, | |
| "angry": 1, | |
| "annoyed": 2, | |
| "anticipating": 3, | |
| "anxious": 4, | |
| "apprehensive": 5, | |
| "ashamed": 6, | |
| "caring": 7, | |
| "confident": 8, | |
| "content": 9, | |
| "devastated": 10, | |
| "disappointed": 11, | |
| "disgusted": 12, | |
| "embarrassed": 13, | |
| "excited": 14, | |
| "faithful": 15, | |
| "furious": 16, | |
| "grateful": 17, | |
| "guilty": 18, | |
| "hopeful": 19, | |
| "impressed": 20, | |
| "jealous": 21, | |
| "joyful": 22, | |
| "lonely": 23, | |
| "nostalgic": 24, | |
| "prepared": 25, | |
| "proud": 26, | |
| "sad": 27, | |
| "sentimental": 28, | |
| "surprised": 29, | |
| "terrified": 30, | |
| "trusting": 31 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "roberta", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 6, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "problem_type": "single_label_classification", | |
| "transformers_version": "4.57.6", | |
| "type_vocab_size": 1, | |
| "use_cache": true, | |
| "vocab_size": 50265 | |
| } | |