Hate_Speech_IMAYFLY_and_HOR.../textpreprocessing.m
2022-07-14 12:57:48 +05:30

8 lines
261 B
Matlab

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