Datasets:
Update README
Browse files
README.md
CHANGED
@@ -21,10 +21,8 @@ You can load each of the languages as follows:
|
|
21 |
from datasets import get_dataset_config_names
|
22 |
|
23 |
dataset_id = "SetFit/amazon_counterfactual"
|
24 |
-
# Returns ['
|
25 |
configs = get_dataset_config_names(dataset_id)
|
26 |
# Load English subset
|
27 |
dset = load_dataset(dataset_id, name="en")
|
28 |
-
# Load all languages
|
29 |
-
dset = load_dataset(dataset_id, name="all_languages")
|
30 |
```
|
|
|
21 |
from datasets import get_dataset_config_names
|
22 |
|
23 |
dataset_id = "SetFit/amazon_counterfactual"
|
24 |
+
# Returns ['de', 'en', 'en-ext', 'ja']
|
25 |
configs = get_dataset_config_names(dataset_id)
|
26 |
# Load English subset
|
27 |
dset = load_dataset(dataset_id, name="en")
|
|
|
|
|
28 |
```
|