tesseract
5.0.0-alpha-619-ge9db
|
#include <lm_state.h>
Public Member Functions | |
ViterbiStateEntry (ViterbiStateEntry *pe, BLOB_CHOICE *b, float c, float ol, const LMConsistencyInfo &ci, const AssociateStats &as, LanguageModelFlagsType tcf, LanguageModelDawgInfo *d, LanguageModelNgramInfo *n, const char *debug_uch) | |
~ViterbiStateEntry () | |
bool | Consistent () const |
bool | HasAlnumChoice (const UNICHARSET &unicharset) |
void | Print (const char *msg) const |
Public Member Functions inherited from ELIST_LINK | |
ELIST_LINK () | |
ELIST_LINK (const ELIST_LINK &) | |
void | operator= (const ELIST_LINK &) |
Static Public Member Functions | |
static int | Compare (const void *e1, const void *e2) |
Public Attributes | |
BLOB_CHOICE * | curr_b |
Pointers to BLOB_CHOICE and parent ViterbiStateEntry (not owned by this). More... | |
ViterbiStateEntry * | parent_vse |
ViterbiStateEntry * | competing_vse |
LanguageModelDawgInfo * | dawg_info |
LanguageModelNgramInfo * | ngram_info |
STRING * | debug_str |
float | cost |
float | ratings_sum |
sum of ratings of character on the path More... | |
float | min_certainty |
minimum certainty on the path More... | |
int | adapted |
number of BLOB_CHOICES from adapted templates More... | |
int | length |
number of characters on the path More... | |
float | outline_length |
length of the outline so far More... | |
LMConsistencyInfo | consistency_info |
path consistency info More... | |
AssociateStats | associate_stats |
character widths/gaps/seams More... | |
LanguageModelFlagsType | top_choice_flags |
bool | updated |
set to true if the entry has just been created/updated More... | |
Struct for storing the information about a path in the segmentation graph explored by Viterbi search.
Definition at line 91 of file lm_state.h.
|
inline |
Definition at line 92 of file lm_state.h.
|
inline |
Definition at line 125 of file lm_state.h.
|
inlinestatic |
Comparator function for sorting ViterbiStateEntry_LISTs in non-increasing order of costs.
Definition at line 132 of file lm_state.h.
|
inline |
Definition at line 139 of file lm_state.h.
|
inline |
Returns true if this VSE has an alphanumeric character as its classifier result.
Definition at line 147 of file lm_state.h.
void tesseract::ViterbiStateEntry::Print | ( | const char * | msg | ) | const |
Definition at line 26 of file lm_state.cpp.
int tesseract::ViterbiStateEntry::adapted |
number of BLOB_CHOICES from adapted templates
Definition at line 184 of file lm_state.h.
AssociateStats tesseract::ViterbiStateEntry::associate_stats |
character widths/gaps/seams
Definition at line 188 of file lm_state.h.
ViterbiStateEntry* tesseract::ViterbiStateEntry::competing_vse |
Pointer to a case-competing ViterbiStateEntry in the same list that represents a path ending in the same letter of the opposite case.
Definition at line 162 of file lm_state.h.
LMConsistencyInfo tesseract::ViterbiStateEntry::consistency_info |
path consistency info
Definition at line 187 of file lm_state.h.
float tesseract::ViterbiStateEntry::cost |
The cost is an adjusted ratings sum, that is adjusted by all the language model components that use Viterbi search.
Definition at line 178 of file lm_state.h.
BLOB_CHOICE* tesseract::ViterbiStateEntry::curr_b |
Pointers to BLOB_CHOICE and parent ViterbiStateEntry (not owned by this).
Definition at line 158 of file lm_state.h.
LanguageModelDawgInfo* tesseract::ViterbiStateEntry::dawg_info |
Extra information maintained by Dawg language model component (owned by ViterbiStateEntry).
Definition at line 166 of file lm_state.h.
STRING* tesseract::ViterbiStateEntry::debug_str |
UTF8 string representing the path corresponding to this vse. Populated only in when language_model_debug_level > 0.
Definition at line 174 of file lm_state.h.
int tesseract::ViterbiStateEntry::length |
number of characters on the path
Definition at line 185 of file lm_state.h.
float tesseract::ViterbiStateEntry::min_certainty |
minimum certainty on the path
Definition at line 183 of file lm_state.h.
LanguageModelNgramInfo* tesseract::ViterbiStateEntry::ngram_info |
Extra information maintained by Ngram language model component (owned by ViterbiStateEntry).
Definition at line 170 of file lm_state.h.
float tesseract::ViterbiStateEntry::outline_length |
length of the outline so far
Definition at line 186 of file lm_state.h.
ViterbiStateEntry* tesseract::ViterbiStateEntry::parent_vse |
Definition at line 159 of file lm_state.h.
float tesseract::ViterbiStateEntry::ratings_sum |
sum of ratings of character on the path
Various information about the characters on the path represented by this ViterbiStateEntry.
Definition at line 182 of file lm_state.h.
LanguageModelFlagsType tesseract::ViterbiStateEntry::top_choice_flags |
Flags for marking the entry as a top choice path with the smallest rating or lower/upper case letters).
Definition at line 192 of file lm_state.h.
bool tesseract::ViterbiStateEntry::updated |
set to true if the entry has just been created/updated
Definition at line 194 of file lm_state.h.