Sometimes we want to create Word Clouds from dictionaries instead of getting them from corpus. We can easily do it in Python as follows:
import matplotlib.pyplot as plt from wordcloud import WordCloud # assume that this is the dictionary, feel free to change it word_could_dict = {'Git':100, 'GitHub':100, 'push':50, 'pull':10, 'commit':80, 'add':30, 'diff':10, 'mv':5, 'log':8, 'branch':30, 'checkout':25} wordcloud = WordCloud(width = 1000, height = 500).generate_from_frequencies(word_could_dict) plt.figure(figsize=(15,8)) plt.imshow(wordcloud)
Output: