Questions tagged [sentiment-analysis]

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.

2020 questions
7
votes
4 answers

Good algorithm for sentiment analysis

I tried naive bayes classifier and it's working very bad. SVM works a little better but still horrible. Most of the papers which i read about SVM and naive bayes with some variations(n-gram, POS etc) but all of them gives results close to 50%…
Neir0
  • 12,849
  • 28
  • 83
  • 139
7
votes
2 answers

What are the existent Sentiment Analysis Algorithm?

I and a group of people are developing a Sentiment Analysis Algorithm. I would like to know what are the existent ones, because I want to compare them. Is there any article that have the main algorithms in this area? Thanks in advance Thiago
Thiago
  • 694
  • 3
  • 12
  • 26
6
votes
3 answers

C++ Sentiment Analysis Library

I'm looking for a C++ sentiment analysis library that I could use in my own application. Something that would take a text written by a human as an argument and return information on its mood (positive, negative, neutral, angry, happy, ...). Any…
Arthur
  • 1,974
  • 2
  • 21
  • 28
6
votes
1 answer

pytorch dataloader - RuntimeError: stack expects each tensor to be equal size, but got [157] at entry 0 and [154] at entry 1

I am a beginner with pytorch. I am trying to do an aspect based sentiment analysis. I am facing the error mentioned in the subject. My code is as follows: I request help to resolve this error. Thanks in advance. I will share the entire code and the…
6
votes
2 answers

How does TextBlob calculate sentiment polarity? How can I calculate a value for sentiment with machine learning classifier?

how does TextBlob calculate an empirical value for the sentiment polarity. I have used naive bayes but it just predicts whether it is positive or negative. How could I calculate a value for the sentiment like TextBlob does?
6
votes
1 answer

How do I solve the following error?Input must be a character vector of any length or a list of character vectors, each of which has a length of 1

I am working on a R project. The data set I used is available at the following link https://www.kaggle.com/ranjitha1/hotel-reviews-city-chennai/data The code I have used is. df1 = read.csv("chennai.csv", header = TRUE) library(tidytext) tidy_books…
Varun Raghav B
  • 73
  • 1
  • 1
  • 6
6
votes
2 answers

Is Vader SentimentIntensityAnalyzer Multilingual?

I'm stuck in sentiment analysis and I found Vader solution which is the best I could find so far. My issue is that I don't find any doc on how to feed it with languages other than English.
Curcuma_
  • 851
  • 2
  • 12
  • 37
6
votes
3 answers

1 million sentences to save in DB - removing non-relevant English words

I am trying to train a Naive Bayes classifier with positive/negative words extracting from a sentiment. example: I love this movie :)) I hate when it rains :( The idea is I extract positive or negative sentences based on the emoctions used,…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
6
votes
1 answer

Get all twitter mentions using tweepy for users with Millions of followers

I have had a project in mind where I would download all the tweets sent to celebrities for the last one year and do a sentiment analysis on them and evaluate who had the most positive fans. Then I discovered that you can at max retrieve twitter…
Piyush
  • 606
  • 4
  • 16
  • 38
6
votes
1 answer

Sentimental Analysis of review comments using qdap is slow

Am using qdap package to determine the sentiment of each review comment of a particular application. I read the review comments from a CSV file and pass it to the polarity function of qdap. Everything works fine and I get the polarity for all the…
6
votes
1 answer

How do I set up a Stanford CoreNLP Server on Windows to return sentiment for text

I am attempting to set up a local server on Windows with Stanford CoreNLP to calculate sentiment scores for over 1M article and video texts. I don't know Java, so I will need some help. I successfully installed Stanford CoreNLP 3.6.0, and I have a…
Eric
  • 1,235
  • 2
  • 13
  • 26
6
votes
1 answer

Speed up CoreNLP Sentiment Analysis

Can anybody think of a way to speed up my CoreNLP Sentiment Analysis (below)? I initialize the CoreNLP pipeline once on server startup: // Initialize the CoreNLP text processing pipeline public static Properties props = new Properties(); public…
6
votes
1 answer

Sentiment Analysis in R

I am new in sentiment analysis, and totally have no idea on how to go about it using R. Hence, I would like to seek help and guidance in this. I have a set of data consisting of opinions, and would like to analyse the the opinions. Title Date …
poppp
  • 331
  • 2
  • 3
  • 14
6
votes
0 answers

DocumentTermMatrix fails with a strange error only when # terms > 3000

My code below works fine unless I use create a DocumentTermMatrix with more that 3000 terms. This line: movie_dict <- findFreqTerms(movie_dtm_train, 8) movie_dtm_hiFq_train <- DocumentTermMatrix(movie_corpus_train, list(dictionary =…
anthonybell
  • 5,790
  • 7
  • 42
  • 60
6
votes
3 answers

Sentiment Analysis get tweets match to the search query & do analysis

I want to perform sentiment analysis on twitter. I dont want to store any of the tweets but perform analysis on them such as tweets which says positive stuff about a particular hashtag etc. The problem I have here is that accessing the tweets is too…