class_docstr: Class that defines data loader
class_docstr_tok: ["Class","that","defines","data","loader"]
docstr: Load all the data into an array
  Args:
      path: str, location of the input data file
  
  Returns:
docstr_tok: ["Load","all","the","data","into","an","array","Args",":","path",":","str",",","location","of","the","input","data","file","Returns",":"]
code: def load_series(self, path):
      """
      Load all the data into an array
      Args:
          path: str, location of the input data file
  
      Returns:
  
      """
      # Tokenize file content
      with open(path, "r") as fp:
          ids = []
          for line in fp:
              words = line.split() + ["<eos>"]
              for word in words:
                  ids.append(self.word2idx[word])
  
      data = np.array(ids)
  
      return data
  
file_path: nlp-architect/nlp_architect/data/ptb.py
imports: import os
  import sys
  import numpy
  import urllib.request
label_desc: Use image node_id 6 for calling the PTBDataLoader obj's underlying member method code with example usage: obj.load_series(path) and returns: data