Download scripts/publish_phase3.py from offCanada/reference-db-system: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/offCanada/reference-db-system/resolve/main/scripts/publish_phase3.py
- Command line
-
hf download hf://offCanada/reference-db-system/scripts/publish_phase3.py
-
curl -L -o publish_phase3.py https://huggingface.co/offCanada/reference-db-system/resolve/main/scripts/publish_phase3.py
635 Bytes
| from pathlib import Path | |
| OUTPUT_DIR = Path("data/phase_3") | |
| FILES = [ | |
| OUTPUT_DIR / "product_classification.parquet", | |
| OUTPUT_DIR / "product_taxonomy.parquet", | |
| OUTPUT_DIR / "product_groups.parquet", | |
| OUTPUT_DIR / "grouping_review_queue.parquet", | |
| OUTPUT_DIR / "grouping_contradictions.parquet", | |
| ] | |
| def main() -> None: | |
| missing = [str(path) for path in FILES if not path.exists()] | |
| if missing: | |
| raise FileNotFoundError(f"Missing Phase 3 outputs: {missing}") | |
| print("Phase 3 outputs are ready for publishing:") | |
| for path in FILES: | |
| print(f"- {path}") | |
| if __name__ == "__main__": | |
| main() | |