tesseract
5.0.0-alpha-619-ge9db
|
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.
Definition at line 200 of file lm_state.h.
|
inline |
Definition at line 201 of file lm_state.h.
|
inline |
Definition at line 205 of file lm_state.h.
void tesseract::LanguageModelState::Clear | ( | ) |
Clears the viterbi search state back to its initial conditions.
Definition at line 62 of file lm_state.cpp.
void tesseract::LanguageModelState::Print | ( | const char * | msg | ) |
Definition at line 69 of file lm_state.cpp.
ViterbiStateEntry_LIST tesseract::LanguageModelState::viterbi_state_entries |
Storage for the Viterbi state.
Definition at line 213 of file lm_state.h.
int tesseract::LanguageModelState::viterbi_state_entries_length |
Total number of entries in viterbi_state_entries.
Definition at line 218 of file lm_state.h.
int tesseract::LanguageModelState::viterbi_state_entries_prunable_length |
Number and max cost of prunable paths in viterbi_state_entries.
Definition at line 215 of file lm_state.h.
float tesseract::LanguageModelState::viterbi_state_entries_prunable_max_cost |
Definition at line 216 of file lm_state.h.