How to create a word cloud from a corpus in Python?

alvas picture alvas · May 20, 2013 · Viewed 93.7k times · Source

From Creating a subset of words from a corpus in R, the answerer can easily convert a term-document matrix into a word cloud easily.

Is there a similar function from python libraries that takes either a raw word textfile or NLTK corpus or Gensim Mmcorpus into a word cloud?

The result will look somewhat like this: enter image description here

Answer

Marcin picture Marcin · May 24, 2013