Dataset Viewer
Auto-converted to Parquet Duplicate
label
stringclasses
2 values
text
stringlengths
2
910
ham
Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
ham
Ok lar... Joking wif u oni...
spam
Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
ham
U dun say so early hor... U c already then say...
ham
Nah I don't think he goes to usf, he lives around here though
spam
FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv
ham
Even my brother is not like to speak with me. They treat me like aids patent.
ham
As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune
spam
WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only.
spam
Had your mobile 11 months or more? U R entitled to Update to the latest colour mobiles with camera for Free! Call The Mobile Update Co FREE on 08002986030
ham
I'm gonna be home soon and i don't want to talk about this stuff anymore tonight, k? I've cried enough today.
spam
SIX chances to win CASH! From 100 to 20,000 pounds txt> CSH11 and send to 87575. Cost 150p/day, 6days, 16+ TsandCs apply Reply HL 4 info
spam
URGENT! You have won a 1 week FREE membership in our £100,000 Prize Jackpot! Txt the word: CLAIM to No: 81010 T&C www.dbuk.net LCCLTD POBOX 4403LDNW1A7RW18
ham
I've been searching for the right words to thank you for this breather. I promise i wont take your help for granted and will fulfil my promise. You have been wonderful and a blessing at all times.
ham
I HAVE A DATE ON SUNDAY WITH WILL!!
spam
XXXMobileMovieClub: To use your credit, click the WAP link in the next txt message or click here>> http://wap. xxxmobilemovieclub.com?n=QJKGIGHJJGCBL
ham
Oh k...i'm watching here:)
ham
Eh u remember how 2 spell his name... Yes i did. He v naughty make until i v wet.
ham
Fine if that's the way u feel. That's the way its gota b
spam
England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+
ham
Is that seriously how you spell his name?
ham
I‘m going to try for 2 months ha ha only joking
ham
So ü pay first lar... Then when is da stock comin...
ham
Aft i finish my lunch then i go str down lor. Ard 3 smth lor. U finish ur lunch already?
ham
Ffffffffff. Alright no way I can meet up with you sooner?
ham
Just forced myself to eat a slice. I'm really not hungry tho. This sucks. Mark is getting worried. He knows I'm sick when I turn down pizza. Lol
ham
Lol your always so convincing.
ham
Did you catch the bus ? Are you frying an egg ? Did you make a tea? Are you eating your mom's left over dinner ? Do you feel my Love ?
ham
I'm back & we're packing the car now, I'll let you know if there's room
ham
Ahhh. Work. I vaguely remember that! What does it feel like? Lol
ham
Wait that's still not all that clear, were you not sure about me being sarcastic or that that's why x doesn't want to live with us
ham
Yeah he got in at 2 and was v apologetic. n had fallen out and she was actin like spoilt child and he got caught up in that. Till 2! But we won't go there! Not doing too badly cheers. You?
ham
K tell me anything about you.
ham
For fear of fainting with the of all that housework you just did? Quick have a cuppa
spam
Thanks for your subscription to Ringtone UK your mobile will be charged £5/month Please confirm by replying YES or NO. If you reply NO you will not be charged
ham
Yup... Ok i go home look at the timings then i msg ü again... Xuhui going to learn on 2nd may too but her lesson is at 8am
ham
Oops, I'll let you know when my roommate's done
ham
I see the letter B on my car
ham
Anything lor... U decide...
ham
Hello! How's you and how did saturday go? I was just texting to see if you'd decided to do anything tomo. Not that i'm trying to invite myself or anything!
ham
Pls go ahead with watts. I just wanted to be sure. Do have a great weekend. Abiola
ham
Did I forget to tell you ? I want you , I need you, I crave you ... But most of all ... I love you my sweet Arabian steed ... Mmmmmm ... Yummy
spam
07732584351 - Rodger Burns - MSG = We tried to call you re your reply to our sms for a free nokia mobile + free camcorder. Please call now 08000930705 for delivery tomorrow
ham
WHO ARE YOU SEEING?
ham
Great! I hope you like your man well endowed. I am <#> inches...
ham
No calls..messages..missed calls
ham
Didn't you get hep b immunisation in nigeria.
ham
Fair enough, anything going on?
ham
Yeah hopefully, if tyler can't do it I could maybe ask around a bit
ham
U don't know how stubborn I am. I didn't even want to go to the hospital. I kept telling Mark I'm not a weak sucker. Hospitals are for weak suckers.
ham
What you thinked about me. First time you saw me in class.
ham
A gram usually runs like <#> , a half eighth is smarter though and gets you almost a whole second gram for <#>
ham
K fyi x has a ride early tomorrow morning but he's crashing at our place tonight
ham
Wow. I never realized that you were so embarassed by your accomodations. I thought you liked it, since i was doing the best i could and you always seemed so happy about "the cave". I'm sorry I didn't and don't have more to give. I'm sorry i offered. I'm sorry your room was so embarassing.
spam
SMS. ac Sptv: The New Jersey Devils and the Detroit Red Wings play Ice Hockey. Correct or Incorrect? End? Reply END SPTV
ham
Do you know what Mallika Sherawat did yesterday? Find out now @ <URL>
spam
Congrats! 1 year special cinema pass for 2 is yours. call 09061209465 now! C Suprman V, Matrix3, StarWars3, etc all 4 FREE! bx420-ip4-5we. 150pm. Dont miss out!
ham
Sorry, I'll call later in meeting.
ham
Tell where you reached
ham
Yes..gauti and sehwag out of odi series.
ham
Your gonna have to pick up a $1 burger for yourself on your way home. I can't even move. Pain is killing me.
ham
Ha ha ha good joke. Girls are situation seekers.
ham
Its a part of checking IQ
ham
Sorry my roommates took forever, it ok if I come by now?
ham
Ok lar i double check wif da hair dresser already he said wun cut v short. He said will cut until i look nice.
spam
As a valued customer, I am pleased to advise you that following recent review of your Mob No. you are awarded with a £1500 Bonus Prize, call 09066364589
ham
Today is "song dedicated day.." Which song will u dedicate for me? Send this to all ur valuable frnds but first rply me...
spam
Urgent UR awarded a complimentary trip to EuroDisinc Trav, Aco&Entry41 Or £1000. To claim txt DIS to 87121 18+6*£1.50(moreFrmMob. ShrAcomOrSglSuplt)10, LS1 3AJ
spam
Did you hear about the new "Divorce Barbie"? It comes with all of Ken's stuff!
ham
I plane to give on this month end.
ham
Wah lucky man... Then can save money... Hee...
ham
Finished class where are you.
ham
HI BABE IM AT HOME NOW WANNA DO SOMETHING? XX
ham
K..k:)where are you?how did you performed?
ham
U can call me now...
ham
I am waiting machan. Call me once you free.
ham
Thats cool. i am a gentleman and will treat you with dignity and respect.
ham
I like you peoples very much:) but am very shy pa.
ham
Does not operate after <#> or what
ham
Its not the same here. Still looking for a job. How much do Ta's earn there.
ham
Sorry, I'll call later
ham
K. Did you call me just now ah?
ham
Ok i am on the way to home hi hi
ham
You will be in the place of that man
ham
Yup next stop.
ham
I call you later, don't have network. If urgnt, sms me.
ham
For real when u getting on yo? I only need 2 more tickets and one more jacket and I'm done. I already used all my multis.
ham
Yes I started to send requests to make it but pain came back so I'm back in bed. Double coins at the factory too. I gotta cash in all my nitros.
ham
I'm really not up to it still tonight babe
ham
Ela kano.,il download, come wen ur free..
ham
Yeah do! Don‘t stand to close tho- you‘ll catch something!
ham
Sorry to be a pain. Is it ok if we meet another night? I spent late afternoon in casualty and that means i haven't done any of y stuff42moro and that includes all my time sheets and that. Sorry.
ham
Smile in Pleasure Smile in Pain Smile when trouble pours like Rain Smile when sum1 Hurts U Smile becoz SOMEONE still Loves to see u Smiling!!
spam
Please call our customer service representative on 0800 169 6031 between 10am-9pm as you have WON a guaranteed £1000 cash or £5000 prize!
ham
Havent planning to buy later. I check already lido only got 530 show in e afternoon. U finish work already?
spam
Your free ringtone is waiting to be collected. Simply text the password "MIX" to 85069 to verify. Get Usher and Britney. FML, PO Box 5249, MK17 92H. 450Ppw 16
ham
Watching telugu movie..wat abt u?
ham
i see. When we finish we have loads of loans to pay
ham
Hi. Wk been ok - on hols now! Yes on for a bit of a run. Forgot that i have hairdressers appointment at four so need to get home n shower beforehand. Does that cause prob for u?"
ham
I see a cup of coffee animation
End of preview. Expand in Data Studio

SMS Spam

The SMS Spam Collection, deduplicated.

The original corpus, assembled by Almeida and Gómez Hidalgo in 2011, contains 5,574 SMS messages tagged as ham (legitimate) or spam. About seven percent of the rows are exact duplicates: the same message text appearing more than once. This release removes them and repairs a small set of encoding artifacts. The messages and labels are otherwise unchanged.

5,159 messages remain: 4,517 ham, 642 spam.

What is in it

Field Type What it is
label string "ham" or "spam". Nothing else.
text string The raw SMS message body.

A single train split. Build your own validation and test splits.

from datasets import load_dataset

ds = load_dataset("jngb-labs/sms-spam", split="train")
print(ds[0])
# {'label': 'ham', 'text': 'Go until jurong point, crazy.. ...'}

What changed from the source

Three things, in order of how much they affect the corpus.

Deduplication. 415 of 5,574 rows removed: 310 ham, 105 spam. The dedup key normalises whitespace, NFKC-folds the text, and lowercases for comparison; the messages themselves are stored in their original casing and punctuation. Spam has a higher duplication rate than ham (about 14 percent vs about 6 percent), consistent with spam being templated and sent at scale. No two messages with different labels collided on the dedup key. The first occurrence of each canonical form wins.

Whitespace cleanup. 424 messages had stray leading or trailing whitespace, or multiple-space runs in the middle. These were stripped or collapsed. Casing untouched.

Encoding repair. A handful of Windows-1252 control bytes survived from an earlier round-trip through a CP1252 environment and rendered as control characters when read as UTF-8. They are mapped to their typographic equivalents (curly quotes, dashes, ellipsis). No actual words changed.

All three are reproducible. scripts/clean.py in this repo, run against the original raw file, produces this dataset byte-for-byte.

What was not changed

Words, punctuation, casing. Label assignments. Anything beyond the three transformations above. There is no train/test split applied here; downstream users construct their own.

What it is good for

Training and benchmarking binary text classifiers, especially the kind of experiments that highlight the gap (or absence of a gap) between simple methods and pretrained transformers. The corpus is small enough that the experiment loops quickly and large enough that the metrics are statistically meaningful. Two derivative models trained on this data are at jngb-labs/sms-spam-classical and jngb-labs/sms-spam-distilbert, and an interactive comparison demo is at jngb-labs/sms-spam-classifier.

What it is not good for

Production deployment against modern spam. The data is from 2011 and earlier. The spam patterns are mostly UK and Singaporean, mostly pre-smartphone. Contemporary smishing campaigns (brand impersonation, URL shorteners, two-factor scams) are underrepresented. Anything trained on this corpus alone will miss patterns invented in the last decade.

Anything that is not English. Anything that requires sender identity, delivery timestamps, or any signal beyond the message body and the label: none of that is in the corpus.

Where it came from

Four sources, blended:

  • About 425 spam messages manually scraped from Grumbletext, a UK forum on which mobile-phone users discussed SMS spam they had received.
  • About 450 ham messages from Caroline Tagg's PhD thesis.
  • About 3,375 ham messages from the NUS SMS Corpus, contributed largely by students at the National University of Singapore.
  • About 1,002 ham and 322 spam messages from José María Gómez Hidalgo's earlier SMS Spam Corpus v.0.1 Big.

Assembled by Almeida and Gómez Hidalgo in 2011. Full attribution preserved in the LICENSE file and in the citation below.

Citation

@inproceedings{Almeida2011SMSSpam,
  author    = {Tiago A. Almeida and Jos\'{e} Mar\'{i}a G\'{o}mez Hidalgo and Akebo Yamakami},
  title     = {Contributions to the study of {SMS} spam filtering: new collection and results},
  booktitle = {Proceedings of the 2011 ACM Symposium on Document Engineering},
  year      = {2011},
}

The original authors ask that users notify them by email at tiago@dt.fee.unicamp.br when the corpus is used in research or production.

Licensing

The original SMS Spam Collection v.1 is distributed under a custom license: free use, attribution required, no warranty. The full text is preserved verbatim in the LICENSE file alongside this README.

Copyright for the corpus content remains with Tiago Agostinho de Almeida and José María Gómez Hidalgo. This deduplicated release does not claim any new copyright over the contents. The cleaning script (scripts/clean.py) is released under MIT.

Changelog

  • 2026-05-19. Initial release. Deduplication, whitespace cleanup, encoding repair applied to the SMS Spam Collection v.1.
Downloads last month
31

Models trained or fine-tuned on jngb-labs/sms-spam

Spaces using jngb-labs/sms-spam 2