Update README.md
Browse files
README.md
CHANGED
@@ -38,6 +38,21 @@ for text in texts:
|
|
38 |
# 鎵撳嵃鍒嗙被缁撴灉
|
39 |
print(f"Text: {text}")
|
40 |
print(f"Emotion classification result: {result}\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
```
|
42 |
|
43 |
## Validation Metrics
|
|
|
38 |
# 鎵撳嵃鍒嗙被缁撴灉
|
39 |
print(f"Text: {text}")
|
40 |
print(f"Emotion classification result: {result}\n")
|
41 |
+
|
42 |
+
"""
|
43 |
+
Device set to use cpu
|
44 |
+
Text: I'm so happy today!
|
45 |
+
Emotion classification result: [{'label': 'joy', 'score': 0.9994311928749084}]
|
46 |
+
|
47 |
+
Text: This is really sad.
|
48 |
+
Emotion classification result: [{'label': 'sadness', 'score': 0.9989039897918701}]
|
49 |
+
|
50 |
+
Text: I'm a bit nervous about what's going to happen.
|
51 |
+
Emotion classification result: [{'label': 'fear', 'score': 0.998763918876648}]
|
52 |
+
|
53 |
+
Text: This news makes me angry.
|
54 |
+
Emotion classification result: [{'label': 'anger', 'score': 0.9977891445159912}]
|
55 |
+
"""
|
56 |
```
|
57 |
|
58 |
## Validation Metrics
|