class_docstr: This class loads in the Facebook bAbI dataset and vectorizes them into stories,
  questions, and answers as described in:
  "Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks"
  http://arxiv.org/abs/1502.05698.
class_docstr_tok: ["This","class","loads","in","the","Facebook","bAbI","dataset","and","vectorizes","them","into","stories",",","questions",",","and","answers","as","described","in",":","''","Towards","AI-Complete","Question","Answering",":","A","Set","of","Prerequisite","Toy","Tasks","''","http",":","\/\/arxiv.org\/abs\/1502.05698","."]
docstr: Clean a block of data and split into lines.
  
  Arguments:
      data (string) : String of bAbI data.
  
  Returns:
      list : List of cleaned lines of bAbI data.
docstr_tok: ["Clean","a","block","of","data","and","split","into","lines",".","Arguments",":","data","(","string",")",":","String","of","bAbI","data",".","Returns",":","list",":","List","of","cleaned","lines","of","bAbI","data","."]
code: def data_to_list(data):
      """
      Clean a block of data and split into lines.
  
      Arguments:
          data (string) : String of bAbI data.
  
      Returns:
          list : List of cleaned lines of bAbI data.
      """
      split_lines = data.split("\n")[:-1]
      return [line.strip() for line in split_lines]
  
imports: from builtins import map
  import numpy
  import os
  import re
  import tarfile
  from neon import logger
  from neon.data.dataiterator import NervanaDataIterator
  from neon.data.datasets import Dataset
  from neon.data.text_preprocessing import pad_sentences
  from functools import reduce
label_desc: Use image node_id 3 for calling the BABI obj's underlying member method code with example usage: obj.data_to_list(data) and returns: unknown