Text Classification
Transformers
PyTorch
Safetensors
Marathi
English
multilingual
xlm-roberta
codemix
text-embeddings-inference
Instructions to use l3cube-pune/me-hate-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use l3cube-pune/me-hate-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="l3cube-pune/me-hate-roberta")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("l3cube-pune/me-hate-roberta") model = AutoModelForSequenceClassification.from_pretrained("l3cube-pune/me-hate-roberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
f977ee5
1
Parent(s): ce95c52
Update config.json
Browse files- config.json +1 -9
config.json
CHANGED
|
@@ -26,13 +26,5 @@
|
|
| 26 |
"transformers_version": "4.22.0",
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
-
"vocab_size": 250002
|
| 30 |
-
"id2label": {
|
| 31 |
-
"0": "Non-Hate",
|
| 32 |
-
"1": "Hate"
|
| 33 |
-
},
|
| 34 |
-
"label2id": {
|
| 35 |
-
"Non-Hate": 0,
|
| 36 |
-
"Hate": 1
|
| 37 |
-
},
|
| 38 |
}
|
|
|
|
| 26 |
"transformers_version": "4.22.0",
|
| 27 |
"type_vocab_size": 1,
|
| 28 |
"use_cache": true,
|
| 29 |
+
"vocab_size": 250002
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|