Instructions to use shahidul034/drug_sentiment_analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shahidul034/drug_sentiment_analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="shahidul034/drug_sentiment_analysis")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("shahidul034/drug_sentiment_analysis") model = AutoModelForSequenceClassification.from_pretrained("shahidul034/drug_sentiment_analysis") - Notebooks
- Google Colab
- Kaggle
Commit ·
b48de2d
1
Parent(s): 2b850c8
Update config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|
|
|
|
| 10 |
"hidden_dropout_prob": 0.1,
|
| 11 |
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
+
"1": "bad",
|
| 14 |
+
"0": "good"
|
| 15 |
},
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|