Cardiff NLP commited on
Commit
6e0e290
β€’
1 Parent(s): 2c46570

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -21
README.md CHANGED
@@ -46,7 +46,7 @@ labels = [row[1] for row in csvreader if len(row) > 1]
46
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)
47
  model.save_pretrained(MODEL)
48
 
49
- text = "Good night 😊"
50
  text = preprocess(text)
51
  encoded_input = tokenizer(text, return_tensors='pt')
52
  output = model(**encoded_input)
@@ -75,24 +75,24 @@ for i in range(scores.shape[0]):
75
  Output:
76
 
77
  ```
78
- 1) 😘 0.2637
79
- 2) ❀️ 0.1952
80
- 3) πŸ’• 0.1171
81
- 4) ✨ 0.0927
82
- 5) 😊 0.0756
83
- 6) πŸ’œ 0.046
84
- 7) πŸ’™ 0.0444
85
- 8) 😍 0.0272
86
- 9) πŸ˜‰ 0.0228
87
- 10) 😎 0.0198
88
- 11) 😜 0.0166
89
- 12) πŸ˜‚ 0.0132
90
- 13) 😁 0.0131
91
- 14) β˜€ 0.0112
92
- 15) πŸŽ„ 0.009
93
- 16) πŸ’― 0.009
94
- 17) πŸ”₯ 0.008
95
- 18) πŸ“· 0.0057
96
- 19) πŸ‡ΊπŸ‡Έ 0.005
97
- 20) πŸ“Έ 0.0048
98
  ```
46
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)
47
  model.save_pretrained(MODEL)
48
 
49
+ text = "Looking forward to Christmas"
50
  text = preprocess(text)
51
  encoded_input = tokenizer(text, return_tensors='pt')
52
  output = model(**encoded_input)
75
  Output:
76
 
77
  ```
78
+ 1) πŸŽ„ 0.5457
79
+ 2) 😊 0.1417
80
+ 3) 😁 0.0649
81
+ 4) 😍 0.0395
82
+ 5) ❀️ 0.03
83
+ 6) 😜 0.028
84
+ 7) ✨ 0.0263
85
+ 8) πŸ˜‰ 0.0237
86
+ 9) πŸ˜‚ 0.0177
87
+ 10) 😎 0.0166
88
+ 11) 😘 0.0143
89
+ 12) πŸ’• 0.014
90
+ 13) πŸ’™ 0.0076
91
+ 14) πŸ’œ 0.0068
92
+ 15) πŸ”₯ 0.0065
93
+ 16) πŸ’― 0.004
94
+ 17) πŸ‡ΊπŸ‡Έ 0.0037
95
+ 18) πŸ“· 0.0034
96
+ 19) β˜€ 0.0033
97
+ 20) πŸ“Έ 0.0021
98
  ```