'Tokenizer which breaks on newlines.
Arguments:
s (str): String to tokenize.
Returns:
str: String with "<eos>" in place of newlines.'

@staticmethod
def newline_tokenizer(s):

    return s.replace('\n', '<eos>').split()
