Instructions to use Sakil/distilbert_lazylearner_hatespeech_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sakil/distilbert_lazylearner_hatespeech_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sakil/distilbert_lazylearner_hatespeech_detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sakil/distilbert_lazylearner_hatespeech_detection") model = AutoModelForSequenceClassification.from_pretrained("Sakil/distilbert_lazylearner_hatespeech_detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,4 +43,4 @@ classifier = pipeline("text-classification",model=model_name)
|
|
| 43 |
|
| 44 |
classifier("!!! RT @mayasolovely: As a woman you shouldn't complain about cleaning up your house. & as a man you should always take the trash out...")
|
| 45 |
|
| 46 |
-
# Github: [Sakil Ansari](https://github.com/Sakil786/
|
|
|
|
| 43 |
|
| 44 |
classifier("!!! RT @mayasolovely: As a woman you shouldn't complain about cleaning up your house. & as a man you should always take the trash out...")
|
| 45 |
|
| 46 |
+
# Github: [Sakil Ansari](https://github.com/Sakil786/hate_speech_detection_pretrained_model)
|