def clean_text(text): """ This function uses the previously defined functions to take a string and run it through the entire data preprocessing process. """ #clean, tokenize, and lemmatize a string tokens = preprocess(text) filtered_tokens = remove_stopwords(tokens) lemmatized_tokens = lemmatize(filtered_tokens) clean_text = ' '.join(lemmatized_tokens) return(clean_text)