update
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user