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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
f959acd
1
Parent(s): 1395e75
update label2id
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
"transformers_version": "4.18.0",
|
| 23 |
"type_vocab_size": 2,
|
| 24 |
"use_cache": true,
|
| 25 |
-
"vocab_size": 28996
|
| 26 |
"label2id": {
|
| 27 |
"LABEL_0": "OFF",
|
| 28 |
"LABEL_1": "NON"
|
|
|
|
| 22 |
"transformers_version": "4.18.0",
|
| 23 |
"type_vocab_size": 2,
|
| 24 |
"use_cache": true,
|
| 25 |
+
"vocab_size": 28996,
|
| 26 |
"label2id": {
|
| 27 |
"LABEL_0": "OFF",
|
| 28 |
"LABEL_1": "NON"
|