R: bigram 2
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]
| Penerbit | Taratsa |
|---|---|
| Tahun | 2018-11-01 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:7b35bba6-a829-5ac7-aaf6-67e0a2695f8d |