This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from collections import Counter | |
from nltk.tokenize import word_tokenize | |
from nltk.corpus import stopwords | |
from nltk.sentiment.vader import SentimentIntensityAnalyzer | |
import matplotlib.pyplot as plt | |
text = open('read.txt', encoding='utf-8').read() | |
lower_case = text.lower() | |
cleaned_text = lower_case.translate(str.maketrans('', '', string.punctuation)) |