Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named vaderSentiment

Tags:

python-2.7

I'm trying to run a code in python2.7 on windows os that uses sentiment analysis

from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
analyzer = SentimentIntensityAnalyzer()

and I'm getting this error

ImportError: No module named vaderSentiment

Can anyone help me with this?

like image 508
Sarah Avatar asked Oct 15 '25 21:10

Sarah


2 Answers

Assuming you solved this one as it's from 7 months ago, but for anyone else searching for it:

Go into terminal/cmd and paste the following:

pip install vaderSentiment

More info on VADER: https://github.com/cjhutto/vaderSentiment

like image 84
metasymphony Avatar answered Oct 18 '25 14:10

metasymphony


from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
    #note: depending on how you installed (e.g., using source code download versus pip install), you may need to import like this:
    #from vaderSentiment import SentimentIntensityAnalyzer

read the comment in a code

like image 20
Deepa MG Avatar answered Oct 18 '25 14:10

Deepa MG