Download scripts/00_fetch_external_data.py from RaiyanKhaan/Beyond-Chunking: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/datasets/RaiyanKhaan/Beyond-Chunking/resolve/main/scripts/00_fetch_external_data.py
- Command line
-
hf download hf://datasets/RaiyanKhaan/Beyond-Chunking/scripts/00_fetch_external_data.py
-
curl -L -o 00_fetch_external_data.py https://huggingface.co/datasets/RaiyanKhaan/Beyond-Chunking/resolve/main/scripts/00_fetch_external_data.py
499 Bytes
| #!/usr/bin/env python3 | |
| """Runner wrapper for 00_fetch_external_data.""" | |
| import sys | |
| from pathlib import Path | |
| # Add submodule to path and execute main | |
| SUBMODULE_DIR = Path(__file__).resolve().parent / "data_ingestion" | |
| sys.path.insert(0, str(SUBMODULE_DIR)) | |
| import importlib.util | |
| spec = importlib.util.spec_from_file_location("fetch_ext", SUBMODULE_DIR / "00_fetch_external_data.py") | |
| mod = importlib.util.module_from_spec(spec) | |
| spec.loader.exec_module(mod) | |
| if __name__ == "__main__": | |
| mod.main() | |