Instructions to use KoalaAI/Text-Moderation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KoalaAI/Text-Moderation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KoalaAI/Text-Moderation")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KoalaAI/Text-Moderation") model = AutoModelForSequenceClassification.from_pretrained("KoalaAI/Text-Moderation") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
6d101ff
1
Parent(s): 783ffdf
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ co2_eq_emissions:
|
|
| 18 |
license: openrail
|
| 19 |
---
|
| 20 |
|
| 21 |
-
# Text Moderation
|
| 22 |
This model is a text classification model based on Deberta-v3 that predicts whether a text contains text that could be considered offensive.
|
| 23 |
It is split up in the following labels:
|
| 24 |
|
|
|
|
| 18 |
license: openrail
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# Text Moderation
|
| 22 |
This model is a text classification model based on Deberta-v3 that predicts whether a text contains text that could be considered offensive.
|
| 23 |
It is split up in the following labels:
|
| 24 |
|