|
tesseract
4.00.00dev
|
#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 | |
| float | cost |
| BLOB_CHOICE * | curr_b |
| Pointers to BLOB_CHOICE and parent ViterbiStateEntry (not owned by this). More... | |
| ViterbiStateEntry * | parent_vse |
| ViterbiStateEntry * | competing_vse |
| float | ratings_sum |
| float | min_certainty |
| int | adapted |
| int | length |
| float | outline_length |
| LMConsistencyInfo | consistency_info |
| AssociateStats | associate_stats |
| LanguageModelFlagsType | top_choice_flags |
| LanguageModelDawgInfo * | dawg_info |
| LanguageModelNgramInfo * | ngram_info |
| bool | updated |
| STRING * | debug_str |
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 119 of file lm_state.h.
|
inlinestatic |
Comparator function for sorting ViterbiStateEntry_LISTs in non-increasing order of costs.
Definition at line 126 of file lm_state.h.
|
inline |
Definition at line 133 of file lm_state.h.
|
inline |
Returns true if this VSE has an alphanumeric character as its classifier result.
Definition at line 141 of file lm_state.h.
| void tesseract::ViterbiStateEntry::Print | ( | const char * | msg | ) | const |
Definition at line 27 of file lm_state.cpp.
| int tesseract::ViterbiStateEntry::adapted |
Definition at line 166 of file lm_state.h.
| AssociateStats tesseract::ViterbiStateEntry::associate_stats |
Definition at line 170 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 160 of file lm_state.h.
| LMConsistencyInfo tesseract::ViterbiStateEntry::consistency_info |
Definition at line 169 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 153 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 156 of file lm_state.h.
| LanguageModelDawgInfo* tesseract::ViterbiStateEntry::dawg_info |
Extra information maintained by Dawg language model component (owned by ViterbiStateEntry).
Definition at line 178 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 187 of file lm_state.h.
| int tesseract::ViterbiStateEntry::length |
Definition at line 167 of file lm_state.h.
| float tesseract::ViterbiStateEntry::min_certainty |
Definition at line 165 of file lm_state.h.
| LanguageModelNgramInfo* tesseract::ViterbiStateEntry::ngram_info |
Extra information maintained by Ngram language model component (owned by ViterbiStateEntry).
Definition at line 182 of file lm_state.h.
| float tesseract::ViterbiStateEntry::outline_length |
Definition at line 168 of file lm_state.h.
| ViterbiStateEntry* tesseract::ViterbiStateEntry::parent_vse |
Definition at line 157 of file lm_state.h.
| float tesseract::ViterbiStateEntry::ratings_sum |
Various information about the characters on the path represented by this ViterbiStateEntry.
Definition at line 164 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 174 of file lm_state.h.
| bool tesseract::ViterbiStateEntry::updated |
Definition at line 184 of file lm_state.h.