label stringclasses 2
values | text stringlengths 2 910 | row_id stringlengths 16 16 | orig_split stringclasses 1
value | orig_idx int64 0 5.16k | split stringclasses 1
value |
|---|---|---|---|---|---|
ham | Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat... | 039074e1953120ed | train | 0 | train |
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 | 8f8ef5464231d9b6 | train | 2 | train |
ham | U dun say so early hor... U c already then say... | b02bd570d2307c75 | train | 3 | train |
ham | Nah I don't think he goes to usf, he lives around here though | e896ad52d5fd88a2 | train | 4 | train |
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 | 15a5a0f89d6ea840 | train | 5 | train |
ham | Even my brother is not like to speak with me. They treat me like aids patent. | bbe1f7d3c40d4f7c | train | 6 | train |
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. | 06e93ea231ce8604 | train | 8 | train |
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 | e33e70f71f3a092b | train | 9 | train |
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 | adb075b765becfce | train | 11 | train |
ham | I HAVE A DATE ON SUNDAY WITH WILL!! | 936f9396270e8090 | train | 14 | train |
ham | Oh k...i'm watching here:) | c99c51dad91db69e | train | 16 | train |
ham | Eh u remember how 2 spell his name... Yes i did. He v naughty make until i v wet. | c097fc147e4cfe17 | train | 17 | train |
ham | Is that seriously how you spell his name? | d1a088075cff1e99 | train | 20 | train |
ham | I‘m going to try for 2 months ha ha only joking | 21ef9eb717d19bc0 | train | 21 | train |
ham | So ü pay first lar... Then when is da stock comin... | 0dd2c7d94dc14172 | train | 22 | train |
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 | a760d16d34d63dba | train | 25 | train |
ham | Lol your always so convincing. | c6e85b4ead06eb9c | train | 26 | train |
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 ? | e5ab675dc1d3ef79 | train | 27 | train |
ham | I'm back & we're packing the car now, I'll let you know if there's room | 019943f60a2ad1ca | train | 28 | train |
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 | 50508b75be9e665e | train | 30 | train |
ham | K tell me anything about you. | 85dffc8a39091933 | train | 32 | train |
ham | For fear of fainting with the of all that housework you just did? Quick have a cuppa | 960b0bc2e0cc5743 | train | 33 | train |
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 | 36ebef65deefde8c | train | 34 | train |
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 | d9f870789f5c5e76 | train | 35 | train |
ham | Oops, I'll let you know when my roommate's done | af50464e36f3c391 | train | 36 | train |
ham | I see the letter B on my car | d43e681dc59be855 | train | 37 | train |
ham | Anything lor... U decide... | e59458545d966e78 | train | 38 | train |
ham | Pls go ahead with watts. I just wanted to be sure. Do have a great weekend. Abiola | d56d3a7a838395a5 | train | 40 | train |
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 | dc3ebeb71cb19738 | train | 41 | train |
ham | WHO ARE YOU SEEING? | 43fcc90ef08607d3 | train | 43 | train |
ham | Great! I hope you like your man well endowed. I am <#> inches... | 6908045bbcc347b5 | train | 44 | train |
ham | No calls..messages..missed calls | 51d47913deb4743f | train | 45 | train |
ham | Didn't you get hep b immunisation in nigeria. | 3f4366d8d8c15b8e | train | 46 | train |
ham | Fair enough, anything going on? | 5d0fffa56e515c03 | train | 47 | train |
ham | Yeah hopefully, if tyler can't do it I could maybe ask around a bit | d96f7c2f61472491 | train | 48 | train |
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. | e452398ee921e3f4 | train | 49 | train |
ham | What you thinked about me. First time you saw me in class. | ae569e52072977ae | train | 50 | train |
ham | K fyi x has a ride early tomorrow morning but he's crashing at our place tonight | ea710d5f4ed7e0db | train | 52 | train |
ham | Do you know what Mallika Sherawat did yesterday? Find out now @ <URL> | 1468841712bdd46a | train | 55 | train |
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! | 62ce36b9e0ad3de7 | train | 56 | train |
ham | Sorry, I'll call later in meeting. | 9c23e6fff9f6d834 | train | 57 | train |
ham | Tell where you reached | 62670ab14d696690 | train | 58 | train |
ham | Yes..gauti and sehwag out of odi series. | 4a3b78845a130cb1 | train | 59 | train |
ham | Its a part of checking IQ | 5101c291f533aa04 | train | 62 | train |
ham | Sorry my roommates took forever, it ok if I come by now? | 497e4931dbb54a67 | train | 63 | train |
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. | 22fa98f489a942c7 | train | 64 | train |
ham | Today is "song dedicated day.." Which song will u dedicate for me? Send this to all ur valuable frnds but first rply me... | 6b0f0470c89bb503 | train | 66 | train |
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 | fda466648ae4a8cb | train | 67 | train |
spam | Did you hear about the new "Divorce Barbie"? It comes with all of Ken's stuff! | 21c6b159e38e71ab | train | 68 | train |
ham | I plane to give on this month end. | 4d5c401dfcde140b | train | 69 | train |
ham | Wah lucky man... Then can save money... Hee... | a0f79bab5716a431 | train | 70 | train |
ham | HI BABE IM AT HOME NOW WANNA DO SOMETHING? XX | 258ada5d29d9e41e | train | 72 | train |
ham | K..k:)where are you?how did you performed? | b1f6179f329fe7a0 | train | 73 | train |
ham | I am waiting machan. Call me once you free. | a6a92f2c3f626e6b | train | 75 | train |
ham | I like you peoples very much:) but am very shy pa. | 935cd99e14cc41a6 | train | 77 | train |
ham | K. Did you call me just now ah? | 9ccc75af1a4cc1f4 | train | 81 | train |
ham | Ok i am on the way to home hi hi | cb1c00c394db97aa | train | 82 | train |
ham | You will be in the place of that man | 75791d860b9f0f52 | train | 83 | train |
ham | Yup next stop. | 1b13865db93c39eb | train | 84 | train |
ham | I call you later, don't have network. If urgnt, sms me. | 2c35747f80a52f80 | train | 85 | train |
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. | 3e962152efe98418 | train | 86 | train |
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. | 2813c0f6f94ba6a2 | train | 87 | train |
ham | I'm really not up to it still tonight babe | 8c357baf37ed337b | train | 88 | train |
ham | Yeah do! Don‘t stand to close tho- you‘ll catch something! | 62dccd4accdc3c7c | train | 90 | train |
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. | 672632262673a329 | train | 91 | train |
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! | 0488e2fa2d7db35d | train | 93 | train |
ham | Havent planning to buy later. I check already lido only got 530 show in e afternoon. U finish work already? | 1602167e0f509174 | train | 94 | train |
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 | ebc28e763806d6e2 | train | 95 | train |
ham | I see a cup of coffee animation | b2bf0cb1a35a380c | train | 99 | train |
ham | Please don't text me anymore. I have nothing else to say. | 9c76f32f287a588a | train | 100 | train |
ham | Okay name ur price as long as its legal! Wen can I pick them up? Y u ave x ams xx | 4d29d21843d06e47 | train | 101 | train |
ham | I'm still looking for a car to buy. And have not gone 4the driving test yet. | 2c237e96a9531d5c | train | 102 | train |
ham | wow. You're right! I didn't mean to do that. I guess once i gave up on boston men and changed my search location to nyc, something changed. Cuz on my signin page it still says boston. | 75a661743ba2d71f | train | 103 | train |
ham | Umma my life and vava umma love you lot dear | e372ba694c4ad6a1 | train | 104 | train |
ham | How would my ip address test that considering my computer isn't a minecraft server | 603682e1c0eda8a0 | train | 107 | train |
ham | Dont worry. I guess he's busy. | f465881510f9ee6a | train | 109 | train |
ham | What is the plural of the noun research? | d0269aba7cc1b7aa | train | 110 | train |
ham | Going for dinner.msg you after. | 20b471220602e4ad | train | 111 | train |
ham | I'm ok wif it cos i like 2 try new things. But i scared u dun like mah. Cos u said not too loud. | befa9a5d91fb20d2 | train | 112 | train |
spam | GENT! We are trying to contact you. Last weekends draw shows that you won a £1000 prize GUARANTEED. Call 09064012160. Claim Code K52. Valid 12hrs only. 150ppm | d32e86e956612a20 | train | 113 | train |
ham | As I entered my cabin my PA said, '' Happy B'day Boss !!''. I felt special. She askd me 4 lunch. After lunch she invited me to her apartment. We went there. | ef5489aa74c25b87 | train | 115 | train |
spam | You are a winner U have been specially selected 2 receive £1000 or a 4* holiday (flights inc) speak to a live operator 2 claim 0871277810910p/min (18+) | 9337ce0618534a48 | train | 116 | train |
ham | Goodo! Yes we must speak friday - egg-potato ratio for tortilla needed! | 79c51a5cbe850b23 | train | 117 | train |
ham | Hmm...my uncle just informed me that he's paying the school directly. So pls buy food. | 4cf760196f2be6b4 | train | 118 | train |
spam | PRIVATE! Your 2004 Account Statement for 07742676969 shows 786 unredeemed Bonus Points. To claim call 08719180248 Identifier Code: 45239 Expires | e8abc1edf56a72d7 | train | 119 | train |
spam | URGENT! Your Mobile No. was awarded £2000 Bonus Caller Prize on 5/9/03 This is our final try to contact U! Call from Landline 09064019788 BOX42WR29C, 150PPM | 3ca5381cfdc5cc88 | train | 120 | train |
ham | here is my new address -apples&pairs&all that malarky | 6734194abd4994a4 | train | 121 | train |
ham | Just so that you know,yetunde hasn't sent money yet. I just sent her a text not to bother sending. So its over, you dont have to involve yourself in anything. I shouldn't have imposed anything on you in the first place so for that, i apologise. | fac97ad9cc98b931 | train | 126 | train |
ham | K..k:)how much does it cost? | e33b0d7e56fe1492 | train | 129 | train |
ham | Dear, will call Tmorrow.pls accomodate. | dee3bf2881258f02 | train | 131 | train |
ham | First answer my question. | 095dacebf60c3dfa | train | 132 | train |
ham | I only haf msn. It's yijue@hotmail.com | d67eaf69d046c644 | train | 135 | train |
ham | He is there. You call and meet him | 2cb0581d1970978e | train | 136 | train |
ham | No no. I will check all rooms befor activities | 69ae08e478eb10d6 | train | 137 | train |
spam | You'll not rcv any more msgs from the chat svc. For FREE Hardcore services text GO to: 69988 If u get nothing u must Age Verify with yr network & try again | 672a78d2bdd20508 | train | 138 | train |
ham | Got c... I lazy to type... I forgot ü in lect... I saw a pouch but like not v nice... | 124919c71f4353e7 | train | 139 | train |
ham | K, text me when you're on the way | 08a6dac873fc5797 | train | 140 | train |
ham | Sir, Waiting for your mail. | e00fc165bd88e133 | train | 141 | train |
ham | I know you are. Can you pls open the back? | 2a1de2a503f7be31 | train | 143 | train |
ham | Yes see ya not on the dot | 97eb9a911e897cae | train | 144 | train |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
sms_spam
Dataset repo: wrynx/probe-robustness-sms_spam
Auto-generated by prepare_datasets.py. Do not hand-edit -- regenerate by re-running the script (with --force) instead.
Stats
- Total records: 5159
- Records per split:
- test: 804
- train: 3604
- valid: 751
- Number of classes: 2
- Records per class:
- ham: 4517
- spam: 642
- Records per class per split:
- test:
- ham: 708
- spam: 96
- train:
- ham: 3143
- spam: 461
- valid:
- ham: 666
- spam: 85
- test:
Original dataset README (from jngb-labs/sms-spam)
Reproduced here from the source dataset's own card (license, citation, task description, etc.) so that information isn't lost by re-hosting under this repo.
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
- 133