v1=c("Here is some text to test phrase mining","phrase mining is fun",
"Some text is better than no text","No text, no phrase mining")
co=tm::VCorpus(tm::VectorSource(v1))
pd=phraseDoc(co,min.freq=2)
bestDocs(co,2,2,pd)
Run the code above in your browser using DataLab