from datetime import datetime from pathlib import Path def config(): LANG = "sum_cs_en_pl_sk" LANG_SHORT = "sum_cs_en_pl_sk" DATE = "20230801" WIKI_ROOT = f"/mnt/data/factcheck/wiki/{LANG_SHORT}/{DATE}" QACG_ROOT = f"{WIKI_ROOT}/qacg" NLI_DIR = Path("nli") NLI_ROOT = Path(QACG_ROOT, NLI_DIR) MODEL_ROOT = "/home/drchajan/devel/python/FC/Zero-shot-Fact-Verification/experiments/nli/" MODEL_NAME = Path(MODEL_ROOT, "deepset/xlm-roberta-large-squad2_sum_cs_en_pl_sk-20230801_balanced_lr1e-6/checkpoint-321184") MAX_LENGTH = 512 DATESTR = datetime.now().strftime("%y%m%d_%H%M%S") NOTE = f"Calibrates sum language NLI model." return { "lang": LANG, "lang_short": LANG_SHORT, "wiki_root": WIKI_ROOT, "nli_root": NLI_ROOT, "model_name": MODEL_NAME, "max_length": MAX_LENGTH, "epochs": 50, "split": str(Path(NLI_ROOT, "dev_balanced.jsonl")), "note": NOTE, "date": DATESTR, }