#!/bin/bash #SBATCH --job-name=r5_score #SBATCH --partition=ZEN4 #SBATCH --qos=nu-zen4 #SBATCH --gres=none #SBATCH --cpus-per-task=16 #SBATCH --mem=48G #SBATCH --time=01:00:00 #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out # R5 EVALCODE: scores every prediction file under DATA/outputs/r5/preds that has no up-to-date score file (incremental), then rebuilds # DATA/outputs/r5/scores/summary.tsv. Validation sets only. Locked (test) sets stay closed until the single test # pass is started with: sbatch r5_score.sbatch --test-pass after test_pass_started.txt has been copied to DATA/outputs/r5/RULE/. # One short job, started by hand at each check-in; it neither repeats nor waits. A file written within the last 20 s is skipped. C=/path/to/TURKIC_OCR_CODE D=/path/to/TURKIC_OCR_DATA $C/.venv_kraken/bin/python -I $C/scripts/r5eval/score.py \ --preds $D/outputs/r5/preds \ --registry $D/data/processed/r5/evalsets.json \ --out $D/outputs/r5/scores \ --workers 16 "$@"