code: def load_txt_sent(flist_txt, subset_pct):
      """
      load all the senteces from a list of txt files using standard file io
      """
      # Subset dataset based on percentage of bytes
      total_size = sum(map(os.path.getsize, flist_txt))
      subset_size = int((subset_pct / 100.0) * total_size)
  
      all_sent = []
      for txt_file in flist_txt:
          if subset_size > 0:
              with open(txt_file, "r") as f:
                  data = f.read(subset_size)
  
              subset_size -= sys.getsizeof(data)
  
              sent = data.split("\n")
              # Discard the last sentence since it is most likely partial
              if subset_size <= 0:
                  sent = sent[:-1]
              all_sent += sent
  
      return all_sent
  
file_path: neon/examples/skip-thought/data_loader.py
imports: from __future__ import print_function
  import os
  import h5py
  import json
  import numpy
  from collections import defaultdict, OrderedDict
  import sys
  from neon import logger
  from neon.util.persist import load_obj, save_obj
  from util import tokenize, clean_string
label_desc: Use image node_id 3 for calling a global function with example usage: load_txt_sent(flist_txt, subset_pct) and returns: all_sent