I am doing sentiment analysis i already genrate wordcloud as a whole but stuck in the separation of positive and negitive words in wordcloud using jupitor notebook
Asked
Active
Viewed 92 times
0
-
1Please show your code. – hafiz031 Aug 20 '22 at 03:32
-
# find term using wordcloud allwords = ''.join([review for review in df_sv['review']]) wordCloud = WordCloud(width=500, height=300,random_state=21, max_font_size=119, background_color='white').generate(allwords) plt.imshow(wordCloud, interpolation = "bilinear") plt.axis('off') plt.show() – Mehr Un Nisa Aug 26 '22 at 02:23
1 Answers
0
The wordcloud is just another way of displaying the frequency of your words. It has nothing to do with the sentiment of such words. You will have to perform sentiment analysis on the "words, sentences or document as a whole". The level of granularity depends on the purpose of the task at hand.
Things you may want to consider :
- text preprocessing - removing stop words
- you will need to categorize or classify the text into one specific sentiment polarity, positive or negative (or neutral)
etc etc
-

ScottC
- 3,941
- 1
- 6
- 20