I am following this tutorial to get a list of most recurrent n-word phrases from a dataframe that has approximately 2m records (text in multiple languages). Everything works fine till the last couple of steps
# tokenize into tri-grams
trigram.twitterTdm <- tm::TermDocumentMatrix(text.corpus["twitter"], control = list(tokenize = TrigramTokenizer))
where it ends up using TrigramTokenizer (from the RWeka package) to actually create the tokens. Issue is that RWeka has an rJava dependency which is not supported on our server.
Are there any other packages in R which I can use to get most recurrent 2/3/4 word phrases from a dataset? Any tutorials would be extremely useful (novice in this area)