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