This commit is contained in:
2026-01-23 13:09:55 +08:00
parent 45752d6c97
commit c4fc71e637

View File

@@ -7,7 +7,7 @@ import subprocess
import sys
from pathlib import Path
from platform_utils import safe_path, is_windows
from platform_utils import safe_path, is_windows, resolve_path
def run(cmd):
@@ -68,7 +68,7 @@ def main():
cfg["vocab_path"] = str(results_dir / f"disc_vocab_{tag}.json")
cfg["out_dir"] = str(results_dir / f"ablation_{tag}")
# ensure data paths are absolute for Windows
cfg["data_glob"] = str(Path(args.data_glob).resolve())
cfg["data_glob"] = str(resolve_path(base_dir, args.data_glob))
cfg["data_path"] = str((repo_dir / "dataset" / "hai" / "hai-21.03" / "train1.csv.gz").resolve())
temp_cfg = results_dir / f"config_{tag}.json"