Beyond-Chunking / scripts /00_fetch_external_data.py
RaiyanKhaan's picture
Upload complete Beyond-Chunking reproducibility package and benchmark datasets
5f0f37c verified
Raw History Blame Contribute Delete
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()