Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Last active February 12, 2024 21:38
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/b54ae453d84677f01beba3fe02cc1edc to your computer and use it in GitHub Desktop.
Save amankharwal/b54ae453d84677f01beba3fe02cc1edc to your computer and use it in GitHub Desktop.
from nltk.util import pr
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.tree import DecisionTreeClassifier
import re
import nltk
stemmer = nltk.SnowballStemmer("english")
from nltk.corpus import stopwords
import string
stopword=set(stopwords.words('english'))
data = pd.read_csv("twitter.csv")
print(data.head())
@nooraldain
Copy link

File "", line 14
print(data.head())
^
IndentationError: unexpected indent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment