combine_lang_model.1.asc 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. COMBINE_LANG_MODEL(1)
  2. =====================
  3. :doctype: manpage
  4. NAME
  5. ----
  6. combine_lang_model - generate starter traineddata
  7. SYNOPSIS
  8. --------
  9. *combine_lang_model* --input_unicharset 'filename' --script_dir 'dirname' --output_dir 'rootdir' --lang 'lang' [--lang_is_rtl] [pass_through_recoder] [--words file --puncs file --numbers file]
  10. DESCRIPTION
  11. -----------
  12. combine_lang_model(1) generates a starter traineddata file that can be used to train an LSTM-based neural network model. It takes as input a unicharset and an optional set of wordlists. It eliminates the need to run set_unicharset_properties(1), wordlist2dawg(1), some non-existent binary to generate the recoder (unicode compressor), and finally combine_tessdata(1).
  13. OPTIONS
  14. -------
  15. '--lang lang'::
  16. The language to use.
  17. Tesseract uses 3-character ISO 639-2 language codes. (See LANGUAGES)
  18. '--script_dir PATH'::
  19. Directory name for input script unicharsets. It should point to the location of langdata (github repo) directory. (type:string default:)
  20. '--input_unicharset FILE'::
  21. Unicharset to complete and use in encoding. It can be a hand-created file with incomplete fields. Its basic and script properties will be set before it is used. (type:string default:)
  22. '--lang_is_rtl BOOL'::
  23. True if language being processed is written right-to-left (eg Arabic/Hebrew). (type:bool default:false)
  24. '--pass_through_recoder BOOL'::
  25. If true, the recoder is a simple pass-through of the unicharset. Otherwise, potentially a compression of it by encoding Hangul in Jamos, decomposing multi-unicode symbols into sequences of unicodes, and encoding Han using the data in the radical_table_data, which must be the content of the file: langdata/radical-stroke.txt. (type:bool default:false)
  26. '--version_str STRING'::
  27. An arbitrary version label to add to traineddata file (type:string default:)
  28. '--words FILE'::
  29. (Optional) File listing words to use for the system dictionary (type:string default:)
  30. '--numbers FILE'::
  31. (Optional) File listing number patterns (type:string default:)
  32. '--puncs FILE'::
  33. (Optional) File listing punctuation patterns. The words/puncs/numbers lists may be all empty. If any are non-empty then puncs must be non-empty. (type:string default:)
  34. '--output_dir PATH'::
  35. Root directory for output files. Output files will be written to <output_dir>/<lang>/<lang>.* (type:string default:)
  36. HISTORY
  37. -------
  38. combine_lang_model(1) was first made available for tesseract4.00.00alpha.
  39. RESOURCES
  40. ---------
  41. Main web site: <https://github.com/tesseract-ocr> +
  42. Information on training tesseract LSTM: <https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html>
  43. SEE ALSO
  44. --------
  45. tesseract(1)
  46. COPYING
  47. -------
  48. Copyright \(C) 2012 Google, Inc.
  49. Licensed under the Apache License, Version 2.0
  50. AUTHOR
  51. ------
  52. The Tesseract OCR engine was written by Ray Smith and his research groups
  53. at Hewlett Packard (1985-1995) and Google (2006-2018).