Instructions to use alexandrainst/da-offensive-detection-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alexandrainst/da-offensive-detection-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="alexandrainst/da-offensive-detection-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("alexandrainst/da-offensive-detection-base") model = AutoModelForSequenceClassification.from_pretrained("alexandrainst/da-offensive-detection-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
4a8051e | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:46afe88da5fd71bdbab5cfab5e84c1adce59c246ea5f9341bbecef061891d0a7
size 17082913
|