Category
stringclasses 2
values | Message
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 thats the way u feel. Thats 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 |
Spam Classification Dataset
Overview
The Spam Classification Dataset contains a collection of SMS messages labeled as either "spam" or "ham" (non-spam). This dataset is designed for binary text classification tasks, where the goal is to classify an SMS message as either spam or non-spam based on its content.
Dataset Structure
The dataset is provided as a single CSV file named spam.csv
. It contains 5,572 entries, with each entry corresponding to an SMS message. The dataset includes the following columns:
Columns
- Category: The label for the message, indicating whether it is spam (
spam
) or not (ham
). - Message: The content of the SMS message.
Summary Statistics
- Total Messages: 5,572
- Unique Categories: 2 (
spam
,ham
) - Most Frequent Message: "Sorry, I'll call later" (appears 30 times)
- Most Frequent Category:
ham
(4,825 occurrences)
Usage
This dataset is suitable for binary classification tasks, particularly for training and evaluating models that can detect spam messages in SMS data. It can be used to develop and benchmark various natural language processing (NLP) models, such as:
- Naive Bayes Classifier
- Support Vector Machines (SVM)
- Logistic Regression
- Deep Learning Models (e.g., LSTM, BERT)
Example Use Cases
- Spam Detection: Training a machine learning model to automatically detect spam messages.
- Text Preprocessing: Exploring text preprocessing techniques like tokenization, stopword removal, and stemming/lemmatization.
- Feature Engineering: Experimenting with different feature extraction methods, such as TF-IDF, word embeddings, or n-grams.
Requirements
To run analyses on this dataset, you'll need the following Python libraries:
pip install pandas
pip install numpy
pip install scikit-learn
pip install nltk
Example Code
Loading the Dataset
You can load the dataset using the following code snippet:
import pandas as pd
# Load the dataset
df = pd.read_csv('spam.csv')
# Display the first few rows
print(df.head())
Preprocessing Example
Here’s an example of how you might preprocess the text data for training:
import nltk
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import TfidfVectorizer
# Download stopwords
nltk.download('stopwords')
from nltk.corpus import stopwords
# Split the data
X_train, X_test, y_train, y_test = train_test_split(df['Message'], df['Category'], test_size=0.2, random_state=42)
# Initialize TF-IDF Vectorizer
tfidf = TfidfVectorizer(stop_words=stopwords.words('english'))
# Fit and transform the training data
X_train_tfidf = tfidf.fit_transform(X_train)
X_test_tfidf = tfidf.transform(X_test)
Model Training Example
Here’s how you might train a simple Naive Bayes classifier:
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import accuracy_score, classification_report
# Train the model
model = MultinomialNB()
model.fit(X_train_tfidf, y_train)
# Make predictions
y_pred = model.predict(X_test_tfidf)
# Evaluate the model
print("Accuracy:", accuracy_score(y_test, y_pred))
print(classification_report(y_test, y_pred))
- Downloads last month
- 65