Text Classification
Transformers
Safetensors
English
distilbert
spam-detection
nlp
text-embeddings-inference
Instructions to use Abdallah-Thuieb/distilbert-spam-classification-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abdallah-Thuieb/distilbert-spam-classification-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Abdallah-Thuieb/distilbert-spam-classification-binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Abdallah-Thuieb/distilbert-spam-classification-binary") model = AutoModelForSequenceClassification.from_pretrained("Abdallah-Thuieb/distilbert-spam-classification-binary", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download social-spam-clean.ipynb from Abdallah-Thuieb/distilbert-spam-classification-binary: direct link, hf CLI and curl.
- Browser
- Download file 193 kB
-
https://huggingface.co/Abdallah-Thuieb/distilbert-spam-classification-binary/resolve/main/social-spam-clean.ipynb
- Command line
-
hf download hf://Abdallah-Thuieb/distilbert-spam-classification-binary/social-spam-clean.ipynb
-
curl -L -o social-spam-clean.ipynb https://huggingface.co/Abdallah-Thuieb/distilbert-spam-classification-binary/resolve/main/social-spam-clean.ipynb
193 kB