Instructions to use Arsive/roberta-toxicity-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Arsive/roberta-toxicity-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Arsive/roberta-toxicity-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Arsive/roberta-toxicity-classifier") model = AutoModelForSequenceClassification.from_pretrained("Arsive/roberta-toxicity-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,4 +2,12 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
-
Roberta-base model trained on [Arsive/toxicity_classification_jigsaw](https://huggingface.co/datasets/Arsive/toxicity_classification_jigsaw)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
|
| 5 |
+
Roberta-base model trained on [Arsive/toxicity_classification_jigsaw](https://huggingface.co/datasets/Arsive/toxicity_classification_jigsaw)
|
| 6 |
+
|
| 7 |
+
The following are the corresponding labels:
|
| 8 |
+
#### LABEL_0: toxic
|
| 9 |
+
#### LABEL_1: severe_toxic
|
| 10 |
+
#### LABEL_2: obscene
|
| 11 |
+
#### LABEL_3: threat
|
| 12 |
+
#### LABEL_4: insult
|
| 13 |
+
#### LABEL_5: identity_hate
|