text_plain_output_1.png
from nltk.corpus import stopwords

import string

def process(text):
    text = text.lower()
    text = ''.join([t for t in text if t not in string.punctuation])
    text = [t for t in text.split() if t not in stopwords.words('english')]
    st = Stemmer()
    text = [st.stem(t) for t in text]
    return text

process('It\\s has been a long day running.')