-
-
Save amankharwal/3dfd33d1794374d0365cfa8d21c854c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.model_selection import train_test_split | |
from sklearn.naive_bayes import BernoulliNB | |
data = pd.read_csv("https://raw.githubusercontent.com/amankharwal/SMS-Spam-Detection/master/spam.csv", encoding= 'latin-1') | |
data = data[["class", "message"]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment