Skip to content

NLP Spam Classifier Model to separate out Spam messages from legitimate messages.

Notifications You must be signed in to change notification settings

Jash-tech/NLP-Spam-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

NLP-Spam-Classifier

The SMS Spam Collection is a set of SMS tagged messages that have been collected for SMS Spam research. It contains one set of SMS messages in English of 5,574 messages, tagged acording being ham (legitimate) or spam. This python project of detecting Spam messages deals with spam and ham messages. Using sklearn, we build a TfidfVectorizer on our dataset. Then, we initialize a Naive bayes classifier and fit the model.

We took a dataset, implemented a TfidfVectorizer, initialized a Naive bayes classifier, and fit our model. So with this model, we have 955 true positives, 129 true negatives, 0 false positives, and 31 false negatives.We ended up obtaining an accuracy of 97% in magnitude.

Credits: Dataset has bee taken from UCI Machine Learning Repository.Thanks to Krish Naik for the steps and guidance for this beginner NLP model.

Releases

No releases published

Packages

No packages published