massive / test_massive.py
Charith Peris
Updated to support massive v1.1
afae233
raw
history blame
580 Bytes
from datasets import load_dataset
source = "AmazonScience/massive"
#Individual locales are downloaded from version 1.1 which has Catalan (ca-ES) added in
dataset = load_dataset(source, "en-US", download_mode="force_redownload")
print(dataset)
print(dataset["train"][0])
#Using version 1.1 which has Catalan (ca-ES) added in
dataset = load_dataset(source, "all_v1.1", download_mode="force_redownload")
print(dataset)
print(dataset["train"][0])
#Using version 1.0
dataset = load_dataset(source, "all", download_mode="force_redownload")
print(dataset)
print(dataset["train"][0])