Skip to main content

Posts

Showing posts from August, 2017

Text Mining in R

install.packages( c("tm", "VCorpus", "hunspell"),  dependencies = TRUE) install.packages( c("Rweka", "RMySQL", "textmining"),  dependencies = TRUE) install.packages( c("iemisctext", "ngram"), dependencies = TRUE) if(TRUE) {   WORKDIR="D:/DeltaPartners2017/FieldOperations/TextMining/Mining/";   setwd(WORKDIR);   Sys.setlocale("LC_ALL","Arabic")   memory.limit(size = 16072)       library(tm);   library("iemisctext")   library(ngram)   library(RWeka)     data(anarchy)   a   findFreqTerms(a, 5)     data("crude")     # Corpust --> DataFrame   ddataframeCrude   dataframeCrude[1,]   }       # Raw data to Corpus   serv_log   mycorpus     mydfCorpus   mydfCorpus[1]     # Map the corpus by applying differnt filters   mycorpusAfterMap   mycorpusAfterMap   mycorpusAfterMap ...