Skip to content

Instantly share code, notes, and snippets.

@dsilvadeepal
Last active August 14, 2018 19:27
Show Gist options
  • Save dsilvadeepal/e209f943b7639b7342be2685303d167e to your computer and use it in GitHub Desktop.
Save dsilvadeepal/e209f943b7639b7342be2685303d167e to your computer and use it in GitHub Desktop.
Spam Classifier - Import data & libraries
#Import libraries
library(tm)
library(SnowballC)
library(wordcloud)
library(RColorBrewer)
library(e1071) #For Naive Bayes
library(caret) #For the Confusion Matrix
#Import data
sms_raw <- read.csv("../input/spam.csv")
head(sms_raw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment