function documents=textpreprocessing(textData) textData=eraseURLs(textData); documents = tokenizedDocument(textData,'DetectPatterns','at-mention'); documents=removeStopWords(documents); documents = lower(documents); documents = erasePunctuation(documents); end