File size: 634 Bytes
24aaa76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=8
#SBATCH --mem=16G
#SBATCH --time=01:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# usage: sbatch --job-name=r5_print_<lang> r5_print_process.sbatch <lang>
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
unset HF_TOKEN HUGGING_FACE_HUB_TOKEN
hostname; date -u
$CODE/.venv_print/bin/python -I $CODE/scripts/r5_print/r5_print_process.py --lang "$1" \
  --raw $DATA/data/raw/r5_print --out $DATA/data/processed/r5/print_real \
  --corpus $DATA/data/processed/r5/pagesynth_text_split --workers 8
date -u