Detect spam text messages with near-perfect accuracy. A binary classifier that separates legitimate messages (ham) from spam. Trained on the SMS Spam Collection dataset
from jeffy.engine import Engine engine = Engine() engine.load() result = engine.predict("sms_spam", "You won a free iPhone! Click here") print(result["label"]) # spam
$ curl -s -X POST https://playground.jeffyclassify.com/v1/predict \ -H "Content-Type: application/json" \ -d '{"text":"Free entry to win cash","task":"sms_spam"}'
pip install jeffy-classify