neuralfetch.download.Huggingface

class neuralfetch.download.Huggingface(*, study: str, dset_dir: str | Path, folder: str = 'download', org: str)[source][source]

Download a dataset repository from Hugging Face Hub.

Uses huggingface_hub.snapshot_download() for a full repository snapshot. Set the HUGGING_FACE_HUB_TOKEN environment variable for private or gated repositories.

Parameters:
  • study (str) – Dataset repository name (e.g. "allen-bold"). The full repo ID used will be org/study.

  • org (str) – Hugging Face organisation or user that owns the dataset (e.g. "BrainAI" or "openai"). Combined with study to form repo_id.