Hate_Speech_IMAYFLY_and_HOR.../textpreprocessing.m

8 lines
261 B
Mathematica
Raw Normal View History

2022-07-14 07:27:48 +00:00
function documents=textpreprocessing(textData)
textData=eraseURLs(textData);
documents = tokenizedDocument(textData,'DetectPatterns','at-mention');
documents=removeStopWords(documents);
documents = lower(documents);
documents = erasePunctuation(documents);
end