@staticmethod
    def data_to_list(data):
        split_lines = data.split('\n')[:-1]
        return [line.decode('utf-8').strip() for line in split_lines]
Clean a block of data and split into lines.
dataset/ETHPy150Open NervanaSystems/neon/neon/data/questionanswer.py/BABI.data_to_list