I was trying the tutorial “Build a word cloud using text mining tools of R” and a line of code is causing an error.
dtm <- DocumentTermMatrix(docs)
Error: inherits(doc, “TextDocument”) is not TRUE
I am not able to figure out how to get rid of it. Please tell me what am I doing wrong.