Text Classification
Transformers
PyTorch
English
bert
BERTicelli
text classification
abusive language
hate speech
offensive language
Instructions to use patrickquick/BERTicelli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use patrickquick/BERTicelli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="patrickquick/BERTicelli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("patrickquick/BERTicelli") model = AutoModelForSequenceClassification.from_pretrained("patrickquick/BERTicelli") - Notebooks
- Google Colab
- Kaggle
Commit ·
8d11623
1
Parent(s): 113c268
Update config.json
Browse files- config.json +4 -0
config.json
CHANGED
|
@@ -27,5 +27,9 @@
|
|
| 27 |
"0": "NON",
|
| 28 |
"1": "OFF"
|
| 29 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"_num_labels": 2
|
| 31 |
}
|
|
|
|
| 27 |
"0": "NON",
|
| 28 |
"1": "OFF"
|
| 29 |
},
|
| 30 |
+
"label2id": {
|
| 31 |
+
"NON OFFENSIVE": O,
|
| 32 |
+
"OFFENSIVE": 1
|
| 33 |
+
},
|
| 34 |
"_num_labels": 2
|
| 35 |
}
|