data(train 520·holdout 120), server(발화 생성 서버), eval(grounding_eval), run_eval.py·run_test.sh. logs/ 는 실행 때마다 생기는 기록이라 README.md 만 올리고 나머지는 .gitignore 로 뺀다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
437 B
Python
15 lines
437 B
Python
"""서버 루트 기준 경로 정의."""
|
|
|
|
from pathlib import Path
|
|
|
|
SERVER_ROOT = Path(__file__).resolve().parents[1]
|
|
RESOURCES_DIR = SERVER_ROOT / "resources"
|
|
DATA_DIR = SERVER_ROOT / "data"
|
|
LOGS_DIR = SERVER_ROOT / "logs"
|
|
|
|
|
|
def resolve_data_path(path_str: str) -> Path:
|
|
"""config 의 상대경로를 서버 루트 기준 절대경로로 변환한다."""
|
|
p = Path(path_str)
|
|
return p if p.is_absolute() else SERVER_ROOT / p
|