Skip to content

Commit

Permalink
tesstrain_utils.sh: remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Jun 20, 2019
1 parent 5f23290 commit 60b4c68
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/training/tesstrain_utils.sh
Expand Up @@ -554,10 +554,6 @@ phase_B_generate_ambiguities() {
make__lstmdata() {
tlog "\n=== Constructing LSTM training data ==="
local lang_prefix="${LANGDATA_ROOT}/${LANG_CODE}/${LANG_CODE}"
if [[ ! -d "${OUTPUT_DIR}" ]]; then
tlog "Creating new directory ${OUTPUT_DIR}"
mkdir -p "${OUTPUT_DIR}"
fi
local lang_is_rtl=""
if [[ "${LANG_IS_RTL}" == "1" ]]; then
lang_is_rtl="--lang_is_rtl"
Expand Down Expand Up @@ -618,10 +614,6 @@ make__traineddata() {
run_command combine_tessdata ${TRAINING_DIR}/${LANG_CODE}.
# Copy it to the output dir, overwriting only if allowed by the cmdline flag.
if [[ ! -d ${OUTPUT_DIR} ]]; then
tlog "Creating new directory ${OUTPUT_DIR}"
mkdir -p ${OUTPUT_DIR}
fi
local destfile=${OUTPUT_DIR}/${LANG_CODE}.traineddata;
if [[ -f ${destfile} ]] && ! $OVERWRITE; then
err_exit "File ${destfile} exists and no --overwrite specified";
Expand Down

0 comments on commit 60b4c68

Please sign in to comment.