8 lines
261 B
Matlab
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 |