Instructions to use HyukII/text-emotion-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HyukII/text-emotion-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HyukII/text-emotion-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HyukII/text-emotion-model") model = AutoModelForSequenceClassification.from_pretrained("HyukII/text-emotion-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 258 Bytes
8c48e24 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {
"label2id": {
"기쁨": 0,
"당황": 1,
"분노": 2,
"불안": 3,
"상처": 4,
"슬픔": 5
},
"id2label": {
"0": "기쁨",
"1": "당황",
"2": "분노",
"3": "불안",
"4": "상처",
"5": "슬픔"
}
} |