code: def load_json_sent(flist_json, subset_pct):
      """
      load all the sentences from a list of JSON files (with out data format)
      and return a list
      """
      subset_fnum = int(np.ceil((subset_pct / 100.0) * len(flist_json)))
  
      all_sent = []
      for f in flist_json[:subset_fnum]:
          data = load_json(f)
          num_sent = len(data["text"])
          if num_sent <= 0:
              continue
          num_sent = len(data["text"])
          sent = [data["text"][i]["sentence"] for i in range(num_sent)]
          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 2 for calling a global function with example usage: load_json_sent(flist_json, subset_pct) and returns: all_sent