pardata.load_dataset_from_location

pardata.load_dataset_from_location(url_or_path, *, schema=None, force_redownload=False)

Load the dataset from url_or_path. This function is equivalent to calling Dataset, where schema['download_url'] is set to url_or_path. In the returned dict object, keys corresponding to empty values are removed (unlike load()).

Parameters
  • url_or_path (Union[str, os.PathLike]) – The URL or path of the dataset archive.

  • schema (Optional[Dict[str, Any]]) – The schema used for loading the dataset. If None, it is set to a default schema that is designed to accommodate most common use cases.

  • force_redownload (bool) – True if to force redownloading the dataset.

Returns

A dictionary that holds the dataset. It is structured the same as the return value of load_dataset().

Return type

Dict[str, Any]