"bazaar" config file not setting "load_system_dawg" & "load_fre_dawg" to False

439 views
Skip to first unread message

phillip...@gmail.com

unread,
Apr 26, 2019, 4:47:42 AM4/26/19
to tesseract-ocr
Hi,

I created a bazaar config file with the below contents:
load_system_dawg     F
load_freq_dawg       F

Then I just ran 
tesseract --print-parameters bazaar | grep load

The output for load_system_dawg and load_freq_dawg is:
load_system_dawg 1 Load system word dawg.
load_freq_dawg
1 Load frequent word dawg.

Why are they still true?

 

Zdenko Podobny

unread,
Apr 26, 2019, 6:01:19 AM4/26/19
to tesser...@googlegroups.com
Because  print-parameters  option do not except any other options e.g. it prints default options.

Zdenko


pi 26. 4. 2019 o 10:47 <phillip...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/ac0e25c6-7e48-447f-954b-90d991d2a61c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

phillip...@gmail.com

unread,
Apr 26, 2019, 6:07:06 AM4/26/19
to tesseract-ocr
But if I try:
tesseract --user-patterns eng.user-patterns --print-parameters | grep user_patterns

I can get the user-pattern file:
user_patterns_file eng.user-patterns A filename of user-provided patterns.
user_patterns_suffix A suffix of user-provided patterns located in tessdata.



On Friday, April 26, 2019 at 6:01:19 PM UTC+8, zdenop wrote:
Because  print-parameters  option do not except any other options e.g. it prints default options.

Zdenko


pi 26. 4. 2019 o 10:47 <phillip...@gmail.com> napísal(a):
Hi,

I created a bazaar config file with the below contents:
load_system_dawg     F
load_freq_dawg       F

Then I just ran 
tesseract --print-parameters bazaar | grep load

The output for load_system_dawg and load_freq_dawg is:
load_system_dawg 1 Load system word dawg.
load_freq_dawg
1 Load frequent word dawg.

Why are they still true?

 

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.

Zdenko Podobny

unread,
Apr 26, 2019, 6:26:06 AM4/26/19
to tesser...@googlegroups.com
So it means that options before  print-parameters are processed but rest is ignored. (e.g. config files, because they must be at the end of command)
 
Zdenko


pi 26. 4. 2019 o 12:07 <phillip...@gmail.com> napísal(a):
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
Reply all
Reply to author
Forward
0 new messages