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
5
votes
2 answers
Textblob sentiment algorithm
Does anyone know how textblob sentiment is working? I know it is working based on Pattern but I could not find any article or document explain how pattern assigns polarity value to a sentence.

Sahar
- 177
- 2
- 11
5
votes
3 answers
Why is google natural language returning an incorrect beginOffset for analyzed string?
I am using google-cloud/language api to make an #annotate call and analyze entities and sentiments from a csv of comments which I have taken from various online resources.
To begin with, the string I am trying to analyze includes commentId's so I…

LastMan0nEarth
- 71
- 6
5
votes
0 answers
Scikit-learn Cannot clone object *, as the constructor does not seem to set parameter * in VotingClassifier
A similar question has been asked here, but without posting relevant code.
I'm trying to create a VotingClassifier based on the Scikit-learn VotingClassifier. FYI the SGD, Bernoulli and MaxEnt classifiers are SKLearn classifiers that are made on…

Assios
- 126
- 8
5
votes
1 answer
Adding Special Case Idioms to Python Vader Sentiment
I've been using Vader Sentiment to do some text sentiment analysis and I noticed that my data has a lot of "way to go" phrases that were incorrectly being classified as neutral:
In[11]: sentiment('way to go John')
Out[11]: {'compound': 0.0, 'neg':…

Jason
- 2,834
- 6
- 31
- 35
5
votes
2 answers
Sentiment analysis for sentences- positive, negative and neutral
I'm designing a text classifier in Python using NLTK. One of the features considered in every sentence is it's sentiment. I want to weight sentences with either positive or negative sentiments more that those without any sentiment(neutral…

Jacob Vasu
- 51
- 1
- 3
5
votes
1 answer
sentiment analysis of Non-English tweets in python
Objective: To classify each tweet as positive or negative and write it to an output file which will contain the username, original tweet and the sentiment of the tweet.
Code:
import…

mnm
- 1,962
- 4
- 19
- 46
5
votes
2 answers
How do people use n-grams for sentiment analysis, considering that as n increases, the memory requirement also increases rapidly?
I am trying to do Sentiment Analysis on Tweets using Python.
To begin with, I've implemented an n-grams model. So, lets say our training data is
I am a good kid
He is a good kid, but he didn't get along with his sister much
Unigrams:

P.C.
- 651
- 13
- 30
5
votes
2 answers
How do I transform text into TF-IDF format using Weka in Java?
Suppose, I have following sample ARFF file with two attributes:
(1) sentiment: positive [1] or negative [-1]
(2) tweet: text
@relation sentiment_analysis
@attribute sentiment {1, -1}
@attribute tweet string
@data
-1,'is upset that he can\'t update…

Hitesh Dholaria
- 157
- 3
- 13
5
votes
2 answers
Bias towards negative sentiments from Stanford CoreNLP
I'm experimenting with deriving sentiment from Twitter using Stanford's CoreNLP library, a la https://www.openshift.com/blogs/day-20-stanford-corenlp-performing-sentiment-analysis-of-twitter-using-java - so see here for the code that I'm…

proinsias
- 304
- 4
- 21
5
votes
2 answers
Estimating document polarity using R's qdap package without sentSplit
I'd like to apply qdap's polarity function to a vector of documents, each of which could contain multiple sentences, and obtain the corresponding polarity for each document. For example:
library(qdap)
polarity(DATA$state)$all$polarity
# Results:
…

Max Ghenis
- 14,783
- 16
- 84
- 132
5
votes
1 answer
Sentiment analysis in R (not using tm.plugin.tags)
I'm using R version 3.0.2 and have installed the package tm. Previously, I also loaded a package called tm.plugin.tags. To get a measure of whether a text corpus was positive or negative I used the following approach:…

djq
- 14,810
- 45
- 122
- 157
5
votes
2 answers
How to use SentiWordNet
I need to do sentiment analysis on some csv files containing tweets. I'm using SentiWordNet to do the sentiment analysis.
I got the following piece of sample java code they provided on their site. I'm not sure how to use it. The path of the csv file…

Belgarion
- 149
- 2
- 3
- 12
5
votes
2 answers
Is there a set of adjective word list for positive or negative polarity
I am working on sentiment analysis. I thought if there is any available set of adjectives indicating positive/negative(like for positive: good,awesome,amazing,) meaning? and the second thing is a set of data from which i can use as a test case.

Harshil Shah
- 363
- 4
- 9
- 18
4
votes
0 answers
Free Library for Sentiment Analysis (on Tweets) in C#
I need a simple Sentiment Analysis library to use in my ASP.NET application. The library should be able to work on short strings (Twitter tweets have a maximum length of 140 characters long), and only needs to classify the tweets as positive or…

Rachel
- 1,722
- 8
- 29
- 34
4
votes
1 answer
Implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW
How to fix this deprecated AdamW model?
I tried to use the BERT model to perform a sentiment analysis on the hotel reviews, when I run this piece of code, it prompts the following warning. I am still studying the transformers and I don't want the…

Panco
- 351
- 5
- 13