Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
Cross-lingual-nlp
zero-shot-transfer
toxicity-analysis
abuse-detection
flag-user
block-user
multilinguality
XLM-R
Instructions to use Jayveersinh-Raj/PolyGuard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jayveersinh-Raj/PolyGuard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jayveersinh-Raj/PolyGuard")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Jayveersinh-Raj/PolyGuard") model = AutoModelForSequenceClassification.from_pretrained("Jayveersinh-Raj/PolyGuard") - Notebooks
- Google Colab
- Kaggle
Commit ·
5b39add
1
Parent(s): 0d8958e
Update config.json
Browse files- config.json +4 -0
config.json
CHANGED
|
@@ -10,6 +10,10 @@
|
|
| 10 |
"hidden_act": "gelu",
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
"intermediate_size": 3072,
|
| 15 |
"layer_norm_eps": 1e-05,
|
|
|
|
| 10 |
"hidden_act": "gelu",
|
| 11 |
"hidden_dropout_prob": 0.1,
|
| 12 |
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "Non-toxic",
|
| 15 |
+
"1": "Toxic"
|
| 16 |
+
},
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
"intermediate_size": 3072,
|
| 19 |
"layer_norm_eps": 1e-05,
|