def fix_data(text):
    """Add BOS and EOS markers to sentence."""
    if "<s>" in text and "</s>" in text:
        # This hopes that the text has been correct pre-processed
        return text
    sentences = text.split("\n")
    # Removing any blank sentences data
    sentences = ["<s> " + s + " </s>" for s in sentences if len(s.strip()) > 0]
    return " ".join(sentences)