Instructions to use Hate-speech-CNERG/dehatebert-mono-english with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hate-speech-CNERG/dehatebert-mono-english with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hate-speech-CNERG/dehatebert-mono-english")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hate-speech-CNERG/dehatebert-mono-english") model = AutoModelForSequenceClassification.from_pretrained("Hate-speech-CNERG/dehatebert-mono-english", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
234b75c | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:ce02a5f74e55cff488c487f52773af12f908bbefd0a9267fc19c16906bdc0dd3
size 669482093
|