Instructions to use erfansadraiye/ClassifyOffensiveTasks with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use erfansadraiye/ClassifyOffensiveTasks with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="erfansadraiye/ClassifyOffensiveTasks")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("erfansadraiye/ClassifyOffensiveTasks") model = AutoModelForSequenceClassification.from_pretrained("erfansadraiye/ClassifyOffensiveTasks", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 264 Bytes
d7ca922 7562f9e d7ca922 7562f9e d7ca922 7562f9e d7ca922 7562f9e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ---
language: en
pipeline_tag: text-classification
---
# Text Detoxification Classification
This is a classification model to detoxify text. It has been fine-tuned on [OLID](https://sites.google.com/site/offensevalsharedtask/olid) using the BERT model.
``` |