logitorch.datasets.utils¶
Attributes¶
Functions¶
|
Function to download datasets |
|
Function to read a JSON file |
|
Function to read a JSONL file |
Module Contents¶
- logitorch.datasets.utils.download_dataset(url: str, dataset_name: str) None[source]¶
Function to download datasets
- Parameters:
url (str) – url of the dataset
dataset_name (str) – dataset name
- Raises:
FileSizeError – an error is raised if the dataset is not downloaded properly
- logitorch.datasets.utils.read_json(dataset_path: str) List[Dict[str, Any]][source]¶
Function to read a JSON file
- Parameters:
dataset_path (str) – path of the dataset
- Returns:
list of JSON objects
- Return type:
List[Dict[str, Any]]