from nltk.sentiment.vader import SentimentIntensityAnalyzer SNT = SentimentIntensityAnalyzer() Stockpricewords = { } SNT.lexicon.update(Stockpricewords)