def clean_text_by_sentences(text):
 original_sentences = split_sentences(text)
 filtered_sentences = [join_words(sentence) for sentence in preprocess_documents(original_sentences)]
 return merge_syntactic_units(original_sentences, filtered_sentences)

def clean_text_by_sentences ( text ) : original_sentences = split_sentences ( text ) filtered_sentences = [ join_words ( sentence ) for sentence in preprocess_documents ( original_sentences ) ] return merge_syntactic_units ( original_sentences , filtered_sentences )
tokenizes a given text into sentences .