NotShrirang/email-spam-filter
Viewer • Updated • 5.17k • 116 • 11
How to use ravan18/spam with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ravan18/spam") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ravan18/spam")
model = AutoModelForSequenceClassification.from_pretrained("ravan18/spam")Base model
h-e-l-l-o/email-spam-classification-merged