Skip to content

Commit

Permalink
fix exposures parameter handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored and stweil committed Jun 4, 2024
1 parent be5927a commit 45cacc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tesstrain/language_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Set some language specific variables.
"""

import itertools
import logging
import os

Expand Down Expand Up @@ -911,7 +912,7 @@ def set_lang_specific_parameters(ctx, lang):
MIX_LANG = 'eng'
FONTS = ctx.fonts
TEXT2IMAGE_EXTRA_ARGS = []
EXPOSURES = []
EXPOSURES = list(map(int, itertools.chain(*ctx.exposures or [])))

GENERATE_WORD_BIGRAMS = None
WORD_DAWG_SIZE = None
Expand Down

0 comments on commit 45cacc5

Please sign in to comment.