Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use loluvulol/classifier-chapter4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use loluvulol/classifier-chapter4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="loluvulol/classifier-chapter4")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("loluvulol/classifier-chapter4") model = AutoModelForSequenceClassification.from_pretrained("loluvulol/classifier-chapter4") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +4 -4
config.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
| 9 |
"dropout": 0.1,
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
-
"0": "
|
| 13 |
-
"1": "
|
| 14 |
-
"2": "
|
| 15 |
-
"3": "
|
| 16 |
},
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"label2id": {
|
|
|
|
| 9 |
"dropout": 0.1,
|
| 10 |
"hidden_dim": 3072,
|
| 11 |
"id2label": {
|
| 12 |
+
"0": "World",
|
| 13 |
+
"1": "Sports",
|
| 14 |
+
"2": "Business",
|
| 15 |
+
"3": "Sci/Tech"
|
| 16 |
},
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"label2id": {
|