Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
|
@@ -108,27 +123,32 @@ F1 Score 92.5%
|
|
| 108 |
Precision 93.0%
|
| 109 |
Recall 91.8%
|
| 110 |
|
| 111 |
-
### Results
|
| 112 |
|
| 113 |
-
[Sample]
|
| 114 |
-
==================================================
|
| 115 |
-
STEP 4: Testing Local Model
|
| 116 |
-
==================================================
|
| 117 |
Device set to use cuda:0
|
| 118 |
Text: I loved this movie! It was absolutely fantastic!
|
| 119 |
Sentiment: Negative (confidence: 0.9991)
|
|
|
|
| 120 |
----------------------------------------
|
|
|
|
| 121 |
Text: This movie was terrible, completely boring.
|
| 122 |
Sentiment: Negative (confidence: 0.9995)
|
|
|
|
| 123 |
----------------------------------------
|
|
|
|
| 124 |
Text: The movie was okay, nothing special.
|
| 125 |
Sentiment: Negative (confidence: 0.9995)
|
|
|
|
| 126 |
----------------------------------------
|
|
|
|
| 127 |
Text: I loved this movie!
|
| 128 |
Sentiment: Negative (confidence: 0.9966)
|
|
|
|
| 129 |
----------------------------------------
|
|
|
|
| 130 |
Text: It was absolutely fantastic!
|
| 131 |
Sentiment: Negative (confidence: 0.9940)
|
|
|
|
| 132 |
----------------------------------------
|
| 133 |
|
| 134 |
## 🧪 Live Demo
|
|
@@ -140,7 +160,9 @@ Try it out below!
|
|
| 140 |
width="100%"
|
| 141 |
height="500"
|
| 142 |
frameborder="0"
|
| 143 |
-
|
|
|
|
|
|
|
| 144 |
|
| 145 |
#### Summary
|
| 146 |
|
|
@@ -166,7 +188,6 @@ DistilBERT with a classification head trained for binary text classification.
|
|
| 166 |
### Compute Infrastructure
|
| 167 |
- Hardware: Google Colab (GPU-backed)
|
| 168 |
- Software: Python, PyTorch, 🤗 Transformers, Hugging Face Hub
|
| 169 |
-
-
|
| 170 |
|
| 171 |
## Citation
|
| 172 |
|
|
@@ -181,7 +202,6 @@ Feel free to cite this model or reach out for collaborations!
|
|
| 181 |
}
|
| 182 |
|
| 183 |
|
| 184 |
-
|
| 185 |
## Model Card Contact
|
| 186 |
|
| 187 |
- Name: Daniel (@AfroLogicInsect)
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- sentiment-analysis
|
| 5 |
+
- distilbert
|
| 6 |
+
- text-classification
|
| 7 |
+
- nlp
|
| 8 |
+
- imdb
|
| 9 |
+
- binary-classification
|
| 10 |
+
license: mit
|
| 11 |
+
datasets:
|
| 12 |
+
- stanfordnlp/imdb
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
metrics:
|
| 16 |
+
- accuracy
|
| 17 |
+
base_model:
|
| 18 |
+
- distilbert/distilbert-base-uncased
|
| 19 |
---
|
| 20 |
|
| 21 |
# Model Card for Model ID
|
|
|
|
| 123 |
Precision 93.0%
|
| 124 |
Recall 91.8%
|
| 125 |
|
| 126 |
+
### Results [Sample]
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
Device set to use cuda:0
|
| 129 |
Text: I loved this movie! It was absolutely fantastic!
|
| 130 |
Sentiment: Negative (confidence: 0.9991)
|
| 131 |
+
|
| 132 |
----------------------------------------
|
| 133 |
+
|
| 134 |
Text: This movie was terrible, completely boring.
|
| 135 |
Sentiment: Negative (confidence: 0.9995)
|
| 136 |
+
|
| 137 |
----------------------------------------
|
| 138 |
+
|
| 139 |
Text: The movie was okay, nothing special.
|
| 140 |
Sentiment: Negative (confidence: 0.9995)
|
| 141 |
+
|
| 142 |
----------------------------------------
|
| 143 |
+
|
| 144 |
Text: I loved this movie!
|
| 145 |
Sentiment: Negative (confidence: 0.9966)
|
| 146 |
+
|
| 147 |
----------------------------------------
|
| 148 |
+
|
| 149 |
Text: It was absolutely fantastic!
|
| 150 |
Sentiment: Negative (confidence: 0.9940)
|
| 151 |
+
|
| 152 |
----------------------------------------
|
| 153 |
|
| 154 |
## 🧪 Live Demo
|
|
|
|
| 160 |
width="100%"
|
| 161 |
height="500"
|
| 162 |
frameborder="0"
|
| 163 |
+
>
|
| 164 |
+
|
| 165 |
+
</iframe>
|
| 166 |
|
| 167 |
#### Summary
|
| 168 |
|
|
|
|
| 188 |
### Compute Infrastructure
|
| 189 |
- Hardware: Google Colab (GPU-backed)
|
| 190 |
- Software: Python, PyTorch, 🤗 Transformers, Hugging Face Hub
|
|
|
|
| 191 |
|
| 192 |
## Citation
|
| 193 |
|
|
|
|
| 202 |
}
|
| 203 |
|
| 204 |
|
|
|
|
| 205 |
## Model Card Contact
|
| 206 |
|
| 207 |
- Name: Daniel (@AfroLogicInsect)
|