Sentiment analysis refers to categorizing some given data as to what sentiment(s) it expresses. Usually, it refers to extracting sentiment from text, e.g. tweets or blog posts.
Questions tagged [sentiment-analysis]
2020 questions
88
votes
12 answers
Sentiment analysis for Twitter in Python
I'm looking for an open source implementation, preferably in python, of Textual Sentiment Analysis (http://en.wikipedia.org/wiki/Sentiment_analysis). Is anyone familiar with such open source implementation I can use?
I'm writing an application that…

Ran
- 7,541
- 12
- 59
- 72
68
votes
7 answers
NLTK and Stopwords Fail #lookuperror
I am trying to start a project of sentiment analysis and I will use the stop words method. I made some research and I found that nltk have stopwords but when I execute the command there is an error.
What I do is the following, in order to know which…

Facundo
- 729
- 2
- 6
- 7
57
votes
6 answers
Training data for sentiment analysis
Where can I get a corpus of documents that have already been classified as positive/negative for sentiment in the corporate domain? I want a large corpus of documents that provide reviews for companies, like reviews of companies provided by analysts…

London guy
- 27,522
- 44
- 121
- 179
54
votes
9 answers
Sentiment Analysis Dictionaries
I was wondering if anybody knew where I could obtain dictionaries of positive and negative words. I'm looking into sentiment analysis and this is a crucial part of it.

user387049
- 6,647
- 8
- 53
- 55
53
votes
5 answers
Feature Selection and Reduction for Text Classification
I am currently working on a project, a simple sentiment analyzer such that there will be 2 and 3 classes in separate cases. I am using a corpus that is pretty rich in the means of unique words (around 200.000). I used bag-of-words method for feature…

clancularius
- 877
- 1
- 9
- 12
48
votes
7 answers
Unsupervised Sentiment Analysis
I've been reading a lot of articles that explain the need for an initial set of texts that are classified as either 'positive' or 'negative' before a sentiment analysis system will really work.
My question is: Has anyone attempted just doing a…

Trindaz
- 17,029
- 21
- 82
- 111
34
votes
2 answers
How is the Vader 'compound' polarity score calculated in Python NLTK?
I'm using the Vader SentimentAnalyzer to obtain the polarity scores. I used the probability scores for positive/negative/neutral before, but I just realized the "compound" score, ranging from -1 (most neg) to 1 (most pos) would provide a single…

alicecongcong
- 379
- 2
- 4
- 4
30
votes
10 answers
Stanford nlp for python
All I want to do is find the sentiment (positive/negative/neutral) of any given string. On researching I came across Stanford NLP. But sadly its in Java. Any ideas on how can I make it work for python?

90abyss
- 7,037
- 19
- 63
- 94
29
votes
3 answers
What exactly is an n Gram?
I found this previous question on SO: N-grams: Explanation + 2 applications. The OP gave this example and asked if it was correct:
Sentence: "I live in NY."
word level bigrams (2 for n): "# I', "I live", "live in", "in NY", 'NY #'
character level…

user2649614
- 449
- 1
- 6
- 13
28
votes
3 answers
Machine Learning (tensorflow / sklearn) in Django?
I have a django form, which is collecting user response. I also have a tensorflow sentences classification model. What is the best/standard way to put these two together.
Details:
tensorflow model was trained on the Movie Review data from Rotten…

Subrat
- 980
- 2
- 11
- 17
28
votes
5 answers
Sentiment analysis using R
Are there any R packages that focus on sentiment analysis? I have a small survey where users can write a comment about their experience of using a web-tool. I ask for a numerical ranking, and there is the option of including a comment.
I am…

djq
- 14,810
- 45
- 122
- 157
26
votes
6 answers
Best Algorithmic Approach to Sentiment Analysis
My requirement is taking in news articles and determining if they are positive or negative about a subject. I am taking the approach outlined below, but I keep reading NLP may be of use here. All that I have read has pointed at NLP detecting…

user387049
- 6,647
- 8
- 53
- 55
23
votes
3 answers
nltk NaiveBayesClassifier training for sentiment analysis
I am training the NaiveBayesClassifier in Python using sentences, and it gives me the error below. I do not understand what the error might be, and any help would be good.
I have tried many other input formats, but the error remains. The code given…

student001
- 533
- 1
- 7
- 20
19
votes
6 answers
AttributeError: 'float' object has no attribute 'lower'
I'm facing this attribute error and I'm stuck at how to handle float values if they appear in a tweet.The streaming tweet has to be lower cased and tokenized so i have used split function.
Can somebody please help me to deal with it, any workaround…

Vishal Kharde
- 1,553
- 3
- 16
- 34
19
votes
3 answers
Sentiment Analysis using tensorflow
I am exploring tensorflow and would like to do sentiment analysis using the options available. I had a look at the following tutorial http://www.tensorflow.org/tutorials/recurrent/index.html#language_modeling
I have worked woth Naive Bayes…

Radhakrishnan
- 266
- 1
- 2
- 7