Use lstm_use_matrix for --user-words,patterns

This commit is contained in:
James R. Barlow
2019-10-20 00:49:11 -07:00
parent 4d26867dee
commit 6e99e7b346
+3
View File
@@ -269,6 +269,9 @@ def generate_hocr(
if user_patterns:
args_tesseract.extend(['--user-patterns', user_patterns])
if user_words or user_patterns:
args_tesseract.extend(['-c', 'lstm_use_matrix=1'])
# Reminder: test suite tesseract spoofers will break after any changes
# to the number of order parameters here
args_tesseract.extend([input_file, prefix, 'hocr', 'txt'] + tessconfig)