The output here shows the titles and descriptions of the comments written for the evaluation of the top 100 books in amazon with nltk vader, and the total reviewer rating for those analyzes, but there is an imbalance between reviewer rating how can I statistically make sense of the data here 1: https://i.sstatic.net/2N5Cv.png
custrew[["reviewer rating","title sentiment result","desc sentiment result"]] \
.groupby(["title sentiment result","desc sentiment result"]).sum()
code of output
def duygu_analizi(text):
sentiment = analyzer.polarity_scores(text)
if sentiment['compound'] >= 0.05:
return 'Pozitif'
elif sentiment['compound'] <= -0.05:
return 'Negatif'
else:
return 'Nötr'
custrew["title sentiment result"] = custrew["review title"].apply(duygu_analizi)
example code for title sentiment result
also my data (ı dont show another columns because no necessary): my goal is just define a relationship between title/description sentiement analysis and reviewer rating. when sentiment is positive, are reviewer ratings be positive too? or When sentiments are intense, does your rating also tend to be high?
ı have two distinct variable for title sentiment and description sentiment
