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