Datasets:
Download scripts/extract_cells.py from iulio/plc-llm-bench: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/datasets/iulio/plc-llm-bench/resolve/main/scripts/extract_cells.py
- Command line
-
hf download hf://datasets/iulio/plc-llm-bench/scripts/extract_cells.py
-
curl -L -o extract_cells.py https://huggingface.co/datasets/iulio/plc-llm-bench/resolve/main/scripts/extract_cells.py
377 Bytes
| import json | |
| from pathlib import Path | |
| root = Path("d:/UsefulNotebooks/plc-llm-bench") | |
| cells = json.loads((root / "cells_to_push.json").read_text(encoding="utf-8")) | |
| for i in range(12, 18): | |
| c = cells[i] | |
| out_file = root / f"cell_{i}.txt" | |
| out_file.write_text(c["content"], encoding="utf-8") | |
| print(f"Wrote cell_{i}.txt (type={c['type']}, len={len(c['content'])})") | |