Exemplo n.º 1
0
def text_preproc(text):
    text = TextProcess.shrinkWhitespace(text)
    text = TextProcess.toLower(text)
    text = TextProcess.removeHTML(text)
    text = TextProcess.removeURL(text)
    text = TextProcess.removeNumber(text)
    text = TextProcess.removePunctuation(text)
    text = TextProcess.removeStopword(text)
    text = TextProcess.shrinkEmptyLine(text)
    return text