I have a text full of emojis.
import matplotlib.pyplot as plt
from wordcloud import WordCloud
wordcloud = WordCloud().generate(text)
plt.imshow(wordcloud)
plt.axis("off")
plt.show()
Run Code Online (Sandbox Code Playgroud)
when i try to get a wordcloud for those emojis like the code above, it returns an error like this:
ValueError: We need at least 1 word to plot a word cloud, got 0.
Run Code Online (Sandbox Code Playgroud)
I think the wordcloud library is unable to read emojis. I want to get an output like this(with emojis of course):
Anyone knows how to …