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