Download scripts/r5_print/r5_print_rerun_loop.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_rerun_loop.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_print/r5_print_rerun_loop.sh
-
curl -L -o r5_print_rerun_loop.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_rerun_loop.sh
472 Bytes
| # run a language, add the documents flagged by the tail-letter check to the exclusion file, rerun (at most 3 times in total) | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| for L in "$@"; do | |
| for i in 1 2 3; do | |
| bash $CODE/scripts/r5_print/r5_print_rerun.sh $L | grep -E "DONE|accepted" | |
| n=$($CODE/.venv_print/bin/python -I $CODE/scripts/r5_print/r5_print_suspects.py $L) | |
| echo "$L round $i new suspect documents: $n" | |
| if [ "$n" = "0" ]; then break; fi | |
| done | |
| done | |