BaşlayınÜcretsiz Başlayın

Word cloud of tweets

Your task in this exercise is to plot a word cloud using a sample of Twitter data, expressing customers' sentiments about airlines. A string text_tweet has been created for you and it contains the messages of a 1000 customers shared on Twitter.

In the first step, your are asked to build the word cloud without removing the stop words, and in the second step to build the same cloud after you have removed the stop words.

Feel free to familiarize yourself with the text_tweet list.

Bu egzersiz

Sentiment Analysis in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import the word cloud function 
from ____ import ____ 

# Create and generate a word cloud image
my_cloud = ____(background_color='white').____(text_tweet)

# Display the generated wordcloud image
plt.imshow(my_cloud, interpolation='bilinear') 
plt.axis("off")

# Don't forget to show the final image
plt.show()
Kodu Düzenle ve Çalıştır