Pustaka Taratsa
R: bigram 2

R: bigram 2

Penulis: Onno Widodo Purbo

Sumber: http://www.rpubs.com/rgcmme/PLN-09 library(tm) library(ggplot2) library(reshape2) library(wordcloud) library(RWeka) # Needed for a bug when calculating n-grams with weka options(mc.cores=1) setwd("~/Youtube") path = "./review_polarity/txt_sentoken/" dir = DirSource(paste(path,"pos/",sep=""), encoding = "UTF-8") corpus = Corpus(dir) # check how many document loaded length(corpus) ## [1]