Upload DistilBertForSequenceClassification
Browse files- README.md +8 -7
- config.json +33 -0
- model.safetensors +3 -0
README.md
CHANGED
|
@@ -12,6 +12,14 @@ datasets:
|
|
| 12 |
metrics:
|
| 13 |
- accuracy
|
| 14 |
- f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
model-index:
|
| 16 |
- name: customer-sentiment-analyzer
|
| 17 |
results:
|
|
@@ -28,13 +36,6 @@ model-index:
|
|
| 28 |
- type: f1
|
| 29 |
value: 0.89
|
| 30 |
name: F1 Score
|
| 31 |
-
widget:
|
| 32 |
-
- text: "This product exceeded my expectations! Fast shipping and great quality."
|
| 33 |
-
example_title: "Positive Review"
|
| 34 |
-
- text: "Terrible experience. Product broke after one week and customer service was unhelpful."
|
| 35 |
-
example_title: "Negative Review"
|
| 36 |
-
- text: "It's okay, nothing special. Does what it's supposed to do."
|
| 37 |
-
example_title: "Neutral Review"
|
| 38 |
---
|
| 39 |
|
| 40 |
# 🎯 Customer Sentiment Analyzer
|
|
|
|
| 12 |
metrics:
|
| 13 |
- accuracy
|
| 14 |
- f1
|
| 15 |
+
widget:
|
| 16 |
+
- text: This product exceeded my expectations! Fast shipping and great quality.
|
| 17 |
+
example_title: Positive Review
|
| 18 |
+
- text: Terrible experience. Product broke after one week and customer service was
|
| 19 |
+
unhelpful.
|
| 20 |
+
example_title: Negative Review
|
| 21 |
+
- text: It's okay, nothing special. Does what it's supposed to do.
|
| 22 |
+
example_title: Neutral Review
|
| 23 |
model-index:
|
| 24 |
- name: customer-sentiment-analyzer
|
| 25 |
results:
|
|
|
|
| 36 |
- type: f1
|
| 37 |
value: 0.89
|
| 38 |
name: F1 Score
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
# 🎯 Customer Sentiment Analyzer
|
config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation": "gelu",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"DistilBertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.1,
|
| 7 |
+
"dim": 768,
|
| 8 |
+
"dropout": 0.1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"hidden_dim": 3072,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "negative",
|
| 13 |
+
"1": "neutral",
|
| 14 |
+
"2": "positive"
|
| 15 |
+
},
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"negative": 0,
|
| 19 |
+
"neutral": 1,
|
| 20 |
+
"positive": 2
|
| 21 |
+
},
|
| 22 |
+
"max_position_embeddings": 512,
|
| 23 |
+
"model_type": "distilbert",
|
| 24 |
+
"n_heads": 12,
|
| 25 |
+
"n_layers": 6,
|
| 26 |
+
"pad_token_id": 0,
|
| 27 |
+
"qa_dropout": 0.1,
|
| 28 |
+
"seq_classif_dropout": 0.2,
|
| 29 |
+
"sinusoidal_pos_embds": false,
|
| 30 |
+
"tie_weights_": true,
|
| 31 |
+
"transformers_version": "4.57.3",
|
| 32 |
+
"vocab_size": 30522
|
| 33 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dce00990b30861aa54d2a1380c8388e36c0638d59b6e15e60576366cd2e95451
|
| 3 |
+
size 267835644
|