From 6c08ec02e437ce397e6207dda009b759083c7975 Mon Sep 17 00:00:00 2001 From: Shreeshrii Date: Thu, 17 May 2018 22:45:22 +0530 Subject: [PATCH] Copy .box and .tif files along with .lstmf files from /tmp --- src/training/tesstrain_utils.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/training/tesstrain_utils.sh b/src/training/tesstrain_utils.sh index 9f034d98..bc946257 100644 --- a/src/training/tesstrain_utils.sh +++ b/src/training/tesstrain_utils.sh @@ -522,6 +522,14 @@ make__lstmdata() { --puncs "${lang_prefix}.punc" \ --output_dir "${OUTPUT_DIR}" --lang "${LANG_CODE}" \ "${pass_through}" "${lang_is_rtl}" + for f in "${TRAINING_DIR}/${LANG_CODE}".*.box; do + tlog "Moving ${f} to ${OUTPUT_DIR}" + mv "${f}" "${OUTPUT_DIR}" + done + for f in "${TRAINING_DIR}/${LANG_CODE}".*.tif; do + tlog "Moving ${f} to ${OUTPUT_DIR}" + mv "${f}" "${OUTPUT_DIR}" + done for f in "${TRAINING_DIR}/${LANG_CODE}".*.lstmf; do tlog "Moving ${f} to ${OUTPUT_DIR}" mv "${f}" "${OUTPUT_DIR}"