Datasets:

GianLMB commited on
Commit
1be2233
·
verified ·
1 Parent(s): 195ac7c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -87,22 +87,22 @@ labeled as interface.
87
  Data for different configurations can be loaded using HuggingFace `datasets` library with the following script:
88
 
89
  ```python
90
- from datasets import load_data
91
 
92
- dataset = load_data("CQSB/SoftDis", name=config_name)
93
  ```
94
 
95
  The function returns a `datasets.DatasetDict` object, whose items can be accessed by specifying the corresponding split, as in the following
96
 
97
  ```python
98
  # Assign splits to different datasets.Dataset objects
99
- train_data, val_data, test_data = load_data("CQSB/SoftDis", "id05")
100
 
101
  # Load default `train` split
102
- train_data = load_data("CQSB/SoftDis", split="train")
103
 
104
  # Access `train` split after loading
105
- data = load_data("CQSB/SoftDis", "id05")
106
  train_data = data['train']
107
  ```
108
 
@@ -126,7 +126,7 @@ To load data for all chains, `clusters-all` configuration is recommended, since
126
  `cluster` configuration can instead be useful to inpect information about one or few clusters, without the need to download the full database. Necessary files can be loaded with the following syntax:
127
 
128
  ```python
129
- dataset = load_data(
130
  "CQSB/SoftDis", "clusters", data_files="clusters/train/*/4zne_E.parquet"
131
  )
132
  ```
 
87
  Data for different configurations can be loaded using HuggingFace `datasets` library with the following script:
88
 
89
  ```python
90
+ from datasets import load_dataset
91
 
92
+ dataset = load_dataset("CQSB/SoftDis", name=config_name)
93
  ```
94
 
95
  The function returns a `datasets.DatasetDict` object, whose items can be accessed by specifying the corresponding split, as in the following
96
 
97
  ```python
98
  # Assign splits to different datasets.Dataset objects
99
+ train_data, val_data, test_data = load_dataset("CQSB/SoftDis", "id05")
100
 
101
  # Load default `train` split
102
+ train_data = load_dataset("CQSB/SoftDis", split="train")
103
 
104
  # Access `train` split after loading
105
+ data = load_dataset("CQSB/SoftDis", "id05")
106
  train_data = data['train']
107
  ```
108
 
 
126
  `cluster` configuration can instead be useful to inpect information about one or few clusters, without the need to download the full database. Necessary files can be loaded with the following syntax:
127
 
128
  ```python
129
+ dataset = load_dataset(
130
  "CQSB/SoftDis", "clusters", data_files="clusters/train/*/4zne_E.parquet"
131
  )
132
  ```