def preprocess_sents(sentences_list):
    """Clean up sentences predicted by TRAM"""
    prepocessed_sents = []
    for s in sentences_list:
        # Replace any new lines separating parts of the sentence
        s = s.replace('\n', ' ')

        # Replace any double spaces which might result from previous step with a single space
        s = s.replace('  ', ' ')

        # Do a length check to skip empty strings and random punctuation
        if len(s) < 3:
            continue
        prepocessed_sents.append(s)
    return prepocessed_sents