metadata
license: apache-2.0
task_categories:
- text-classification
language:
- en
pretty_name: section 5 zst datasets
Hugging Face course section 5 .zst datasets
You can use these datasets for whatever you want (note the Apache 2.0 license, though) but their primary purpose is to serve as a drop-in replacement for the sub-datasets of The Pile used in section 5 of the HuggingFace course.
Data sources
- PubMed-200k-RTC:
https://www.kaggle.com/datasets/matthewjansen/pubmed-200k-rtc/download?datasetVersionNumber=5 - LegalText-classification:
https://www.kaggle.com/datasets/shivamb/legal-citation-text-classification/download?datasetVersionNumber=1
These are Kaggle datasets. So you need to be logged into a Kaggle account to download them.
Usage
To load a dataset from this repo, run
import zstandard
from datasets import load_dataset
load_dataset("json", data_files=url, split="train")
where url
should be one of the following download links:
LegalText-classification_train.jsonl.zst
:
https://huggingface.co/datasets/mdroth/PubMed-200k-RTC/resolve/main/data/LegalText-classification_train.jsonl.zst,LegalText-classification_train_min.jsonl.zst
:
https://huggingface.co/datasets/mdroth/PubMed-200k-RTC/resolve/main/data/LegalText-classification_train_min.jsonl.zst,PubMed-200k-RTC_train.jsonl.zst
:
https://huggingface.co/datasets/mdroth/PubMed-200k-RTC/resolve/main/data/PubMed-200k-RTC_train.jsonl.zst, orPubMed-200k-RTC_train_min.jsonl.zst
:
https://huggingface.co/datasets/mdroth/PubMed-200k-RTC/resolve/main/data/PubMed-200k-RTC_train_min.jsonl.zst.