Instructions to use poom-sci/bert-base-uncased-multi-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use poom-sci/bert-base-uncased-multi-emotion with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="poom-sci/bert-base-uncased-multi-emotion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("poom-sci/bert-base-uncased-multi-emotion") model = AutoModelForSequenceClassification.from_pretrained("poom-sci/bert-base-uncased-multi-emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"0":"admiration"
|
| 2 |
+
"1":"amusement"
|
| 3 |
+
"2":"anger"
|
| 4 |
+
"3":"annoyance"
|
| 5 |
+
"4":"approval"
|
| 6 |
+
"5":"caring"
|
| 7 |
+
"6":"confusion"
|
| 8 |
+
"7":"curiosity"
|
| 9 |
+
"8":"desire"
|
| 10 |
+
"9":"disappointment"
|
| 11 |
+
"10":"disapproval"
|
| 12 |
+
"11":"disgust"
|
| 13 |
+
"12":"embarrassment"
|
| 14 |
+
"13":"excitement"
|
| 15 |
+
"14":"fear"
|
| 16 |
+
"15":"gratitude"
|
| 17 |
+
"16":"grief"
|
| 18 |
+
"17":"joy"
|
| 19 |
+
"18":"love"
|
| 20 |
+
"19":"nervousness"
|
| 21 |
+
"20":"optimism"
|
| 22 |
+
"21":"pride"
|
| 23 |
+
"22":"realization"
|
| 24 |
+
"23":"relief"
|
| 25 |
+
"24":"remorse"
|
| 26 |
+
"25":"sadness"
|
| 27 |
+
"26":"surprise"
|
| 28 |
+
"27":"neutral"
|