luisespinosa
commited on
Commit
·
a65a409
1
Parent(s):
f5665b3
Update README.md
Browse files
README.md
CHANGED
@@ -45,7 +45,7 @@ labels = [row[1] for row in csvreader if len(row) > 1]
|
|
45 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
46 |
model.save_pretrained(MODEL)
|
47 |
|
48 |
-
text = "
|
49 |
text = preprocess(text)
|
50 |
encoded_input = tokenizer(text, return_tensors='pt')
|
51 |
output = model(**encoded_input)
|
@@ -74,8 +74,8 @@ for i in range(scores.shape[0]):
|
|
74 |
Output:
|
75 |
|
76 |
```
|
77 |
-
1) joy 0.
|
78 |
-
2) optimism 0.
|
79 |
-
3)
|
80 |
-
4)
|
81 |
```
|
|
|
45 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
46 |
model.save_pretrained(MODEL)
|
47 |
|
48 |
+
text = "Celebrating my promotion 😎"
|
49 |
text = preprocess(text)
|
50 |
encoded_input = tokenizer(text, return_tensors='pt')
|
51 |
output = model(**encoded_input)
|
|
|
74 |
Output:
|
75 |
|
76 |
```
|
77 |
+
1) joy 0.9382
|
78 |
+
2) optimism 0.0362
|
79 |
+
3) anger 0.0145
|
80 |
+
4) sadness 0.0112
|
81 |
```
|