Instructions to use Delphia/twitter-spam-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Delphia/twitter-spam-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Delphia/twitter-spam-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Delphia/twitter-spam-classifier") model = AutoModelForSequenceClassification.from_pretrained("Delphia/twitter-spam-classifier") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Delphia/twitter-spam-classifier")
model = AutoModelForSequenceClassification.from_pretrained("Delphia/twitter-spam-classifier")Quick Links
Model Trained Using AutoTrain
- Problem type: Text Classification
Model trained on "Tesla" related tweets from X/Twitter to filter out spam tweets based on trolling, profanity, extreme political views, etc.
0 - Valid
1 - Spam
Validation Metrics
loss: 0.4916948974132538
f1: 0.8059701492537313
precision: 0.782608695652174
recall: 0.8307692307692308
auc: 0.8416783216783217
accuracy: 0.7833333333333333
- Downloads last month
- 23
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Delphia/twitter-spam-classifier")