reader_from_json#

streaming.base.format.reader_from_json(dirname, split, obj)[source]#

Initialize the reader from JSON object.

Parameters
  • dirname (str) – Local directory containing shards.

  • split (str, optional) – Which dataset split to use, if any.

  • obj (Dict[str, Any]) – JSON object to load.

Returns

Reader – Loaded Reader of format type