22 #ifndef TESSERACT_WORDREC_LANGUAGE_MODEL_DEFS_H_
23 #define TESSERACT_WORDREC_LANGUAGE_MODEL_DEFS_H_
100 const char *debug_uch)
127 static int Compare(
const void *e1,
const void *e2) {
132 return (ve1->
cost < ve2->
cost) ? -1 : 1;
150 void Print(
const char *msg)
const;
204 void Print(
const char *msg);
219 beam.reserve(matrix_dimension);
220 for (
int i = 0; i < matrix_dimension; ++i)
239 #endif // TESSERACT_WORDREC_LANGUAGE_MODEL_DEFS_H_
unsigned char LanguageModelFlagsType
int context_unichar_step_len
LMConsistencyInfo consistency_info
int viterbi_state_entries_prunable_length
ViterbiStateEntry * best_vse
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)
void Print(const char *msg)
LanguageModelNgramInfo * ngram_info
LanguageModelDawgInfo * dawg_info
LanguageModelDawgInfo(DawgPositionVector *a, PermuterType pt)
ViterbiStateEntry * parent_vse
bool get_isdigit(UNICHAR_ID unichar_id) const
LanguageModelFlagsType top_choice_flags
float ngram_and_classifier_cost
bool HasAlnumChoice(const UNICHARSET &unicharset)
AssociateStats associate_stats
int NumInconsistentCase() const
DawgPositionVector * active_dawgs
LanguageModelNgramInfo(const char *c, int l, bool p, float nc, float ncc)
static int Compare(const void *e1, const void *e2)
float viterbi_state_entries_prunable_max_cost
int viterbi_state_entries_length
PointerVector< LanguageModelState > beam
ViterbiStateEntry * competing_vse
bool get_isalpha(UNICHAR_ID unichar_id) const
void Print(const char *msg) const
ViterbiStateEntry_LIST viterbi_state_entries
BestChoiceBundle(int matrix_dimension)
UNICHAR_ID unichar_id() const