NGramTokenizer not working as expected
问题 I have a simple R code where I'm reading text from a file and plotting recurring phrases on a bar chart. For some reason, the bar chart only shows single words rather than multi worded phrases. Where am I going wrong? install.packages("xlsx") install.packages("tm") install.packages("wordcloud") install.packages("ggplot2") library(xlsx) library(tm) library(wordcloud) library(ggplot2) setwd("C://Users//608447283//desktop//R_word_charts") test <- Corpus(DirSource"C://Users//608447283//desktop//R