How to create a topic on cloud pub/sub?

Data Visualization: What open-source package can I use to create a Topic Cloud (like The Economist)?

  • Anyone know of a free (preferably Python or R) package to create a Topic Cloud, like: http://www.economist.com/conversation-cloud?days=1 Ideally I just give it the topic matrix (e.g. from gensim) and it does the clustering, applies thresholding, computes coordinates and draws the thingy. If such a package does not exist, anyone can point me to an algorithm paper so I can implement it?

  • Answer:

    the wordcloud package in R. just two lines of code. makes a word cloud like wordle. for making a topic model - basically clustered clouds - you can use the tm and topic model/lda packages in R. for making the animation- you can use animation package in R. For making a interactive page you can refer to one of packages in R for serving java (but I am not sure) or you can try it in Clojure . Python . But R will get the job done easier and fastest!

Ajay Ohri at Quora Visit the source

Was this solution helpful to you?

Other answers

I created this wordcloud based on the tweets related to the retirement of the Indian Cricket Team's Captain from test matches using R. I am attaching the codes along with so that you can use it if you wish to do a similar analysis.  The codes used for this specific part was: clean_text = clean.text(tweets.text) tweet_corpus = Corpus(VectorSource(clean_text)) tdm = TermDocumentMatrix(tweet_corpus, control = list(removePunctuation = TRUE,stopwords = c("rt", "http", stopwords("english")), removeNumbers = TRUE, tolower = TRUE)) m = as.matrix(tdm) #we define tdm as matrix word_freqs = sort(rowSums(m), decreasing=TRUE) dm = data.frame(word=names(word_freqs), freq=word_freqs) wordcloud(dm$word, dm$freq, scale=c(6,1),random.order=FALSE, colors=brewer.pal(8, "Dark2")) You can view my post for a detailed look at the stuff I did: http://jagadeeshr.wordpress.com/2014/12/31/dhonis-farewell-in-twitter/

Jagadeesh Rajarajan

R is the best package for that sort of thing But there is a tool I use that can help as well. It is called Qiqqa - http://www.qiqqa.com/ Fantastic research tool

Glenn A. Hefley

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.