Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 24, 2021 07:53
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 amankharwal/bf8ddbbeb623bc8e2ce8936a8901a6d7 to your computer and use it in GitHub Desktop.
Save amankharwal/bf8ddbbeb623bc8e2ce8936a8901a6d7 to your computer and use it in GitHub Desktop.
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_json("Sarcasm.json", lines=True)
print(data.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment