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
6
votes
2 answers

Mahout for sentiment analysis

Using mahout I am able to classify sentiment of data . But I am stuck with a confusion matrix. I am using mahout 0.7 naive bayes algorithms to classify sentiment of tweets. I use trainnb and testnb naive bayes classifiers to train the classifier…
Vanitha Reddy
  • 181
  • 1
  • 11
6
votes
1 answer

Using Sentiwordnet 3.0

I plan on using Sentiwordnet 3.0 for Sentiment classification. Could someone clarify as to what the numbers associated with words in Sentiwordnet represent? For e.g. what does 5 in rank#5 mean? Also for POS what is the letter used to represent…
Amal Antony
  • 6,477
  • 14
  • 53
  • 76
5
votes
6 answers

Bucketing sentences by mood

Let's start with a simple problem. Let's say that I have a 350 char sentence and would like to bucket the sentence into either a "Good mood" bucket or a "Bad mood" bucket. What would be the best way to design an algorithm to bucket the sentence?
locoboy
  • 38,002
  • 70
  • 184
  • 260
5
votes
1 answer

Overfitting when fine-tuning BERT sentiment analysis

I am newbie to Machine Learning in general. I am currently trying to follow a tutorial on sentiment analysis using BERT and Transformers https://curiousily.com/posts/sentiment-analysis-with-bert-and-hugging-face-using-pytorch-and-python/ However…
5
votes
1 answer

gridsearchcv with tfidf and count vectorizer

I want to use GridSearchCV for parameter tuning. Is it also possible to check with GridSearchCV whether CountVectorizer or TfidfVectorizer works best? My idea: pipeline = Pipeline([ ('vect', TfidfVectorizer()), ('clf',…
5
votes
0 answers

RetryError: Deadline of 600.0s exceeded while calling functools.partial by using Gcloud

I'm a beginner to python and trying to apply Gcloud Sentiment Analysis to analyze some sentences. The python code is provided by official here: https://cloud.google.com/natural-language/docs/analyzing-sentiment The error is as follows: RetryError:…
ShanChe Wu
  • 315
  • 2
  • 8
5
votes
1 answer

Any efficient way to find surrounding ADJ respect to target phrase in python?

I am doing sentiment analysis on given documents, my goal is I want to find out the closest or surrounding adjective words respect to target phrase in my sentences. I do have an idea how to extract surrounding words respect to target phrases, but…
Hamilton
  • 620
  • 2
  • 14
  • 32
5
votes
1 answer

Edit Vader_lexicon.txt in nltk for python to add words related to my domain

I am using vader in nltk to find sentiments of each line in a file. I have 2 questions: I need to add words in vader_lexicon.txt however the syntax of which looks like : assaults -2.5 0.92195 [-1, -3, -3, -3, -4, -3, -1, -2, -2, -3] What does…
Mighty
  • 447
  • 1
  • 5
  • 13
5
votes
2 answers

Numbers of columns of arguments do not match

I am using this example to conduct sentiment analysis of a collection of txt documents in R. The code is: library(tm) library(tidyverse) library(tidytext) library(glue) library(stringr) library(dplyr) library(wordcloud) require(reshape2) files <-…
Michael
  • 159
  • 1
  • 2
  • 14
5
votes
2 answers

Get the positive and negative words from a Textblob based on its polarity in Python (Sentimental analysis)

I have a text blob in which i am classifying the text as positive if polarity is > 0, neutral if = 0, and negative if < 0. How can i get the words based on which it is classifying as positive, negative or neutral?
5
votes
3 answers

How to split sentences into correlated words (term extraction)?

Is there any NLP python library that split sentence or joins words into related pairs of words? For example: That is not bad example -> "That" "is" "not bad" "example" "Not bad" means the same as good so it would be useless to process it as "not"…
Ala Głowacka
  • 323
  • 2
  • 10
5
votes
3 answers

tidytext R in spanish - any alternative?

I'm doing sentiment analysis from twitter but my tweets are on Spanish so I can't use tidytext to classify the words. Does anyone know if there is a similar package for Spanish?
Suanbit
  • 471
  • 1
  • 4
  • 12
5
votes
3 answers

Which classification to choose?

I have huge amount of yelp data and I have to classify the reviews into 8 different categories. Categories Cleanliness Customer Service Parking Billing Food Pricing Food Quality Waiting time Unspecified Reviews contains multiple categories so I…
5
votes
1 answer

Is there a way to improve performance of nltk.sentiment.vader Sentiment analyser?

My text is derived from a social network, so you can imagine it's nature, I think text is clean and minimal as far as I could imagine; after performing following sanitization: no urls, no usernames no punctuation, no accents no numbers no…
Curcuma_
  • 851
  • 2
  • 12
  • 37
5
votes
1 answer

"Enhancing" CoreNLP Sentiment Analysis Results

I am trying to perform sentiment analysis on a large number of product reviews using CoreNLP (Java). Overall, I find the accuracy of the analysis to be pretty good. From what I read, the model I'm using was initially created using movie reviews (I…
Shadowman
  • 11,150
  • 19
  • 100
  • 198