­

Building a word cloud using text mining tools of R

A word cloud is a graphical representation of frequently used words in a collection of text files. The height of each word in this picture is an indication of frequency of occurrence of the word in the entire text. Code:  install.packages('ctv') install.views('NaturalLanguageProcessing') worldCloud <- function() { library('ctv') #path: (./corpus/target) cname <- file.path(".","corpus","target") library (tm) docs <- Corpus(DirSource(cname)) library (SnowballC) #replacing '/' and '@'...

Continue Reading

Popular Posts

Like us on Facebook

Flickr Images

Subscribe