Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Oct 7, 2021
Embed
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 MultinomialNB
data = pd.read_csv("https://raw.githubusercontent.com/amankharwal/Website-data/master/bbc-news-data.csv", sep='\t')
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment