Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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 a text, e.g. tweets or blog posts.

Filter by
Sorted by
Tagged with
0 votes
1 answer
198 views

Integration of Sentiment analysis in CRM

What is the process for integrating sentiment analysis in a CRM? What I am searching for is a system which analyzes the customer comments or reviews using the CRM and finds out the customer sentiment ...
0 votes
1 answer
76 views

Text mining in Amazon product review using R. I wasn't able to extract the particular product's review

Text mining on Amazon product review using R Program. I wasn't able to extract the particular product's review(i.e.If iphone 11 has 6k review, I need to extract all of it.) I'm getting only one column ...
0 votes
1 answer
232 views

How to extract sub sentences from sentence mentioning a particular subject?

I am trying to solve an NLP problem. For a given sentence like : "The Pasta was delicious, the Pizza was average" I want to extract the sentiment attached to food items. Having built my own NER ...
4 votes
2 answers
547 views

Using doccano for Aspect Based Sentiment Analysis annotation

Currently looking for a good tool to annotate sentences regarding aspects and their respective sentiment polarities. I'm using SemEval Task 4 as a reference. The following is an example in the ...
1 vote
1 answer
791 views

How does BERT work for Aspect-Based sentiment analysis?

I have recently used a package to perform Aspect-Based Sentiment Analysis (ABSA) through a BERT model. Briefly, the model takes two inputs: words that constitute the aspects a sentence on which we ...
0 votes
1 answer
274 views

Why (or how) does a Keras model skip Stemming or Lemmatization steps?

This Keras article / tutorial here does perform text standardization i.e removing HTML elements, punctuation, etc. from the text dataset, however, there is a distinct lack of any stemming or ...
2 votes
1 answer
161 views

Binary + Neutral Classification

I have a dataset of posts for sentiment analysis that are labelled with -1 (negative), 1 (positive) or 0 (neutral). So I wonder how should I deal with that. These are my ideas: make a multiclass ...
0 votes
2 answers
242 views

Training data in sentiment analysis

I'm doing sentiment analysis of tweets related to recent acquisition of Twitter by Elon Musk. I have a corpus of 10 000 tweets and I'd like to use machine learning methods using models like SVM and ...
0 votes
1 answer
171 views

Training a model with a series of text responses as input

I want to train a binary classifier on text -- so something like sentiment analysis, but my input vectors are going to be a series of responses from some user separated by some separator character. I ...
1 vote
1 answer
73 views

Emotional tension score in sentences

I am beginner in natural language processing and my goal is to find a way to score sentences based on their emotional tension. More specifically, I would like to know to what degree a sentence ...
2 votes
1 answer
239 views

Question about balancing training data for sentiment analysis (machine learning)

My question is about when to balance training data for sentiment analysis. Upon evaluating my training dataset, which has 3 labels (good, bad, neutral), I noticed there were twice as many neutral ...
2 votes
1 answer
1k views

How to classify neutral sentiments using BERT

We can do text classification as positive and negative as mentioned in below notebook. But is there any way to classify neutral sentiment also? https://colab.research.google.com/github/google-...
2 votes
2 answers
684 views

How to get sentiment score for a word in a given dataset

I have a sentiment analysis dataset that is labeled in three categories: positive, negative, and neutral. I also have a list of words (mostly nouns), for which I want to calculate the sentiment value, ...
0 votes
1 answer
65 views

Issue with Convolutional Layer in Python: Getting All Zeros in Output and Terminating at a Certain Iteration

I'm currently working on implementing a convolutional layer in Python for a natural language processing model. However, I've encountered an issue with the convolutional layer that I can't seem to ...
1 vote
1 answer
148 views

Alternatives to twitter for large daily or weekly samples for sentiment analysis

Twitter, with their API, including the free tier, has been a go-to source for collecting large samples of texts expressing sentiment on various topics of interest. I just started a project in December ...
0 votes
1 answer
65 views

Dealing with rich vocabulary and a low average frequency of words in NLP

What is the best way to deal with a dataset that has a rich vocabulary and a low average frequency of words that is showing low validation accuracy? While reading online I saw many people recommending ...
1 vote
1 answer
198 views

Deciding Initial Weights In A Linear Classifier For Sentiment Analysis

I would like to build a simple sentiment analysis classifier using logistic regression. I downloaded a list of positive and negative words from cs.uic.edu. There are more than 6000 words both positive ...
1 vote
1 answer
395 views

How to properly perform sentiment analysis?

How to properly perform sentiment analysis for text with 300-600 words? If I use TextBlob and clean my data and remove stopwords(extended words and comma backslash..etc) do I need to tokenize the ...
1 vote
1 answer
73 views

Optimize F-Score only for certain classes, disregard other classes

I have a labeled dataset of product reviews where the label is a rating between 1 and 5 and the review is just text. I use a simple naive Bayes classifier (sklearn) to try to predict a rating given a ...
1 vote
1 answer
634 views

Sentiment Analysis of News Headlines

I'm trying to do sentiment analysis of News Headlines about a particular subject mentioned in it. Initially, I used TextBlob library for sentiment analysis to ...
0 votes
1 answer
98 views

Aspect-Based Sentiment Analysis with Bert and Pytorch

I have a dataset of online reviews (X) with their corresponding topics (topic1 to topic5) and each topic can have 5 values (fined-grained sentiment score from 1 to 5). So, I have one X and 5 Y columns....
1 vote
1 answer
4k views

I am getting this error ValueError: not enough values to unpack (expected 4, got 2)

I have written this code: ...
0 votes
1 answer
126 views

What do we mean as Positive or Negative in Sentiment Analysis?

What do we mean in Sentiment Analysis NLP when it is said a sentence is positive or negative? I think I need to specify this regarding any other parameter. For example "iPhone is good" is a ...
4 votes
1 answer
73 views

averaging multiple scores on small chunks of data or raw score on single collated data

I am using IBM Watson tool to determine tones (https://tone-analyzer-demo.mybluemix.net/) and personality scores (https://personality-insights-livedemo.mybluemix.net/) on different files containing ...
0 votes
1 answer
98 views

Using BERT for the first time, what are the two columns of my test_results.tsv?

I followed the steps to feed in both dev, test, train.tsv to the model, trained it, then tried to classify test data, and I only have 1 feature, and the classification is binary, 1 or 0. I assumed my ...
2 votes
3 answers
215 views

unbalanced data on train set and test set

I already have 2 datasets. One to use for training and one for testing. Both datasets are unbalanced (with similar percentages), with around 90% of label 1 . Will it be useful to balance the data if ...
0 votes
2 answers
483 views

Get the keywords from positive and negative reviews

I have trained a classifier algorithm on a sentiment analysis model which classifies the reviews scraped off Amazon as Positive or Negative. Now for each class, I want to get the keywords from the ...
3 votes
1 answer
409 views

Weighting of words in lexicon based sentiment analysis

I have a a question regarding my current project, i am trying to do a lexicon based sentiment analysis on my data, where i calculate the sentiment score as following: $$ Score = \frac{\sum_{i}{word_i}...
0 votes
1 answer
92 views

Compound and Complex Sentence Tokenization

I am trying to tokenize sentences of a document for aspect-based sentiment analysis. There are some sentences that consist of more than one topic. For example, " The touch screen is good but the ...
0 votes
3 answers
182 views

Sentiment Analysis Label Distribution

I am working on Sentiment Analysis model. The dataset I have has three labels: positive, ...
3 votes
1 answer
69 views

measuring flip-flop behaviour across several topics

I'm trying to analyze a behavior called "sentiment flipping" of users in a dataset, but I'm not able to step on. Let's suppose that I have two groups of users, say them good and bad users. My ...
0 votes
1 answer
339 views

How to predict the sentiment of the entities form the tweet?

I have a JSON file (tweets.json) that contains tweets (sentences) along with the name of the author. Objective 1: Get the most frequent entities from the tweets. Objective 2: Find out the sentiment/...
0 votes
1 answer
566 views

Algorithms for Sentiment Analysis on Entity

I want to make sentiment analysis for an entity which was found, like Google NLP. Entity should have magnitude and score. Please share with me the possible research papers. p/s please not propose ...
0 votes
1 answer
214 views

How to deal with one output for multiple inputs?

Hei! I want to train a model, that predicts the sentiment of news headlines. I've got multiple unordered news headlines per day, but one sentiment score. What is a convenient solution to overcome the ...
0 votes
1 answer
364 views

How to perform tokenization for tweets in xlnet?

X_train has only one column that contains all tweets. ...
0 votes
2 answers
63 views

Bert model for document sentiment classification

I am trying to fine-tune a Bert model for sentiment analysis. Instead of one sentence, my inputs are documents (including several sentences) and I am not removing dots. I was wondering if is it okay ...
0 votes
1 answer
2k views

How to make use of POS tags as useful features for a NaiveBayesClassifier for sentiment analysis?

I'm doing sentiment analysis on a twitter dataset (problem link). I have extracted the POS tags from the tweets and created tfidf vectors from the POS tags and used them as a feature (got accuracy of ...
0 votes
1 answer
41 views

Reinforcement learning

I am working on a sentiment analysis project. I used BERT model for training but lack of data it gives huge overfitting. So after i moved LLM approach to do that. Using LLM finally i got good results....
0 votes
1 answer
1k views

What do all the column names mean in the SentimentAnalysis package's analyzeSentiment() function in R?

If you used the analyzeSentiment function from SentimentAnalysis in R: ...
3 votes
3 answers
3k views

What is the current state-of-the-art within aspect-based sentiment analysis?

I've been reading Bing Liu's book on Sentiment Analysis. He mentions all of these slightly different approaches seen in research since 2004, but doesn't talk much about efficacy at all. That leaves ...
1 vote
1 answer
136 views

Why is Spacy sentiment score 0.0 for a sentence?

I'm trying to get a sentence's sentiment score using Spacy and apparently every sentence I pass gets a score of 0.0. Can someone help me understand what's going wrong here? ...
0 votes
0 answers
5 views

How to created a sentiment analysis metric from individual pieces of data

I have an array of news articles I get daily. I run a sentiment model and get a value between -1.5 and 1.5. My question is how do I combine each say days worth of individual values between -1.5 and 1....
0 votes
0 answers
43 views

Simple sentiment analysis model gives stupid accuracy

I am working on a sentiment analysis model from scratch but I ran into issues so thought I'd implement one using pytorch and then replicate but I also ran into issues with the pytorch version. I'm not ...
0 votes
0 answers
27 views

Confusion with FC Layer Neurons and Output Shapes in CNN-based Sentiment Analysis Model

I am currently working on a sentiment analysis model for text data, and I'm using a Convolutional Neural Network (CNN) architecture. This is my first time implementing a CNN, and I'm facing issues ...
0 votes
0 answers
22 views

Sentiment extraction with hugging face ready to use model

I have a set of reviews for which I need to extract their sentiments and use those sentiments as an independent variable in an econometric model. I used one of the ready-to-use models of hugging face ...
0 votes
0 answers
18 views

multi label multi class classification problem

I am trying to solve a aspect based sentiment analysis problem. I am considering to devise a NN but am not sure if it is doable the way I am doing. here is how I structure it. I have a training set of ...
1 vote
1 answer
340 views

Kmeans cluster validation when I have labeled test data

I'm trying to implement the unsupervised k-means algorithm for sentiment analysis of imdb movie dataset created by stanford. The steps that I followed is : 1) Load the comments 2) Apply tokenization ...
0 votes
1 answer
17 views

Sentiment Analysis on the first 100 words of a very large essay of 500/700 words

Are there any potential issues on performing sentiment analysis using the first 100 words of a very large essay that is of 500 to 700 words. I am having to do this because since most transformer ...
0 votes
1 answer
169 views

Why my sentiment analysis model is overfitting?

The task is to predict sentiment from 1 to 10 based on Russian reviews. The training data size is 20000 records, of which 1000 were preserved as a validation set. The preprocessing steps included ...
0 votes
1 answer
9k views

I don't know why this AttributeError: 'numpy.ndarray' object has no attribute 'lower' occurs

I'm trying to run a linear regression. But I'm getting this "AttributeError: 'numpy.ndarray' object has no attribute 'lower' " Here's the code I'using: ...

1
2 3 4 5