Instructions to use khailai/roberta-offensive-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khailai/roberta-offensive-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="khailai/roberta-offensive-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("khailai/roberta-offensive-classifier") model = AutoModelForSequenceClassification.from_pretrained("khailai/roberta-offensive-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Trained on new data DICA_Dec15 for 8 epochs. 96% accuracy and 0.85 F1 score
8ff0b0b
-
Trained on training set of DICA_Dec13 (lower-cased) for 3 epochs. Retrained on original DICA_Dec13 (casing-preserved) for 3 epochs.
ce7fc59
-
Trained on training set of DICA_Dec8 for 2 epochs
6dbedc8
-
saved labels and id mappings to configs
b26525c -
Pushed after epoch
d39fa7d