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
0
votes
2 answers
RNN LSTM Sentiment analysis model with low accuracy
I have a dataset with 200000 samples.
I am using the train_test_split from Sklearn.
model = Sequential()
model.add(Embedding(50000,128, input_length=14))
model.add(LSTM(16, return_sequences=True, dropout=0.3,…

dyro
- 1
0
votes
2 answers
How to skip over np.nan while iterating through a dataframe for sentiment analysis
I have a data frame with 201279 entries, the last column is labeled "text" with customer reviews. The problem is that most of them are missing values, and come up as NaN.
I read some interesting information from this question:
Python numpy.nan and…

Jabernet
- 381
- 2
- 4
- 19
0
votes
1 answer
Scikit Learn ValueError: Found array with dim 3. Estimator expected <= 2
I am having a training data set of 144 student feedback with 72 positive and 72 negative feedback respectively. The data set has two attributes namely data and target which contain the sentence and the sentiment(positive or negative) respectively.…

Neeraj Sharma
- 19
- 5
0
votes
1 answer
CountVectorizer Error: ValueError: setting an array element with a sequence
I am having a data set of 144 student feedback with 72 positive and 72 negative feedback respectively. The data set has two attributes namely data and target which contain the sentence and the sentiment(positive or negative) respectively.
Consider…

Neeraj Sharma
- 19
- 5
0
votes
0 answers
Sentiment Analysis- Low number of comments
I am running a Sentiment Analysis from Twitter. My code is running without any issue but there is one thing that got my attention. When I run my script for "Stack OverFlow", it shows only 15 comments in total. I don't think this is possible(only 15…

Verbamore
- 189
- 2
- 2
- 10
0
votes
1 answer
Cannot update VADER lexicon
print(news['title'][5])
Magnitude 7.5 quake hits Peru-Ecuador border region - The Hindu
print(analyser.polarity_scores(news['title'][5]))
{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
from nltk.tokenize import word_tokenize,…

Arpit Sah
- 43
- 1
- 7
0
votes
1 answer
R: sentiment analysis using Azure Cognitive Service Text API and HTTR package
I have problem with connection to the Azure Cognitive Service Text API (here is documentation:) using HTTR.
library(httr)
library("XML")
api_url <- 'https://westcentralus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment'
mybody…

Mikołaj
- 385
- 4
- 17
0
votes
2 answers
How do you count a negative or positive word prior to a specific word - Sentiment Analysis in Python?
I'm trying to count how many times a negative word from a list appears before a specific word. For example, "This terrible laptop." The specified word being "laptop", I want the output to have "Terrible 1" in Python.
def run(path):
negWords={}…

Anna Wu
- 1
0
votes
1 answer
ValueError: Expected 2D array, got 1D array instead. Training model
i want to train 12 models for my sentiment analysis since i have 4 aspects and 3 polarities (positive, neutral, negative). but i got error like this
ValueError: Expected 2D array, got 1D array instead:
array=[].
Reshape your data either using…

Ai Chan
- 33
- 6
0
votes
1 answer
How to create a word2vector model from imdb dataset and get it's featuremap using CNN
I'm a newbie to python, i need to complete a project on IMDB Review sentiment analysis. I did not quiet understand how to train the imdb dataset aclImdb_v1.tar to a model. Please show me how to train a model from this dataset.
Below is the method I…

AruN
- 171
- 4
- 15
0
votes
0 answers
Simple sentiment analysis using ml.net and IEnumerable dataview
I was testing a simplest example to learn sentiment analysis using custom IEnumerable dataview instead traditional data load from text files. I created a list of TestData and TrainingData with some example review to easily learn by following the…

Vikash Rathee
- 1,776
- 2
- 25
- 43
0
votes
1 answer
Sensitivity Analysis for Missing Data in R with MICE
I am working on a meta analysis and a sensitivity analysis for missing data. I want to replace censorsed data either with 0 or 1 according to a predefined probability.
I have a dataset with colum x: timepoints and y: events (1 = event, 0 =…

Andreas Schmitt
- 3
- 2
0
votes
1 answer
Loop to retrieve sentiment analysis in pandas.core.series.Series
I have 47 news-articles that I want to extract the sentiment from. They are JSON format (Date, title and body of the article). All I want is to obtain a list with the sentiment using TextBlob. So far I am doing the following:
import json
import…

Economist_Ayahuasca
- 1,648
- 24
- 33
0
votes
0 answers
Real-time plotting of two columns of a dynamic DataFrame
I am trying to plot a real-time data getting loaded in dataframe. But the attempts have led to printing of multiple blank graph frames in response to dynamic data feed, instead of plotting the data in single frame of graph.
I am implementing a…

Nakul Sharma
- 143
- 2
- 9
0
votes
0 answers
Split column values to several in pandas dataframe
I am trying to do sentiment analysis on tweets using sentimentIntensityAnalyzer() from nltk.sentiment.vader
sid = SentimentIntensityAnalyzer()
listy = []
for index, row in data.iterrows():
ss = sid.polarity_scores(row["Tweets"])
…

Yashwardhan kaul
- 21
- 2