Download src/pagesynth/scripts/vocab.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/src/pagesynth/scripts/vocab.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/src/pagesynth/scripts/vocab.sbatch
-
curl -L -o vocab.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/src/pagesynth/scripts/vocab.sbatch
870 Bytes
| #SBATCH --job-name=pgvocab | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --qos=nu-zen4 | |
| #SBATCH --gres=none | |
| #SBATCH --cpus-per-task=2 | |
| #SBATCH --mem=12G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --array=0-9 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%A_%a.out | |
| # Label vocabulary of one language per array task: training list from sentences.tsv, display list from sentences_display.tsv | |
| # (export DISPLAY_ONLY=1 to rebuild the display list only). | |
| LANGS=(kk ky uz_cyrl uz_latn tt ba sah tr az tk) | |
| LANG=${LANGS[$SLURM_ARRAY_TASK_ID]} | |
| CODE=${CODE:-/path/to/TURKIC_OCR_CODE/src/pagesynth} | |
| TEXT=/path/to/TURKIC_OCR_DATA/data/processed/pagesynth_text | |
| PY=/path/to/TURKIC_OCR_CODE/.venv_gen/bin/python | |
| if [ -z "$DISPLAY_ONLY" ]; then $PY $CODE/scripts/build_label_vocab.py --text-dir $TEXT --lang $LANG; fi | |
| $PY $CODE/scripts/build_label_vocab.py --text-dir $TEXT --lang $LANG --display | |