Instructions to use luisu0124/Amazon_review with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use luisu0124/Amazon_review with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="luisu0124/Amazon_review")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("luisu0124/Amazon_review") model = AutoModelForSequenceClassification.from_pretrained("luisu0124/Amazon_review") - Notebooks
- Google Colab
- Kaggle
Sebastian Urrea commited on
Commit ·
cd40a16
1
Parent(s): a30310e
update readme
Browse files- config.json +4 -4
config.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"id2label": {
|
| 7 |
-
"0": "
|
| 8 |
-
"1": "
|
| 9 |
},
|
| 10 |
"initializer_range": 0.02,
|
| 11 |
"label2id": {
|
| 12 |
-
"NEGATIVE":
|
| 13 |
-
"POSITIVE":
|
| 14 |
},
|
| 15 |
"classifier_dropout": null,
|
| 16 |
"hidden_act": "gelu",
|
|
|
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"id2label": {
|
| 7 |
+
"0": "POSITIVE",
|
| 8 |
+
"1": "NEGATIVE"
|
| 9 |
},
|
| 10 |
"initializer_range": 0.02,
|
| 11 |
"label2id": {
|
| 12 |
+
"NEGATIVE": 1,
|
| 13 |
+
"POSITIVE": 0
|
| 14 |
},
|
| 15 |
"classifier_dropout": null,
|
| 16 |
"hidden_act": "gelu",
|