File size: 644 Bytes
8d2e0ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import datasets
from datasets import load_dataset, get_dataset_config_names
dataset_name = "joelito/lextreme"
dataset_name = "Multi_Legal_Pile.py"
type = "caselaw"
test = load_dataset(dataset_name, type, )
print(test)
exit()
configs = get_dataset_config_names(dataset_name)
print(configs)
for config in configs:
lextreme_subset = load_dataset(dataset_name, config)
splits = [datasets.Split.TRAIN, datasets.Split.VALIDATION, datasets.Split.TEST]
assert [split in lextreme_subset for split in splits]
assert [lextreme_subset[split].num_rows > 0 for split in splits]
print(dataset_name, config)
print(lextreme_subset)
|