Skip to content

Dataset · ucirvine

Classic SMS message corpus for spam filtering

ucirvine/sms_spam

A set of 5,574 real English SMS messages labeled as spam or ham for text classification tasks.

What's inside

A public collection of SMS messages gathered for mobile spam research. The dataset contains 5,574 real unencrypted texts in English, each assigned to one of two classes: legitimate message (ham) or spam.

What you can do with it

  • Training basic text classifiers for spam detection in messengers and SMS
  • Testing and benchmarking lightweight NLP models on binary classification
  • Practice and prototyping of short text message processing pipelines
Tasks
Text classification
Languages
English
Size
1K–10K rows
Downloads this month
9K
Likes
59

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("ucirvine/sms_spam")