2010-09-30 10:18:45 +08:00
|
|
|
WORDLIST2DAWG(1)
|
|
|
|
================
|
2012-02-10 06:55:47 +08:00
|
|
|
:doctype: manpage
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
wordlist2dawg - convert a wordlist to a DAWG for Tesseract
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
*wordlist2dawg* 'WORDLIST' 'DAWG' 'lang.unicharset'
|
|
|
|
|
2012-02-10 06:55:47 +08:00
|
|
|
*wordlist2dawg* -t 'WORDLIST' 'DAWG' 'lang.unicharset'
|
|
|
|
|
|
|
|
*wordlist2dawg* -r 1 'WORDLIST' 'DAWG' 'lang.unicharset'
|
|
|
|
|
|
|
|
*wordlist2dawg* -r 2 'WORDLIST' 'DAWG' 'lang.unicharset'
|
|
|
|
|
|
|
|
*wordlist2dawg* -l <short> <long> 'WORDLIST' 'DAWG' 'lang.unicharset'
|
|
|
|
|
2010-09-30 10:18:45 +08:00
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2012-02-10 06:55:47 +08:00
|
|
|
wordlist2dawg(1) converts a wordlist to a Directed Acyclic Word Graph
|
|
|
|
(DAWG) for use with Tesseract. A DAWG is a compressed, space and time
|
|
|
|
efficient representation of a word list.
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2012-02-10 06:55:47 +08:00
|
|
|
-t
|
|
|
|
Verify that a given dawg file is equivalent to a given wordlist.
|
|
|
|
|
|
|
|
-r 1
|
|
|
|
Reverse a word if it contains an RTL character.
|
|
|
|
|
|
|
|
-r 2
|
|
|
|
Reverse all words.
|
|
|
|
|
|
|
|
-l <short> <long>
|
|
|
|
Produce a file with several dawgs in it, one each for words
|
|
|
|
of length <short>, <short+1>,... <long>
|
|
|
|
|
|
|
|
ARGUMENTS
|
|
|
|
---------
|
|
|
|
|
2010-09-30 10:18:45 +08:00
|
|
|
'WORDLIST'
|
2012-02-10 06:55:47 +08:00
|
|
|
A plain text file in UTF-8, one word per line.
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
'DAWG'
|
2012-02-10 06:55:47 +08:00
|
|
|
The output DAWG to write.
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
'lang.unicharset'
|
|
|
|
The unicharset of the language. This is the unicharset
|
2012-02-10 06:55:47 +08:00
|
|
|
generated by mftraining(1).
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2012-02-10 06:55:47 +08:00
|
|
|
tesseract(1), combine_tessdata(1), dawg2wordlist(1)
|
2010-09-30 10:18:45 +08:00
|
|
|
|
2015-06-13 06:08:05 +08:00
|
|
|
<https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract>
|
2010-09-30 10:18:45 +08:00
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2012-02-10 06:55:47 +08:00
|
|
|
Copyright \(C) 2006 Google, Inc.
|
2010-09-30 10:18:45 +08:00
|
|
|
Licensed under the Apache License, Version 2.0
|
2012-02-10 06:55:47 +08:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
The Tesseract OCR engine was written by Ray Smith and his research groups
|
|
|
|
at Hewlett Packard (1985-1995) and Google (2006-present).
|