Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Created December 2, 2020 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinarySpoon/245c1e14121ce0d557c3078d4f2836db to your computer and use it in GitHub Desktop.
Save BinarySpoon/245c1e14121ce0d557c3078d4f2836db to your computer and use it in GitHub Desktop.
# LIBRARIES USED -->
import nltk
import string
import pandas as pd
from nltk.corpus import stopwords
# REQUIRED DOWNLOADS -->
nltk.download('punkt')
nltk.download('stopwords')
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
# MODEL USED -->
from sklearn.metrics import classification_report, confusion_matrix, accuracy_score
from sklearn.naive_bayes import MultinomialNB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment