File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -554,10 +554,6 @@ phase_B_generate_ambiguities() {
554
554
make__lstmdata () {
555
555
tlog " \n=== Constructing LSTM training data ==="
556
556
local lang_prefix=" ${LANGDATA_ROOT} /${LANG_CODE} /${LANG_CODE} "
557
- if [[ ! -d " ${OUTPUT_DIR} " ]]; then
558
- tlog " Creating new directory ${OUTPUT_DIR} "
559
- mkdir -p " ${OUTPUT_DIR} "
560
- fi
561
557
local lang_is_rtl=" "
562
558
if [[ " ${LANG_IS_RTL} " == " 1" ]]; then
563
559
lang_is_rtl=" --lang_is_rtl"
@@ -618,10 +614,6 @@ make__traineddata() {
618
614
run_command combine_tessdata ${TRAINING_DIR} /${LANG_CODE} .
619
615
620
616
# Copy it to the output dir, overwriting only if allowed by the cmdline flag.
621
- if [[ ! -d ${OUTPUT_DIR} ]]; then
622
- tlog " Creating new directory ${OUTPUT_DIR} "
623
- mkdir -p ${OUTPUT_DIR}
624
- fi
625
617
local destfile=${OUTPUT_DIR} /${LANG_CODE} .traineddata;
626
618
if [[ -f ${destfile} ]] && ! $OVERWRITE ; then
627
619
err_exit " File ${destfile} exists and no --overwrite specified" ;
You can’t perform that action at this time.
0 commit comments