Struct to store information maintained by various language model components. More...
#include <lm_state.h>
Public Member Functions | |
LanguageModelState () | |
~LanguageModelState () | |
void | Clear () |
Clears the viterbi search state back to its initial conditions. More... | |
void | Print (const char *msg) |
Public Attributes | |
ViterbiStateEntry_LIST | viterbi_state_entries |
Storage for the Viterbi state. More... | |
int | viterbi_state_entries_prunable_length |
Number and max cost of prunable paths in viterbi_state_entries. More... | |
float | viterbi_state_entries_prunable_max_cost |
int | viterbi_state_entries_length |
Total number of entries in viterbi_state_entries. More... | |
Struct to store information maintained by various language model components.
|
inline |
|
inline |
void tesseract::LanguageModelState::Clear | ( | ) |
Clears the viterbi search state back to its initial conditions.
void tesseract::LanguageModelState::Print | ( | const char * | msg | ) |
ViterbiStateEntry_LIST tesseract::LanguageModelState::viterbi_state_entries |
Storage for the Viterbi state.
int tesseract::LanguageModelState::viterbi_state_entries_length |
Total number of entries in viterbi_state_entries.
int tesseract::LanguageModelState::viterbi_state_entries_prunable_length |
Number and max cost of prunable paths in viterbi_state_entries.
float tesseract::LanguageModelState::viterbi_state_entries_prunable_max_cost |