Skip to content

Instantly share code, notes, and snippets.

Created July 27, 2021 07:29
What would you like to do?
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("", 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