Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# DistilBERT IMDB Sentiment Classifier
|
| 2 |
|
| 3 |
## Overview
|
|
@@ -40,4 +59,4 @@ inputs = tokenizer("This movie was excellent!", return_tensors="pt")
|
|
| 40 |
outputs = model(**inputs)
|
| 41 |
prediction = torch.argmax(outputs.logits).item()
|
| 42 |
|
| 43 |
-
print("Positive" if prediction == 1 else "Negative")
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: mit
|
| 4 |
+
datasets:
|
| 5 |
+
- imdb
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
- f1
|
| 9 |
+
pipeline_tag: text-classification
|
| 10 |
+
base_model: distilbert/distilbert-base-uncased
|
| 11 |
+
library_name: transformers
|
| 12 |
+
tags:
|
| 13 |
+
- fine-tune-model
|
| 14 |
+
- sentiment-analysis
|
| 15 |
+
- distilbert
|
| 16 |
+
- text-classification
|
| 17 |
+
- imdb
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
# DistilBERT IMDB Sentiment Classifier
|
| 21 |
|
| 22 |
## Overview
|
|
|
|
| 59 |
outputs = model(**inputs)
|
| 60 |
prediction = torch.argmax(outputs.logits).item()
|
| 61 |
|
| 62 |
+
print("Positive" if prediction == 1 else "Negative")
|