Skip to content

stuti234/Email-Spam-Ham-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Email-Sms-Spam-or-Ham-Classifier

image

[ Step - I ] . Importing the required lib's and data cleaning

  1. Import the data & lib's.

image

  1. Print the head.

image

  1. Shape & description of data.

image

  1. Data information.

image

  1. Renaming the columns.

image

  1. Apply the label encoder Spam -> 1 and Ham ->0

image

  1. Check for the null values, duplicate values , remove the duplicate values.

image

[ Step - II ] . Exploratory Data Analysis

  1. Value counts for the target variable , plot the pie chart.

image

  1. Import the nltk pkg.

image

image

  1. Count the number of sentences.

image

  1. Descibe our new features.

image

  1. Plot the histogram.

image

image

  1. Computing the correlations.

image

[ Step - III ] . Text Preprocessing

  1. Text preprocessing.

image

image

  1. Apply on our dataset.

image

  1. Install the word cloud.

image

  1. Make the word cloud for spam msg's.

image

image

  1. Make word cloud for ham msg's.

image

image

  1. Top 30 word's in spam msg's.

image

image

  1. Top 30 word's in ham msg's.

image

image

[ Step - IV ] . Model Building

  1. Count vectorizer.

image

  1. Train , Test, Split.

image

  1. Import 3 models

image

  1. Test for Multinomial NB

image

  1. Test for Binomial NB

image

[Step - V] Model deployment

  1. Import pickle

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages