[
https://issues.apache.org/jira/browse/TIKA-3298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282784#comment-17282784
]
Hudson commented on TIKA-3298:
------------------------------
SUCCESS: Integrated in Jenkins build Tika » tika-main-jdk8 #157 (See
[https://ci-builds.apache.org/job/Tika/job/tika-main-jdk8/157/])
TIKA-3298 -- add preloadLangs parameter to TesseractOCRParser (tallison:
[https://github.com/apache/tika/commit/76fca92a525d6820e0b69ce910e11c3604cbcd6e])
* (edit)
tika-parsers/tika-parsers-classic/tika-parsers-classic-modules/tika-parser-ocr-module/src/test/java/org/apache/tika/parser/ocr/TesseractOCRParserTest.java
* (add)
tika-parsers/tika-parsers-classic/tika-parsers-classic-modules/tika-parser-ocr-module/src/test/resources/test-configs/tika-config-tesseract-load-langs.xml
* (edit)
tika-parsers/tika-parsers-classic/tika-parsers-classic-modules/tika-parser-ocr-module/src/main/java/org/apache/tika/parser/ocr/ImagePreprocessor.java
* (edit) tika-core/src/test/java/org/apache/tika/TikaTest.java
* (edit)
tika-parsers/tika-parsers-classic/tika-parsers-classic-modules/tika-parser-ocr-module/src/test/resources/test-configs/tika-config-tesseract-full.xml
* (edit)
tika-parsers/tika-parsers-classic/tika-parsers-classic-modules/tika-parser-ocr-module/src/main/java/org/apache/tika/parser/ocr/TesseractOCRParser.java
> Add a "preloadLangs" parameter to TesseractOCRParser
> ----------------------------------------------------
>
> Key: TIKA-3298
> URL: https://issues.apache.org/jira/browse/TIKA-3298
> Project: Tika
> Issue Type: Task
> Reporter: Tim Allison
> Priority: Minor
> Fix For: 2.0.0
>
>
> [~peterkronenberg] on the user/dev lists and on TIKA-3297 and TIKA-3296 has
> observed that the tesseract error message for "lang data doesn't exist" is
> not extremely clear. We could add a "preloadLangs" option to
> TesseractOCRParser (default would be {{false}}). If set to true, the parser
> (upon initialization) if it finds tesseract, will call {{tesseract
> --list-langs}} and then store those langs. At parse time, if the langs set
> has anything in it, the TesseractOCRParser will check that set against the
> user-requested language and throw a clearer exception to the user that the
> language data doesn't exist for the requested language.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)