#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.
|
inline |
|
inline |
|
inlinestatic |
Comparator function for sorting ViterbiStateEntry_LISTs in non-increasing order of costs.
|
inline |
|
inline |
Returns true if this VSE has an alphanumeric character as its classifier result.
void tesseract::ViterbiStateEntry::Print | ( | const char * | msg | ) | const |
int tesseract::ViterbiStateEntry::adapted |
AssociateStats tesseract::ViterbiStateEntry::associate_stats |
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.
LMConsistencyInfo tesseract::ViterbiStateEntry::consistency_info |
float tesseract::ViterbiStateEntry::cost |
The cost is an adjusted ratings sum, that is adjusted by all the language model components that use Viterbi search.
BLOB_CHOICE* tesseract::ViterbiStateEntry::curr_b |
Pointers to BLOB_CHOICE and parent ViterbiStateEntry (not owned by this).
LanguageModelDawgInfo* tesseract::ViterbiStateEntry::dawg_info |
Extra information maintained by Dawg language model component (owned by ViterbiStateEntry).
STRING* tesseract::ViterbiStateEntry::debug_str |
UTF8 string representing the path corresponding to this vse. Populated only in when language_model_debug_level > 0.
int tesseract::ViterbiStateEntry::length |
float tesseract::ViterbiStateEntry::min_certainty |
LanguageModelNgramInfo* tesseract::ViterbiStateEntry::ngram_info |
Extra information maintained by Ngram language model component (owned by ViterbiStateEntry).
float tesseract::ViterbiStateEntry::outline_length |
ViterbiStateEntry* tesseract::ViterbiStateEntry::parent_vse |
float tesseract::ViterbiStateEntry::ratings_sum |
Various information about the characters on the path represented by this ViterbiStateEntry.
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).
bool tesseract::ViterbiStateEntry::updated |